Skip to content

Commit

Permalink
added coordFinder and requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikateen committed Oct 19, 2019
1 parent 913d155 commit 69493f0
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 32 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 23,4 @@
*.zip
############
.DS_Store
Clicker.py
31 changes: 0 additions & 31 deletions Clicker.py

This file was deleted.

23 changes: 22 additions & 1 deletion coordFinder.py
Original file line number Diff line number Diff line change
@@ -1 1,22 @@
import pyautogui
import pyautogui
from pynput.keyboard import Key, Listener

def on_press(key):
#print('{0} pressed'.format(key))
pass


def on_release(key):
#print('{0} release'.format(key))

if str(key) == "'p'":
print(pyautogui.position())

if key == Key.esc:
# Stop listener
return False

with Listener(
on_press=on_press,
on_release=on_release) as listener:
listener.join()
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 1,2 @@
pyautogui
pynput

0 comments on commit 69493f0

Please sign in to comment.