Skip to content

Instantly share code, notes, and snippets.

@wonsolution
Created August 24, 2020 01:43
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 wonsolution/ca0337f74f78375df234062fa871f235 to your computer and use it in GitHub Desktop.
Save wonsolution/ca0337f74f78375df234062fa871f235 to your computer and use it in GitHub Desktop.
import pyautogui as ag
import keyboard
import time
mpos_list=[]
while True:
while True:
if keyboard.is_pressed('F3'):
mpos = ag.position()
mpos_list.append(mpos)
print(mpos)
break
while True:
if keyboard.is_pressed('F4'):
print('F4')
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment