Created
November 24, 2019 02:23
-
-
Save TB-O-gh/a48e8f4af4fe7f4914195c616195d42a to your computer and use it in GitHub Desktop.
スクリーンショット連打スクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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