-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.py
More file actions
39 lines (31 loc) · 1.11 KB
/
test.py
File metadata and controls
39 lines (31 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#imports
from pyautogui import printInfo
from VisionManager import Handle_Images, ShotType
import InputManager as PlayerInput
from time import sleep
from Utility import PTimer, Counter
#Gloabl Variables
handle = Handle_Images("Dot.png", Acc=0.90)
handle.ScreenShot(ShotType.Single)
MainTimer = PTimer({"MouseTimer":PTimer(), "SkillTimer":PTimer()})
MainCounter = {"MC":Counter()}
tempToggle = False
def PrintInfo():
print("Hello World")
#MainLoop
while True:
#PlayerInput.GetKeyPress(handle.ToggleScreenShot, Key="o")
PlayerInput.GetKeyPress(PrintInfo, Key="i")
#PlayerInput.IsMouseBeingHeld(Callback=PlayerInput.MouseClick, Counter=MainCounter["MC"])
PlayerInput.GetSingleMouseInteraction(SavePosition=True, Callback=PrintInfo)
if handle._ToggleScreenShot == True:
if handle.Template() == False:
handle.ScreenShot(ShotType.Single)
if handle.Loc[0] > -1 and handle.Loc[1] > -1:
PlayerInput.MouseClick(
True,
handle.CenterPoint[0],
handle.CenterPoint[1],
0.001
)
sleep(0.0001)