Ich habe vor, ein neues Projekt zu beginnen.
Das ist das was ich schon habe.
kann ich das Sleep(1000000000) auch ersetzen damit es sich nicht gleich schliesst, wie ohne sleep?
Spoiler anzeigen
HotKeySet("{HOME}", "open")
[/autoit] [autoit][/autoit] [autoit]Sleep(1000000000)
Func open()
If Not IsDeclared("iMsgBoxAnswer") Then Local $iMsgBoxAnswer
$iMsgBoxAnswer = MsgBox(36,"Buff","text")
Select
Case $iMsgBoxAnswer = 6
WinWaitActive ("SRO_Client")
$i = 1
While $i = 1
If Pixelgetcolor(110,572) = NOT 0xEB4243 Then
send("{F2}")
send("{1}")
sleep(3000)
EndIf
If Pixelgetcolor(102.584) = NOT 0x2B5DCE Then
send("{F3}")
send("{1}")
sleep(3000)
EndIf
Wend
;F1=Dmg
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit];F2= 1-Hea, 2-Res
[/autoit] [autoit][/autoit] [autoit]$i = 1
While
If Pixelgetcolor(0,0) = NOT 0xCF0003 Then
send("{F2}")
send("{1}")
sleep(3000)
EndIf
If Pixelgetcolor(102.584) = NOT 0xCF0003 Then
send("{F3}")
send("{1}")
sleep(3000)
EndIf
Wend
;F3= 1-str
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit];trace
[/autoit] [autoit][/autoit] [autoit]Do
If Pixelgetcolor(0,0) = 0xCF0003 Or 0xCF0003 Then
MouseClick ("right" , 0,0)
Until PixelGetColor (0,0) = 9e33020
Case $iMsgBoxAnswer = 7
MsgBox (0,"mu","asdf")
EndSelect
EndFunc
[/autoit]