Last active
April 17, 2020 02:35
-
-
Save ryoppippi/1e80bd96d279f10f8f4cffdb44083373 to your computer and use it in GitHub Desktop.
twitter deleter
This file contains 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
import pyautogui as pgui | |
import subprocess | |
from time import sleep | |
if __name__ == "__main__": | |
subprocess.call(["say", "キャリブレーション"]) | |
sleep(3) | |
select_p = pgui.position() | |
pgui.click(select_p) | |
sleep(2) | |
select_p_2 = pgui.position() | |
pgui.click(select_p_2) | |
subprocess.call(["say", "移動"]) | |
sleep(3) | |
delete_p = pgui.position() | |
pgui.click(delete_p) | |
counter = 0 | |
subprocess.call(["say", "start"]) | |
while True: | |
pgui.click(select_p) | |
sleep(0.2) | |
pgui.click(select_p_2) | |
sleep(0.7) | |
pgui.click(delete_p) | |
sleep(1.5) | |
counter += 1 | |
print(counter) | |
print(counter) | |
This file contains 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
[tool.poetry] | |
name = "toy" | |
version = "0.1.0" | |
description = "" | |
authors = ["ryoppippi <1560508+ryoppippi@users.noreply.github.com>"] | |
[tool.poetry.dependencies] | |
python = "^3.8" | |
PyAutoGUI = "^0.9.50" | |
[tool.poetry.dev-dependencies] | |
[build-system] | |
requires = ["poetry>=0.12"] | |
build-backend = "poetry.masonry.api" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment