Habe zwei fast identische codes aber der 2 te ist immer falsch :(
Der geht
Der geht NICHT
Der geht
Code:
HotKeySet("s", "start")
HotKeySet("e", "ende")
$Variable = 10
Func start ()
while 1
if $Variable > 1 then
MouseClick ("Left",159, 168 , 2, 2)
MouseClick ("Left",408, 213 , 2, 2)
MouseClick ("Left",537, 366 , 2, 2)
MouseClick ("Left",541, 341 , 2, 2)
MouseClick ("Left",539, 319 , 2, 2)
MouseClick ("Left",539, 295 , 2, 2)
MouseClick ("Left",540, 271 , 2, 2)
MouseClick ("Left",540, 270 , 2, 2)
MouseClick ("Left",542, 230 , 2, 2)
$Variable = $Variable - "1"
Else
MsgBox (0, "Info", "Die Mausklicksimulation wurde beendet!")
EndIf
wend
EndFunc
Func ende ()
exit
EndFunc
While 1
sleep(100)
wend
Code:
HotKeySet("s", "start")
HotKeySet("e", "ende")
While 1
Sleep(100)
Wend
$Variable = 10
Func start ()
while 1
if $Variable > 1 then
MouseClick ("Left",0, 0 , 2, 2)
MouseClick ("Left",0, 0 , 2, 2)
MouseClick ("Left",0, 0 , 2, 2)
MouseClick ("Left",0, 0 , 2, 2)
MouseClick ("Left",0, 0 , 2, 2)
MouseClick ("Left",0, 0 , 2, 2)
MouseClick ("Left",0, 0 , 2, 2)
MouseClick ("Left",0, 0 , 2, 2)
MouseClick ("Left",0, 0 , 2, 2)
$Variable = $Variable - "1"
Else
MsgBox (0, "Info", "Die Mausklicksimulation wurde beendet!")
EndIf
wend
EndFunc
Func ende ()
exit
EndFunc