-
Notifications
You must be signed in to change notification settings - Fork 1
/
g.py
73 lines (43 loc) · 1.05 KB
/
g.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
########## user can edit #####
# the window need some time to disappear
screenshotDelay = 100 # unit: ms
# for debug not cover whole screen
scrX = 0
scrY = 0
scrW = 1100
scrH = 500
# enable this if you want to.
# autoGetDesktopSize = False
autoGetDesktopSize = True
# If it doesn't fetch your desktop size correctly,
# disable it and manually fill your resolution into above
fontsize = 11
# whether to do a click after moving the mouse cursor to a position
autoClick = True
autoClickDelay = 0.1 # unit: second
# --------------------------
# it's NOT recommended user to edit below
n_rows = 5
n_cols = 6
# n_rows, n_cols = 4, 8
cells = {
# 'A': {'x': 150, 'y': 200, 'w': 120, 'h': 120},
# 'B': ...
}
curCellX=0
curCellY=0
curCellW=0
curCellH=0
keyListener = None
wdapp = None
startKeysStatus = 0
clickKeysStatus = 0
showingScreen = False
regions = []
LC = 0
keypList = []
prsdKeys = []
keypListFiltered = []
letterList = list('ABCDEFGHJKLMNOPQRSTUVWXYZ234789')
import os
os.chdir ( os.path.abspath( os.path.dirname ( __file__ ) ) )