Danke, funktioniert nun perfekt :)
Hab ImageSearch einfach in die While-Schleife eingebaut.
Hab ImageSearch einfach in die While-Schleife eingebaut.
Run("C:\Riot Games\League of Legends\lol.launcher")
While 1
$variable = PixelSearch(630,87,733,117,0x95410B)
If IsArray($variable) = True Then
MouseMove($variable [0], $variable [1], 1)
EndIf
WEnd
While
sleep(6000)
WEnd
MouseClick( "left" [, 686, 105 [, clicks = 2 [, speed = 1]]] )
sleep(5000)
MouseClick("left" [, 253, 349 [, clicks = 1 [, speed = 1]]] )
sleep(2000)
send("Password")
send(ENTER)
Func _Exit()
Exit
EndFunc
MouseClick ( "button" [, x, y [, clicks = 1 [, speed = 10]]] )
Run("C:\Riot Games\League of Legends\lol.launcher")
While 1
$variable = PixelSearch(630,87,733,117,0x95410B)
If IsArray($variable) = True Then
MouseMove($variable [0], $variable [1], 1)
EndIf
WEnd
While
sleep(6000)
WEnd
0
MouseClick( "left", 681, 103, 1)
sleep(5000)
MouseClick("left", 253, 349, 1)
sleep(2000)
send("Password")
send(ENTER)
Func _Exit()
Exit
EndFunc
Run("C:\Riot Games\League of Legends\lol.launcher")
;WinWaitActive("", "", 10) ;solltest du hier evtl. einbauen, natürlich musst du noch Parameter eintragen
$variable = PixelSearch(630, 87, 733, 117, 0x95410B)
While @error
$variable = PixelSearch(630, 87, 733, 117, 0x95410B)
If Not @error Then MouseMove($variable[0], $variable[1], 1)
WEnd
MouseClick("left", 686, 105, 2, 1)
Sleep(5000)
MouseClick("left", 253, 349, 1, 1)
Sleep(2000)
Send("Password")
Send("{ENTER}")
Run("C:\Riot Games\League of Legends\lol.launcher")
WinWaitActive("Lol", "LoL", 10)
$variable = PixelSearch(630, 87, 733, 117, 0x95410B)
While @error
$variable = PixelSearch(630, 87, 733, 117, 0x95410B)
If Not @error Then MouseMove($variable[0], $variable[1], 1)
WEnd
MouseClick("left", 686, 105, 2, 1)
Sleep(5000)
MouseClick("left", 253, 349, 1, 1)
Sleep(2000)
Send("yourpw")
Send("{ENTER}")
While 1
$variable = PixelSearch(630,87,733,117,0x95410B)
If IsArray($variable) = True Then
MouseMove($variable [0], $variable [1], 1)
EndIf
WEnd
While 1
$variable = PixelSearch(630, 87, 733, 117, 0x95410B)
If IsArray($variable) = True Then
MouseMove($variable[0], $variable[1], 1)
ExitLoop
EndIf
WEnd
Run("C:\Riot Games\League of Legends\lol.launcher")
WinWaitActive("LoL Patcher","",10")
ControlClick=("title","text",controlID,button,clicks,x,y)
ControlClick=("LoL Patcher","?","?","left",1,x,y)