Basic coordinate scanning script.
This commit is contained in:
parent
cb7d49df27
commit
1249881332
16
coordinatescan.py
Normal file
16
coordinatescan.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from pynput.mouse import Controller
|
||||
from pynput.keyboard import Listener as K, Key, KeyCode
|
||||
|
||||
m = Controller()
|
||||
|
||||
def handler(key: KeyCode):
|
||||
try:
|
||||
if key == Key.ctrl:
|
||||
print(f"{m.position}")
|
||||
except:
|
||||
pass
|
||||
|
||||
listener = K(on_release=handler)
|
||||
|
||||
listener.start()
|
||||
listener.join()
|
||||
Loading…
Reference in a new issue