11-27-2014, 12:30 AM
Can anyone help me.
I used this script it works but the script does not try and start the robot.
;Start of script
#RequireAdmin
If Not ProcessExists("HD-Frontend.exe") Then
MsgBox(0, "BlueStacks Problem", "Please Start Bluestacks then C of C before continuing")
EndIf
While 1
Run("C:\Program Files (x86)\LFROBOT\xiaohua.exe")
sleep(2000)
;Move out from behind bluestacks
WinMove("[CLASS:#32770]", "", 984, 274)
Sleep(1000)
;checkmark the auto walls box
;ControlFocus("[CLASS:#32770]", "Auto walls", 1026)
;ControlClick("[CLASS:#32770]", "Auto walls", 1026, "left", 1, 7, 5)
;Sleep(1000)
;Click the try button
ControlFocus("[CLASS:#32770]", "", 1059)
ControlClick("[CLASS:#32770]", "", 1059, "left", 1, 29, 11)
sleep(2000)
;Wait for the 1 hour dialog box
WinWaitActive("[CLASS:#32770]", "OK")
sleep(1000)
;Click OK in the dialog box
ControlFocus("[CLASS:#32770]", "OK", 2)
ControlClick("[CLASS:#32770]", "OK", 2, "left", 1, 44, 12)
sleep(1000)
;Click the start button
ControlFocus("[CLASS:#32770]", "", 1065)
ControlClick("[CLASS:#32770]", "", 1065, "left", 1, 53, 23)
Sleep(1000)
;pause for 50 minutes
sleep(3000000)
;Kill little flower bot
ProcessClose("xiaohua.exe")
WEnd
;end of script
I used this script it works but the script does not try and start the robot.
;Start of script
#RequireAdmin
If Not ProcessExists("HD-Frontend.exe") Then
MsgBox(0, "BlueStacks Problem", "Please Start Bluestacks then C of C before continuing")
EndIf
While 1
Run("C:\Program Files (x86)\LFROBOT\xiaohua.exe")
sleep(2000)
;Move out from behind bluestacks
WinMove("[CLASS:#32770]", "", 984, 274)
Sleep(1000)
;checkmark the auto walls box
;ControlFocus("[CLASS:#32770]", "Auto walls", 1026)
;ControlClick("[CLASS:#32770]", "Auto walls", 1026, "left", 1, 7, 5)
;Sleep(1000)
;Click the try button
ControlFocus("[CLASS:#32770]", "", 1059)
ControlClick("[CLASS:#32770]", "", 1059, "left", 1, 29, 11)
sleep(2000)
;Wait for the 1 hour dialog box
WinWaitActive("[CLASS:#32770]", "OK")
sleep(1000)
;Click OK in the dialog box
ControlFocus("[CLASS:#32770]", "OK", 2)
ControlClick("[CLASS:#32770]", "OK", 2, "left", 1, 44, 12)
sleep(1000)
;Click the start button
ControlFocus("[CLASS:#32770]", "", 1065)
ControlClick("[CLASS:#32770]", "", 1065, "left", 1, 53, 23)
Sleep(1000)
;pause for 50 minutes
sleep(3000000)
;Kill little flower bot
ProcessClose("xiaohua.exe")
WEnd
;end of script