smemhack 5.11.11__py3-none-any.whl → 5.11.13__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.11.11"
2
+ __version__="5.11.13"
smemhack/images/next.PNG CHANGED
Binary file
Binary file
smemhack/main.py CHANGED
@@ -34,15 +34,28 @@ def hack(number):
34
34
  q=pkg_resources.resource_filename("smemhack","images/question.png")
35
35
  n=pkg_resources.resource_filename("smemhack","images/next.png")
36
36
  ex=pkg_resources.resource_filename("smemhack","images/exit.png")
37
+ exercise=py.locateCenterOnScreen(e,grayscale=False)
38
+ py.click(exercise)
39
+ time.sleep(1)
40
+ qn=py.locateCenterOnScreen(q,grayscale=False)
41
+ question=qn[0]-100,qn[1]
42
+ qnext=py.locateCenterOnScreen(n,grayscale=False)
43
+ qexit=py.locateCenterOnScreen(ex,grayscale=False)
37
44
  try:
38
45
  exercise=py.locateCenterOnScreen(e,grayscale=False)
39
46
  py.click(exercise)
40
47
  time.sleep(1)
41
- question=py.locateCenterOnScreen(q,grayscale=False)
42
- question=question[0]+100
48
+ qn=py.locateCenterOnScreen(q,grayscale=False)
49
+ question=qn[0]-50,qn[1]
43
50
  qnext=py.locateCenterOnScreen(n,grayscale=False)
44
51
  qexit=py.locateCenterOnScreen(ex,grayscale=False)
45
52
  except:
53
+ py.keyDown("alt") # Simulate pressing down the Alt key
54
+ time.sleep(1) # Wait for 1 second to ensure the key press is registered
55
+ py.press("tab") # Simulate pressing the Tab key to switch between applications/windows
56
+ time.sleep(1) # Wait for 1 second to allow the switch to complete
57
+ py.keyUp("alt") # Release the Alt key
58
+ time.sleep(1)
46
59
  print("can't locate")
47
60
  os._exit(0)
48
61
  tttnnn = time.time() # Record the current time (used later for measuring total process time)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smemhack
3
- Version: 5.11.11
3
+ Version: 5.11.13
4
4
  Summary: A Python library to automate online homework tasks with AI and system control.
5
5
  Home-page: UNKNOWN
6
6
  Author: Dickily
@@ -0,0 +1,11 @@
1
+ smemhack/__init__.py,sha256=CdJz7eLk2RmoTsKhDCzOnUKlWp0v6fNdeYyeVy5EhcE,42
2
+ smemhack/main.py,sha256=5WZj4t1U8SZeXxROJUQNE6FtdYVU6mKoKEM6IeA1k5Q,8670
3
+ smemhack/images/exercise.PNG,sha256=vM_byly_GRI022Y4rYNHOkwPMUAeiyrIhT8n-H1BZMg,453
4
+ smemhack/images/exit.PNG,sha256=VYxVolgLiuSz7BnSpFgbyKlZzDNhLsuyyVdHOUEOsqA,454
5
+ smemhack/images/next.PNG,sha256=QEC0TAMz1_TUOLfEMCbgWWUQXInbAQ0gXAq9BvswEqc,561
6
+ smemhack/images/question.PNG,sha256=cfz7Izu9Yld-bOXWU8tRK0xJN2o1gyHtt0fjNmlkeiM,370
7
+ smemhack-5.11.13.dist-info/LICENSE.txt,sha256=RJahtv1H4Hjtstu6FLflvTF63-bB_QahD7q_vLWCVus,906
8
+ smemhack-5.11.13.dist-info/METADATA,sha256=DumSnZKoLMoaqzyYkNwrylcFautHJGP_O90ZOxtuqTY,2211
9
+ smemhack-5.11.13.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
10
+ smemhack-5.11.13.dist-info/top_level.txt,sha256=xNcFNsBkAsQ7cvrsNoZurwu9SXFyvBe6PxS-zt5MuG8,9
11
+ smemhack-5.11.13.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- smemhack/__init__.py,sha256=Scr9UR0jBiuRKUyjpke_PCkTXH0UARpuLUcJsxbMBxI,42
2
- smemhack/main.py,sha256=L-nyVyyTbKqslhYr1SoM7sDS0WZNaJTYte8yhqByrsQ,7996
3
- smemhack/images/exercise.PNG,sha256=vM_byly_GRI022Y4rYNHOkwPMUAeiyrIhT8n-H1BZMg,453
4
- smemhack/images/exit.PNG,sha256=VYxVolgLiuSz7BnSpFgbyKlZzDNhLsuyyVdHOUEOsqA,454
5
- smemhack/images/next.PNG,sha256=TSqR8yA5UEDN4gMHJuFRKGMvGwJ8XyHR_q-tyA3KUMk,1827
6
- smemhack/images/question.PNG,sha256=GpSAVAmhJ_K8q0Xh-tBbuLFKM-PMrEzcQZlWDBqR2rU,502
7
- smemhack-5.11.11.dist-info/LICENSE.txt,sha256=RJahtv1H4Hjtstu6FLflvTF63-bB_QahD7q_vLWCVus,906
8
- smemhack-5.11.11.dist-info/METADATA,sha256=bea8QWiLAB0f57m5cGQuuZ5Ilima-HXTE_erWAQFW-I,2211
9
- smemhack-5.11.11.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
10
- smemhack-5.11.11.dist-info/top_level.txt,sha256=xNcFNsBkAsQ7cvrsNoZurwu9SXFyvBe6PxS-zt5MuG8,9
11
- smemhack-5.11.11.dist-info/RECORD,,