Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small problem.. TAKE NOW TIME :)
#1
Hi, i have a problem with the restarter... it close it fine, but when it open again my diablo2 window is too slow... and the loader.exe runs too fast... how can i set a delay??

Thx ALOT!!

Can i edit something in this? and where?
Quote: ; /////////// JHJ RESTARTER /////////////
; ///////////// by Cascius //////////////
;//////////////// v 1.0 ////////////////

AutoItSetOption("MouseCoordMode", 0)
Do


$JHJNAME = IniRead("restarter.ini", "Settings", "jhjname", "NotFound")
$RUNS = IniRead("restarter.ini", "Settings", "runs", "NotFound")
$DELAY = IniRead("restarter.ini", "Settings", "delay1", "NotFound")
$KILL = IniRead("restarter.ini", "Settings", "kill", "NotFound")
$RD_DELAY = IniRead("restarter.ini", "Settings", "delay2", "NotFound")
$MODE = IniRead("restarter.ini", "Settings", "mode", "NotFound")
$WIN98FIX = IniRead("restarter.ini", "Settings", "win98fix", "NotFound")





;/////////////// Start the Realm Down/# of runs Detection ///////////////

$RESTART = 0
If WinExists($JHJNAME, "Realm Down") Then
$RESTART = 1
$WAIT = $RD_DELAY
EndIf
If WinExists($JHJNAME, "Total : " & $RUNS) Then
$RESTART = 1
$WAIT = $DELAY
EndIf
If WinExists($JHJNAME, "T2 : 12:0" & $KILL) Then
$RESTART = 1
$WAIT = $DELAY
EndIf


;/////////////// End the Realm Down/# of runs Detection ///////////////





;/////////////// Start the restart process ///////////////

If $RESTART = 1 Then

;--------------- This kills Diablo bots ---------------

WinActivate($JHJNAME)
WinWaitActive($JHJNAME)
MouseClick("Left", 150, 210)
Sleep($WAIT)

;--------------- Restart the bots ---------------
WinActivate($JHJNAME)
WinWaitActive($JHJNAME)
If $MODE = 0 Then
MouseClick("Left", 150, 71)
Else
MouseClick("Left", 75, 60)
MouseClick("Left", 150, 110)
EndIf
If $WIN98FIX = 1 Then
Sleep(5000)
Run("Loader.exe")
EndIf
Sleep(5000)

EndIf

;/////////////// End the restart process ///////////////





;/////////////// Start the "Wait for Bnet" Detection ///////////////

If $MODE = 1 Then
If WinExists("PBot by JHJ - Translated By LordLardo and Fish Beans", "Wait BN") Then


;--------------- Switch Character and CDkey ---------------
WinActivate($JHJNAME)
WinWaitActive($JHJNAME)
MouseClick("Left", 150, 210)
Sleep(500)
MouseClick("Left", 75, 60)
MouseClick("Left", 150, 110)
Sleep(5000)
EndIf
EndIf

;/////////////// End the "Wait for Bnet" Detection ///////////////






Sleep(500) ;// This delay reduces CPU load

$VARIABLE = $VARIABLE + 1
Until $VARIABLE = 5000000000000

; Finished!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)