Butterfly   12-06-2014, 10:52 PM
My autoIt script stops work after the first reset of LF robot. For some reason it does not loop! Also it does not upgrade my walls properly.

Here is the script that i am using:
Code:
#RequireAdmin

If Not ProcessExists("HD-Frontend.exe") Then
MsgBox(0, "Bluestacks Problem", "Please Start Bluestacks then Clash of Clans before continuing")
EndIf

HotKeySet ("q", "quitme")
While 1
Local $iPID =Run("C:\Program Files (x86)\lfRobot\xiaohua.exe")
sleep(5000)
WinMove("[CLASS:#32770]", "", 984, 274)
Sleep(1000)
ControlFocus("[CLASS:#32770]", "", 1059)
ControlClick("", "DarkT", "[CLASS:Button; INSTANCE:2]")
WinWaitActive("Welcome", "", "15")
If WinExists("Welcome") Then
sleep(3000)
ControlFocus("Welcome", "", "[CLASS:Button; INSTANCE:1]")
ControlClick("Welcome", "", "[CLASS:Button; INSTANCE:1]")
sleep(5000)
ControlFocus("[CLASS:#32770]", "", "[CLASS:Button; INSTANCE:6]")
ControlClick("", "DarkT", "[CLASS:Button; INSTANCE:6]")
sleep(3000000)
ProcessClose("xiaohua.exe")
Else
sleep(3000)
ProcessClose("xiaohua.exe")
EndIf
WEnd
Func quitme()
  Exit
EndFunc
  
Users browsing this thread: 2 Guest(s)
Konloch Software - Bytecode Viewer - Reverse Engineering Forum
Copyright © 2014-2025 The Bytecode Club. Powered By MyBB.
CC0 Unless Specified Otherwise.