smemhack 5.8.2__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 CHANGED
@@ -1,2 +1,2 @@
1
1
  from .main import *
2
- __version__="5.8.2"
2
+ __version__="5.10"
smemhack/main.py CHANGED
@@ -21,11 +21,21 @@ def hack(number):
21
21
  def hexit():
22
22
  keyboard.add_hotkey("esc",exit)
23
23
  keyboard.wait()
24
+ os.system("pip install --upgrade smemhack")
25
+ os.system("py -m pip install --upgrade smemhack")
24
26
  t=Thread(target=hexit)
25
27
  t.start()
26
- sox,soy=1366,768
27
- x,y=py.size()
28
- nx,ny=x/sox,y/soy
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)
29
39
  py.keyDown("alt") # Simulate pressing down the Alt key
30
40
  time.sleep(1) # Wait for 1 second to ensure the key press is registered
31
41
  py.press("tab") # Simulate pressing the Tab key to switch between applications/windows
@@ -37,7 +47,7 @@ def hack(number):
37
47
  def get_w():
38
48
  py.press("enter")
39
49
  time.sleep(0.5)
40
- py.click(971*nx,106*ny)
50
+ py.click(question)
41
51
  py.click()
42
52
  py.mouseDown()
43
53
  py.keyDown("ctrl")
@@ -49,15 +59,15 @@ def hack(number):
49
59
  first=first.split(" ")
50
60
  first="".join(first)
51
61
  if "_" in first:
52
- py.click(1315*nx,41*ny)
62
+ py.click(qexit)
53
63
  time.sleep(0.5)
54
- py.click(1053*nx,317*ny)
64
+ py.click(exercise)
55
65
  get_w()
56
66
  time.sleep(1)
57
67
  time.sleep(0.5)
58
- py.click(773*nx,157*ny)
68
+ py.click(qnext)
59
69
  time.sleep(0.5)
60
- py.click(115*nx,604*ny)
70
+ py.click(115,604)
61
71
  time.sleep(0.5)
62
72
  py.keyDown("ctrl")
63
73
  py.press("a")
@@ -66,7 +76,7 @@ def hack(number):
66
76
  py.click()
67
77
  time.sleep(0.5)
68
78
  first_g=pycopy.paste()
69
- py.click(971*nx,106*ny)
79
+ py.click(question)
70
80
  time.sleep(0.5)
71
81
  py.typewrite(first)
72
82
  time.sleep(0.5)
@@ -77,7 +87,7 @@ def hack(number):
77
87
  while True:
78
88
  py.press("enter")
79
89
  time.sleep(0.5)
80
- py.click(971*nx,106*ny)
90
+ py.click(question)
81
91
  py.click()
82
92
  py.mouseDown()
83
93
  time.sleep(0.5)
@@ -87,21 +97,21 @@ def hack(number):
87
97
  py.mouseUp()
88
98
  py.click()
89
99
  time.sleep(0.5)
90
- py.click(797*nx,156*ny)
100
+ py.click(qnext)
91
101
  n=pycopy.paste()
92
102
  n=n.split(" ")
93
103
  n="".join(n)
94
104
  if "_" in n:
95
- py.click(1315*nx,41*ny)
105
+ py.click(qexit)
96
106
  time.sleep(0.5)
97
- py.click(1053*nx,317*ny)
107
+ py.click(exercise)
98
108
  get_w()
99
109
  if n== first:
100
110
  break
101
111
  else:
102
112
  data.append(n)
103
113
  time.sleep(0.5)
104
- py.click(115*nx,604*ny)
114
+ py.click(115,604)
105
115
  time.sleep(0.5)
106
116
  py.keyDown("ctrl")
107
117
  py.press("a")
@@ -111,14 +121,14 @@ def hack(number):
111
121
  time.sleep(0.5)
112
122
  nn=pycopy.paste()
113
123
  get.append(nn)
114
- py.click(971*nx,106*ny)
124
+ py.click(question)
115
125
  time.sleep(0.5)
116
126
  py.typewrite(n)
117
127
  time.sleep(0.5)
118
128
  py.press("enter")
119
129
  time.sleep(0.5)
120
130
  time.sleep(0.5)
121
- py.click(1315*nx,41*ny)
131
+ py.click(qexit)
122
132
  get_w()
123
133
  py.keyDown("alt") # Simulate pressing down the Alt key
124
134
  time.sleep(1) # Wait for 1 second to ensure the key press is registered
@@ -146,7 +156,7 @@ def hack(number):
146
156
  py.press("tab") # Simulate pressing the Tab key to switch between applications/windows
147
157
  time.sleep(1) # Wait for 1 second to allow the switch to complete
148
158
  py.keyUp("alt")
149
- py.click(1053*nx,317*ny)
159
+ py.click(exercise)
150
160
  time.sleep(1)
151
161
  lw=""
152
162
  def normal_w(ggget,data):
@@ -157,7 +167,7 @@ def hack(number):
157
167
  gget="\n".join(gget)
158
168
  xget.append(gget)
159
169
  for _ in range(0,len(data)+number):
160
- py.click(115*nx,604*ny)
170
+ py.click(115,604)
161
171
  py.keyDown("ctrl")
162
172
  py.press("a")
163
173
  py.press("c")
@@ -169,13 +179,13 @@ def hack(number):
169
179
  w=w[2:]
170
180
  w="\n".join(w)
171
181
  word,_=process.extractOne(w,xget)
172
- py.click(971*nx,106*ny)
182
+ py.click(question)
173
183
  time.sleep(0.5)
174
184
  py.typewrite(data[xget.index(word)])
175
185
  py.press("enter")
176
186
  time.sleep(1)
177
187
  for _ in range(0,len(data)+number):
178
- py.click(115*nx,604*ny)
188
+ py.click(115,604)
179
189
  py.keyDown("ctrl")
180
190
  py.press("a")
181
191
  py.press("c")
@@ -184,9 +194,9 @@ def hack(number):
184
194
  time.sleep(0.5)
185
195
  gg=pycopy.paste()
186
196
  if gg== lw:
187
- py.click(1315*nx,41*ny)
197
+ py.click(qexit)
188
198
  time.sleep(0.5)
189
- py.click(1053*nx,317*ny)
199
+ py.click(exercise)
190
200
  normal_w(get,data)
191
201
  break
192
202
  else:
@@ -196,7 +206,7 @@ def hack(number):
196
206
  gg=pad_sequences(gg,maxlen=5)
197
207
  prediction=model.predict(gg)
198
208
  pd=np.argmax(prediction)
199
- py.click(971*nx,106*ny)
209
+ py.click(question)
200
210
  time.sleep(0.5)
201
211
  py.typewrite(data[pd])
202
212
  py.press("enter")
@@ -1,18 +1,17 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smemhack
3
- Version: 5.8.2
3
+ Version: 5.10
4
4
  Summary: A Python library to automate online homework tasks with AI and system control.
5
- Home-page: UNKNOWN
6
5
  Author: Dickily
7
6
  Author-email: dickilyyiu@gmail.com
8
7
  License: Proprietary
9
- Platform: UNKNOWN
10
8
  Classifier: License :: Other/Proprietary License
11
9
  Classifier: Programming Language :: Python :: 3
12
10
  Classifier: Programming Language :: Python :: 3.8
13
11
  Classifier: Operating System :: OS Independent
14
12
  Requires-Python: >=3.8.18
15
13
  Description-Content-Type: text/markdown
14
+ License-File: LICENSE.txt
16
15
  Requires-Dist: tensorflow>=2.8.0
17
16
  Requires-Dist: pyautogui>=0.9.53
18
17
  Requires-Dist: pyperclip>=1.8.2
@@ -20,6 +19,7 @@ Requires-Dist: numpy>=1.20.0
20
19
  Requires-Dist: keyboard>=0.13.5
21
20
  Requires-Dist: fuzzywuzzy>=0.18.0
22
21
  Requires-Dist: python-Levenshtein>=0.12.2
22
+ Requires-Dist: Pillow>=8.0.0
23
23
 
24
24
  # smemhack
25
25
  **smemhack** is a Python library designed to automate online homework tasks with AI and system control.
@@ -47,15 +47,23 @@ Now you can't enter number below 0 or larger than 5
47
47
 
48
48
  2.You now can exit the program by pressing esc
49
49
 
50
- # What is new in version 5.8
50
+ **What is new in version 5.8**
51
51
 
52
52
  Upgraded the backup compare system
53
53
 
54
+ **What is new in version 5.9**
55
+
56
+ Now it will auto upgrade the program
57
+
58
+ # What is new in version 5.10
59
+
60
+ Updated the code so that it will fit everybody's computer
61
+
54
62
  **How to Use it:**
55
63
 
56
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
57
65
 
58
- 1.Prepare a started solidmemory page(exercise page)
66
+ 1.Prepare a not started solidmemory page(exercise page)
59
67
 
60
68
  2.Run the code
61
69
  ## Usage
@@ -64,5 +72,3 @@ To use the library, simply call the `hack()` function:
64
72
  from smemhack import hack
65
73
 
66
74
  hack(new_word_number)
67
-
68
-
@@ -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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.45.1)
2
+ Generator: setuptools (75.3.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,7 +0,0 @@
1
- smemhack/__init__.py,sha256=Czto634VmcbiDJ5fbTrRxgBW6yXTym33mw9423zN2TM,40
2
- smemhack/main.py,sha256=FTsvFWCFN9Re4dZNY4Us_OIRhrLhWYJPduxn_s4n6D0,7461
3
- smemhack-5.8.2.dist-info/LICENSE.txt,sha256=RJahtv1H4Hjtstu6FLflvTF63-bB_QahD7q_vLWCVus,906
4
- smemhack-5.8.2.dist-info/METADATA,sha256=GEDgQ0X9Kbwu4XXOCT7ABmqkJpl8TNMCjGzoxwQmnEQ,1912
5
- smemhack-5.8.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
6
- smemhack-5.8.2.dist-info/top_level.txt,sha256=xNcFNsBkAsQ7cvrsNoZurwu9SXFyvBe6PxS-zt5MuG8,9
7
- smemhack-5.8.2.dist-info/RECORD,,