smemhack 5.9__py3-none-any.whl → 5.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- smemhack/__init__.py +1 -1
- smemhack/main.py +31 -23
- {smemhack-5.9.dist-info → smemhack-5.10.dist-info}/METADATA +8 -3
- smemhack-5.10.dist-info/RECORD +7 -0
- smemhack-5.9.dist-info/RECORD +0 -7
- {smemhack-5.9.dist-info → smemhack-5.10.dist-info}/LICENSE.txt +0 -0
- {smemhack-5.9.dist-info → smemhack-5.10.dist-info}/WHEEL +0 -0
- {smemhack-5.9.dist-info → smemhack-5.10.dist-info}/top_level.txt +0 -0
smemhack/__init__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
from .main import *
|
2
|
-
__version__="5.
|
2
|
+
__version__="5.10"
|
smemhack/main.py
CHANGED
@@ -25,9 +25,17 @@ def hack(number):
|
|
25
25
|
os.system("py -m pip install --upgrade smemhack")
|
26
26
|
t=Thread(target=hexit)
|
27
27
|
t.start()
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
try:
|
29
|
+
exercise=py.locateCenterOnScreen("exercise.png",grayscale=False)
|
30
|
+
py.click(exercise)
|
31
|
+
time.sleep(0.5)
|
32
|
+
question=py.locateCenterOnScreen("question.png",grayscale=False)
|
33
|
+
question=question[0]+100
|
34
|
+
qnext=py.locateCenterOnScreen("next.png",grayscale=False)
|
35
|
+
qexit=py.locateCenterOnScreen("exit.png",grayscale=False)
|
36
|
+
except:
|
37
|
+
print("can't locate")
|
38
|
+
os._exit(0)
|
31
39
|
py.keyDown("alt") # Simulate pressing down the Alt key
|
32
40
|
time.sleep(1) # Wait for 1 second to ensure the key press is registered
|
33
41
|
py.press("tab") # Simulate pressing the Tab key to switch between applications/windows
|
@@ -39,7 +47,7 @@ def hack(number):
|
|
39
47
|
def get_w():
|
40
48
|
py.press("enter")
|
41
49
|
time.sleep(0.5)
|
42
|
-
py.click(
|
50
|
+
py.click(question)
|
43
51
|
py.click()
|
44
52
|
py.mouseDown()
|
45
53
|
py.keyDown("ctrl")
|
@@ -51,15 +59,15 @@ def hack(number):
|
|
51
59
|
first=first.split(" ")
|
52
60
|
first="".join(first)
|
53
61
|
if "_" in first:
|
54
|
-
py.click(
|
62
|
+
py.click(qexit)
|
55
63
|
time.sleep(0.5)
|
56
|
-
py.click(
|
64
|
+
py.click(exercise)
|
57
65
|
get_w()
|
58
66
|
time.sleep(1)
|
59
67
|
time.sleep(0.5)
|
60
|
-
py.click(
|
68
|
+
py.click(qnext)
|
61
69
|
time.sleep(0.5)
|
62
|
-
py.click(115
|
70
|
+
py.click(115,604)
|
63
71
|
time.sleep(0.5)
|
64
72
|
py.keyDown("ctrl")
|
65
73
|
py.press("a")
|
@@ -68,7 +76,7 @@ def hack(number):
|
|
68
76
|
py.click()
|
69
77
|
time.sleep(0.5)
|
70
78
|
first_g=pycopy.paste()
|
71
|
-
py.click(
|
79
|
+
py.click(question)
|
72
80
|
time.sleep(0.5)
|
73
81
|
py.typewrite(first)
|
74
82
|
time.sleep(0.5)
|
@@ -79,7 +87,7 @@ def hack(number):
|
|
79
87
|
while True:
|
80
88
|
py.press("enter")
|
81
89
|
time.sleep(0.5)
|
82
|
-
py.click(
|
90
|
+
py.click(question)
|
83
91
|
py.click()
|
84
92
|
py.mouseDown()
|
85
93
|
time.sleep(0.5)
|
@@ -89,21 +97,21 @@ def hack(number):
|
|
89
97
|
py.mouseUp()
|
90
98
|
py.click()
|
91
99
|
time.sleep(0.5)
|
92
|
-
py.click(
|
100
|
+
py.click(qnext)
|
93
101
|
n=pycopy.paste()
|
94
102
|
n=n.split(" ")
|
95
103
|
n="".join(n)
|
96
104
|
if "_" in n:
|
97
|
-
py.click(
|
105
|
+
py.click(qexit)
|
98
106
|
time.sleep(0.5)
|
99
|
-
py.click(
|
107
|
+
py.click(exercise)
|
100
108
|
get_w()
|
101
109
|
if n== first:
|
102
110
|
break
|
103
111
|
else:
|
104
112
|
data.append(n)
|
105
113
|
time.sleep(0.5)
|
106
|
-
py.click(115
|
114
|
+
py.click(115,604)
|
107
115
|
time.sleep(0.5)
|
108
116
|
py.keyDown("ctrl")
|
109
117
|
py.press("a")
|
@@ -113,14 +121,14 @@ def hack(number):
|
|
113
121
|
time.sleep(0.5)
|
114
122
|
nn=pycopy.paste()
|
115
123
|
get.append(nn)
|
116
|
-
py.click(
|
124
|
+
py.click(question)
|
117
125
|
time.sleep(0.5)
|
118
126
|
py.typewrite(n)
|
119
127
|
time.sleep(0.5)
|
120
128
|
py.press("enter")
|
121
129
|
time.sleep(0.5)
|
122
130
|
time.sleep(0.5)
|
123
|
-
py.click(
|
131
|
+
py.click(qexit)
|
124
132
|
get_w()
|
125
133
|
py.keyDown("alt") # Simulate pressing down the Alt key
|
126
134
|
time.sleep(1) # Wait for 1 second to ensure the key press is registered
|
@@ -148,7 +156,7 @@ def hack(number):
|
|
148
156
|
py.press("tab") # Simulate pressing the Tab key to switch between applications/windows
|
149
157
|
time.sleep(1) # Wait for 1 second to allow the switch to complete
|
150
158
|
py.keyUp("alt")
|
151
|
-
py.click(
|
159
|
+
py.click(exercise)
|
152
160
|
time.sleep(1)
|
153
161
|
lw=""
|
154
162
|
def normal_w(ggget,data):
|
@@ -159,7 +167,7 @@ def hack(number):
|
|
159
167
|
gget="\n".join(gget)
|
160
168
|
xget.append(gget)
|
161
169
|
for _ in range(0,len(data)+number):
|
162
|
-
py.click(115
|
170
|
+
py.click(115,604)
|
163
171
|
py.keyDown("ctrl")
|
164
172
|
py.press("a")
|
165
173
|
py.press("c")
|
@@ -171,13 +179,13 @@ def hack(number):
|
|
171
179
|
w=w[2:]
|
172
180
|
w="\n".join(w)
|
173
181
|
word,_=process.extractOne(w,xget)
|
174
|
-
py.click(
|
182
|
+
py.click(question)
|
175
183
|
time.sleep(0.5)
|
176
184
|
py.typewrite(data[xget.index(word)])
|
177
185
|
py.press("enter")
|
178
186
|
time.sleep(1)
|
179
187
|
for _ in range(0,len(data)+number):
|
180
|
-
py.click(115
|
188
|
+
py.click(115,604)
|
181
189
|
py.keyDown("ctrl")
|
182
190
|
py.press("a")
|
183
191
|
py.press("c")
|
@@ -186,9 +194,9 @@ def hack(number):
|
|
186
194
|
time.sleep(0.5)
|
187
195
|
gg=pycopy.paste()
|
188
196
|
if gg== lw:
|
189
|
-
py.click(
|
197
|
+
py.click(qexit)
|
190
198
|
time.sleep(0.5)
|
191
|
-
py.click(
|
199
|
+
py.click(exercise)
|
192
200
|
normal_w(get,data)
|
193
201
|
break
|
194
202
|
else:
|
@@ -198,7 +206,7 @@ def hack(number):
|
|
198
206
|
gg=pad_sequences(gg,maxlen=5)
|
199
207
|
prediction=model.predict(gg)
|
200
208
|
pd=np.argmax(prediction)
|
201
|
-
py.click(
|
209
|
+
py.click(question)
|
202
210
|
time.sleep(0.5)
|
203
211
|
py.typewrite(data[pd])
|
204
212
|
py.press("enter")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: smemhack
|
3
|
-
Version: 5.
|
3
|
+
Version: 5.10
|
4
4
|
Summary: A Python library to automate online homework tasks with AI and system control.
|
5
5
|
Author: Dickily
|
6
6
|
Author-email: dickilyyiu@gmail.com
|
@@ -19,6 +19,7 @@ Requires-Dist: numpy>=1.20.0
|
|
19
19
|
Requires-Dist: keyboard>=0.13.5
|
20
20
|
Requires-Dist: fuzzywuzzy>=0.18.0
|
21
21
|
Requires-Dist: python-Levenshtein>=0.12.2
|
22
|
+
Requires-Dist: Pillow>=8.0.0
|
22
23
|
|
23
24
|
# smemhack
|
24
25
|
**smemhack** is a Python library designed to automate online homework tasks with AI and system control.
|
@@ -50,15 +51,19 @@ Now you can't enter number below 0 or larger than 5
|
|
50
51
|
|
51
52
|
Upgraded the backup compare system
|
52
53
|
|
53
|
-
|
54
|
+
**What is new in version 5.9**
|
54
55
|
|
55
56
|
Now it will auto upgrade the program
|
56
57
|
|
58
|
+
# What is new in version 5.10
|
59
|
+
|
60
|
+
Updated the code so that it will fit everybody's computer
|
61
|
+
|
57
62
|
**How to Use it:**
|
58
63
|
|
59
64
|
copy the code i give in the last of this discription and change the new_word_number to the number of new word you have entered
|
60
65
|
|
61
|
-
1.Prepare a started solidmemory page(exercise page)
|
66
|
+
1.Prepare a not started solidmemory page(exercise page)
|
62
67
|
|
63
68
|
2.Run the code
|
64
69
|
## Usage
|
@@ -0,0 +1,7 @@
|
|
1
|
+
smemhack/__init__.py,sha256=qxd-Coqzhgh2B4dWt49lYg_4N9B6LqKuArZr_OVF6_U,39
|
2
|
+
smemhack/main.py,sha256=3AmczPFQY6pNUIVBKI5mT8D1NnqFR8jZ7105hiEoGag,7819
|
3
|
+
smemhack-5.10.dist-info/LICENSE.txt,sha256=RJahtv1H4Hjtstu6FLflvTF63-bB_QahD7q_vLWCVus,906
|
4
|
+
smemhack-5.10.dist-info/METADATA,sha256=GNJcri-_F8ZvKuzrBe-InKDUGQ86MQ9aRLnFQtZNjXU,2099
|
5
|
+
smemhack-5.10.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
6
|
+
smemhack-5.10.dist-info/top_level.txt,sha256=xNcFNsBkAsQ7cvrsNoZurwu9SXFyvBe6PxS-zt5MuG8,9
|
7
|
+
smemhack-5.10.dist-info/RECORD,,
|
smemhack-5.9.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
smemhack/__init__.py,sha256=CoE-hhuinGX29iBvRvVhBxodc4lQWzP6tluAD2nYcAY,38
|
2
|
-
smemhack/main.py,sha256=I2R9yiq080G9RAXIXQ5ecI5_6vPMo-kb6_iYR0PpRww,7565
|
3
|
-
smemhack-5.9.dist-info/LICENSE.txt,sha256=RJahtv1H4Hjtstu6FLflvTF63-bB_QahD7q_vLWCVus,906
|
4
|
-
smemhack-5.9.dist-info/METADATA,sha256=77YALvMQNf5OLjpjiKExtcEvhXRGeFrxQqrtwsTjJxY,1968
|
5
|
-
smemhack-5.9.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
6
|
-
smemhack-5.9.dist-info/top_level.txt,sha256=xNcFNsBkAsQ7cvrsNoZurwu9SXFyvBe6PxS-zt5MuG8,9
|
7
|
-
smemhack-5.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|