added setupfiles and used pydirectinput for compatibility
This commit is contained in:
parent
ba4d78c3d2
commit
8798d7b2a7
6
click.py
6
click.py
@ -1,9 +1,11 @@
|
|||||||
import sys
|
import sys
|
||||||
|
import pydirectinput
|
||||||
import pyautogui
|
import pyautogui
|
||||||
|
|
||||||
|
|
||||||
x = int(sys.argv[1])
|
x = int(sys.argv[1])
|
||||||
y = int(sys.argv[2])
|
y = int(sys.argv[2])
|
||||||
|
|
||||||
print("\n" + str(x) + str(y) + "\n")
|
print("\n" + str(x) + str(y) + "\n")
|
||||||
pyautogui.click(x,y)
|
pyautogui.moveTo(x,y, .3)
|
||||||
|
pydirectinput.moveTo(x,y, .3)
|
||||||
|
pyautogui.click(clicks=2, interval=.35)
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"photoInterval": 2,
|
"photoInterval": 2,
|
||||||
"targetColor": {
|
"targetColor": {
|
||||||
"r": 194,
|
"r": 85,
|
||||||
"g": 176,
|
"g": 73,
|
||||||
"b": 122,
|
"b": 49,
|
||||||
"a": 255
|
"a": 255
|
||||||
},
|
},
|
||||||
"tolerance": 3
|
"tolerance": 2
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user