-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmousepos.py
35 lines (30 loc) · 835 Bytes
/
mousepos.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import pyautogui
import pyperclip
import time
import pickle
def exportReadable():
d = {}
with open('wordlistFinal.pickle', 'rb') as handle:
d = pickle.load(handle)
readable = open("wordlistReadable.csv", "w")
for x in d.keys():
entry = str(x) +","+ str(d[x])
readable.write(entry+'\n')
readable.close()
exportReadable()
# text = open("mainscreen.txt").read().split()
# print(text)
# paste = pyperclip.paste().split()
# print(paste)
# print(text[0:14] == paste[0:14])
# while(True):
# print(pyautogui.position())
# time.sleep(.5)
# d = {}
# with open('wordlist.pickle', 'rb') as handle:
# d = pickle.load(handle)
# for x in d.keys():
# d[x] = 0
# print(d)
# with open('wordlistFinal.pickle', 'wb') as handle:
# pickle.dump(d, handle, protocol=pickle.HIGHEST_PROTOCOL)