smemhack 5.11.11__tar.gz → 5.11.13__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.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
@@ -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.13",
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.13"
@@ -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
@@ -1,2 +0,0 @@
1
- from .main import *
2
- __version__="5.11.11"
File without changes
File without changes
File without changes