smemhack 5.11.7__py3-none-any.whl → 5.11.9__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.7"
2
+ __version__="5.11.9"
smemhack/main.py CHANGED
@@ -22,16 +22,6 @@ def hack(number):
22
22
  def hexit():
23
23
  keyboard.add_hotkey("esc",exit)
24
24
  keyboard.wait()
25
- def restart():
26
- os.system(f"python {os.path.abspath(__file__)}")
27
- exit()
28
- def package_version():
29
- current_ver=pkg_resources.get_distribution("smemhack").version
30
- if current_ver != "5.11.8":
31
- os.system("pip install --upgrade smemhack")
32
- os.system("py -m pip install --upgrade smemhack")
33
- restart()
34
- package_version()
35
25
  t=Thread(target=hexit)
36
26
  t.start()
37
27
  py.keyDown("alt") # Simulate pressing down the Alt key
@@ -39,6 +29,7 @@ def hack(number):
39
29
  py.press("tab") # Simulate pressing the Tab key to switch between applications/windows
40
30
  time.sleep(1) # Wait for 1 second to allow the switch to complete
41
31
  py.keyUp("alt") # Release the Alt key
32
+ time.sleep(1)
42
33
  try:
43
34
  exercise=py.locateCenterOnScreen("exercise.png",grayscale=False)
44
35
  py.click(exercise)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smemhack
3
- Version: 5.11.7
3
+ Version: 5.11.9
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=JcGF4PydV-lf-0Z2XVND1rdY3enRNYfh9nfpu9NS7OU,41
2
+ smemhack/main.py,sha256=N-8laK-1iHHod6aVrNMvliOoVfGKSB9T2MxM4KXFY4M,7756
3
+ smemhack-5.11.9.dist-info/LICENSE.txt,sha256=RJahtv1H4Hjtstu6FLflvTF63-bB_QahD7q_vLWCVus,906
4
+ smemhack-5.11.9.dist-info/METADATA,sha256=OISUH0Wdbp4--zzfvDPy9cM8LvSOcSF8xTVCUXajzCY,2194
5
+ smemhack-5.11.9.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
6
+ smemhack-5.11.9.dist-info/top_level.txt,sha256=xNcFNsBkAsQ7cvrsNoZurwu9SXFyvBe6PxS-zt5MuG8,9
7
+ smemhack-5.11.9.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- smemhack/__init__.py,sha256=68xUe_YqU02lH5eRqAJ34U1ocUh7b8sol4CRv9TEjcY,41
2
- smemhack/main.py,sha256=97FvQG_aO3qS4NMUwDVC2mdDvJfew3SQR8Mtbt9DkMc,8134
3
- smemhack-5.11.7.dist-info/LICENSE.txt,sha256=RJahtv1H4Hjtstu6FLflvTF63-bB_QahD7q_vLWCVus,906
4
- smemhack-5.11.7.dist-info/METADATA,sha256=5JtOz1amLznI_JWBkjow3pnOHfQerkQSaMwHfDWTeuE,2194
5
- smemhack-5.11.7.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
6
- smemhack-5.11.7.dist-info/top_level.txt,sha256=xNcFNsBkAsQ7cvrsNoZurwu9SXFyvBe6PxS-zt5MuG8,9
7
- smemhack-5.11.7.dist-info/RECORD,,