smemhack 5.11.11__tar.gz → 5.11.12__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smemhack
3
- Version: 5.11.11
3
+ Version: 5.11.12
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
@@ -6,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as f:
6
6
 
7
7
  setup(
8
8
  name="smemhack",
9
- version="5.11.11",
9
+ version="5.11.12",
10
10
  packages=find_packages(),
11
11
  include_package_data=True, # Ensure package data is included
12
12
  package_data={
@@ -0,0 +1,2 @@
1
+ from .main import *
2
+ __version__="5.11.12"
@@ -38,11 +38,17 @@ def hack(number):
38
38
  exercise=py.locateCenterOnScreen(e,grayscale=False)
39
39
  py.click(exercise)
40
40
  time.sleep(1)
41
- question=py.locateCenterOnScreen(q,grayscale=False)
42
- question=question[0]+100
41
+ qn=py.locateCenterOnScreen(q,grayscale=False)
42
+ question=qn[0]-50,qn[1]
43
43
  qnext=py.locateCenterOnScreen(n,grayscale=False)
44
44
  qexit=py.locateCenterOnScreen(ex,grayscale=False)
45
45
  except:
46
+ py.keyDown("alt") # Simulate pressing down the Alt key
47
+ time.sleep(1) # Wait for 1 second to ensure the key press is registered
48
+ py.press("tab") # Simulate pressing the Tab key to switch between applications/windows
49
+ time.sleep(1) # Wait for 1 second to allow the switch to complete
50
+ py.keyUp("alt") # Release the Alt key
51
+ time.sleep(1)
46
52
  print("can't locate")
47
53
  os._exit(0)
48
54
  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.12
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
@@ -1,2 +0,0 @@
1
- from .main import *
2
- __version__="5.11.11"
File without changes
File without changes
File without changes