Skip to content

Instantly share code, notes, and snippets.

@TB-O-gh
Created November 24, 2019 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TB-O-gh/a48e8f4af4fe7f4914195c616195d42a to your computer and use it in GitHub Desktop.
Save TB-O-gh/a48e8f4af4fe7f4914195c616195d42a to your computer and use it in GitHub Desktop.
スクリーンショット連打スクリプト
#!/usr/bin/python3
# クスリーンショット連射
# インポート
import subprocess
import time
# 変数宣言
File_Number=1
cmd=['import', '-window', 'root', ' ']
# コマンド関数
def do_command():
cmd[3]='sc'+ str(File_Number)+ '.jpg'
subprocess.call(cmd)
# メイン関数
if __name__=="__main__":
while True:
do_command()
time.sleep(1)
File_Number+=1
print("shot")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment