Skip to content

This tool automatically takes screenshots of your screen and saves them as files.

Notifications You must be signed in to change notification settings

gejiman/kindle2ss-modified

 
 

Repository files navigation

daishir0/kindle2ssからのフォークです。 自分の環境で動かなかった箇所を直しています。

スクリーンショット自動取得ツール

任意の画面領域を自動的にスクリーンショットし、ファイルとして保存するツールです。

必要なもの

  • Python3
  • pip
  • 以下のPythonライブラリ
    • pyautogui
    • pywin32  - win32gui  - win32ui  - win32con  - win32api
    • PIL

使い方

  1. 本リポジトリをクローンします。
git clone https://github.com/gejiman/kindle2ss-modified.git
  1. 必要なPythonライブラリをインストールします。
pip install pyautogui pywin32 Pillow
  1. スクリーンショットを取得したいKindleの画面に移動します。

  2. runFHD、もしくは任意のバッチファイルを実行します。

  3. スクリーンショットが取得され、output_年月日時分秒という名前のフォルダに保存されます。

  4. 取得されたスクリーンショットを確認します。

設定

スクリーンショットを取得したい範囲の座標、スクショ間隔、出力フォルダ名、出力ファイル名の頭文字を変更することができます。

# スクリーンショットを取得したい範囲の座標
left, top, width, height = (480, 120, 600, 870)
# スクショ間隔(秒)
span = 1
# 出力フォルダ頭文字
h_foldername = "output"
# 出力ファイル頭文字
h_filename = "picture"

次のページへ行く処理は環境によって違うので調整してください。 デフォルトは左キー入力です。クリックの場合は座標を削除するとマウスを置いている場所でクリックします。

# 次のページ
pyautogui.press('left') #元はKeyDown, 右ならright
#pyautogui.click(150, 800) #クリック座標指定

3ページ連続で同じ画面が出現した場合に自動的にスクリーンショットを停止するようになっています。この回数を変更することができます。

# 3回同じ画像が出現した場合は終了
if same_cnt >= 3:
    break

注意事項

  • このツールはWindows環境でのみ動作します。
  • このツールを使用する際には、利用規約や著作権に関する法律を遵守してください。

About

This tool automatically takes screenshots of your screen and saves them as files.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 91.7%
  • Batchfile 8.3%