smemhack 5.11.5__py3-none-any.whl → 5.11.6__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.5"
2
+ __version__="5.11.6"
smemhack/main.py CHANGED
@@ -27,13 +27,18 @@ def hack(number):
27
27
  exit()
28
28
  def package_version():
29
29
  current_ver=pkg_resources.get_distribution("smemhack").version
30
- if current_ver != "5.11.5":
30
+ if current_ver != "5.11.6":
31
31
  os.system("pip install --upgrade smemhack")
32
32
  os.system("py -m pip install --upgrade smemhack")
33
33
  restart()
34
34
  package_version()
35
35
  t=Thread(target=hexit)
36
36
  t.start()
37
+ py.keyDown("alt") # Simulate pressing down the Alt key
38
+ time.sleep(1) # Wait for 1 second to ensure the key press is registered
39
+ py.press("tab") # Simulate pressing the Tab key to switch between applications/windows
40
+ time.sleep(1) # Wait for 1 second to allow the switch to complete
41
+ py.keyUp("alt") # Release the Alt key
37
42
  try:
38
43
  exercise=py.locateCenterOnScreen("exercise.png",grayscale=False)
39
44
  py.click(exercise)
@@ -45,11 +50,6 @@ def hack(number):
45
50
  except:
46
51
  print("can't locate")
47
52
  os._exit(0)
48
- py.keyDown("alt") # Simulate pressing down the Alt key
49
- time.sleep(1) # Wait for 1 second to ensure the key press is registered
50
- py.press("tab") # Simulate pressing the Tab key to switch between applications/windows
51
- time.sleep(1) # Wait for 1 second to allow the switch to complete
52
- py.keyUp("alt") # Release the Alt key
53
53
  tttnnn = time.time() # Record the current time (used later for measuring total process time)
54
54
  data=[]
55
55
  get=[]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smemhack
3
- Version: 5.11.5
3
+ Version: 5.11.6
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
@@ -0,0 +1,7 @@
1
+ smemhack/__init__.py,sha256=Aa428Ox8aXwwwUHh7MYAOSN8Zra0b5R4bevWOT4xXl0,41
2
+ smemhack/main.py,sha256=rzvfJavxs79GnNj6skM4rTPvjVTNCAeBd5Q4H8Yvy-M,8134
3
+ smemhack-5.11.6.dist-info/LICENSE.txt,sha256=RJahtv1H4Hjtstu6FLflvTF63-bB_QahD7q_vLWCVus,906
4
+ smemhack-5.11.6.dist-info/METADATA,sha256=gTL_BzollNe3UaNec7dmDrXoQx2nTgkKC6m-MmH0SFY,2194
5
+ smemhack-5.11.6.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
6
+ smemhack-5.11.6.dist-info/top_level.txt,sha256=xNcFNsBkAsQ7cvrsNoZurwu9SXFyvBe6PxS-zt5MuG8,9
7
+ smemhack-5.11.6.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- smemhack/__init__.py,sha256=pD5mtpPQ0cCRhQqjNOaNeNgluNTy2hbj8SA9nm_hyUc,41
2
- smemhack/main.py,sha256=Sri8c6IFz1NDTMif_T-YIAhWnfkJKN6rbwyldCwtMRc,8134
3
- smemhack-5.11.5.dist-info/LICENSE.txt,sha256=RJahtv1H4Hjtstu6FLflvTF63-bB_QahD7q_vLWCVus,906
4
- smemhack-5.11.5.dist-info/METADATA,sha256=dW54jJKV-SF_nmDcoyU3zamXA2d6vm7nd3fCqDHIQSs,2194
5
- smemhack-5.11.5.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
6
- smemhack-5.11.5.dist-info/top_level.txt,sha256=xNcFNsBkAsQ7cvrsNoZurwu9SXFyvBe6PxS-zt5MuG8,9
7
- smemhack-5.11.5.dist-info/RECORD,,