-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacro.py
More file actions
23 lines (18 loc) · 681 Bytes
/
macro.py
File metadata and controls
23 lines (18 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import pyautogui
import time
print(pyautogui.size())
# pyautogui.moveTo(100,100, duration=0.2)
# pyautogui.moveRel(100, 100)
# pyautogui.drag
# pyautogui.dragRel
# pyautogui.scroll(-200)
# pyautogui.click()pi - press once
# pyautogui.press('enter') - press once
# pygautogui.press('f1') - press once
# pyautogui.keyDown('shift') - holds shift down
# pygautogui.keyUp('shift') - releases shift
# pyautogui.hotkey('ctrl, shift, esc') - hotkey(makes you hold all keys til end then release)
# hold() - check pyautogui docs
# pyautogui.alert(text='test', title='something', button='done')
getPrompt = pyautogui.prompt("please choose a prompt: 'test', ")
pyautogui.alert(getPrompt)