(01-07-2015, 07:17 PM)AtoZ Wrote: @dinobotwhere i have to put these 2 codes exactly?
Like these?
Restarter Bot
Code:#RequireAdmin
#include <MsgBoxConstants.au3>
Global $Title="COC Bot Pre-Alpha v5.4"
Global $BotFile=@ScriptDir&"\COC Bot v5.4.exe"
WinKill($Title)
Sleep(2000)
ShellExecute($BotFile)
WinWaitActive($Title,"",10)
WinActivate($Title)
Sleep(3500)
ControlFocus($Title,"Start", "[CLASS:Button; INSTANCE:2]")
ControlClick($Title,"Start", "[CLASS:Button; INSTANCE:2]")
Sleep(500)
WinMove("COC Bot Pre-Alpha v5.3","",900,100)
Sleep(500)
ControlFocus($Title,"Ok", "[CLASS:Button; INSTANCE:1]")
ControlClick($Title,"Ok", "[CLASS:Button; INSTANCE:1]")
Function in apha bot
Code:Func RestartBot()
Local $BotTitle=""
Local $BotFile= @ScriptDir&"\COC BOT v5 Restarter.au3" ;put filename here
SetLog("RestartBOT: BOT RESTARTING NOW..")
ShellExecute($BotFile)
Sleep(1000)
ControlFocus($BotTitle,"Ok", "[CLASS:Button; INSTANCE:1]")
ControlClick($BotTitle,"Ok", "[CLASS:Button; INSTANCE:1]")
EndFunc
or,give us the edited bot so we can test it,thank you