2 little suggestions if you are interested.
Add this in the sequence.au3 since you dont need a checkpoint to start and you can teleport everywhere in advance mode.
$filetoarray = traitement_read_str($sequence_list) _ArrayShuffle($filetoarray)
and change you _logind3() function to this:
Func _logind3()
If $Try_Logind3 > 2 Then
Local $wait_aftertoomanytry = Random(($Try_Logind3 * 2) * 60000, ($Try_Logind3 * 2) * 120000, 1)
_log("Sleep after too many _logind3 -> " & $wait_aftertoomanytry, $LOG_LEVEL_VERBOSE)
Sleep($wait_aftertoomanytry)
EndIf
WinActivate("[CLASS:D3 Main Window Class]")
If Not _checkdisconnect() Then ; le bot ne fait pas la différence entre _checkdisconnect et déconnecter du serveur
_Log("Login", $LOG_LEVEL_VERBOSE)
Sleep(1000)
Send($d3name)
Sleep(1000)
Send(@TAB)
Sleep(1000)
Send($d3pass)
Sleep(2000)
Send("{ENTER}")
Sleep(Random(5000, 6000, 1))
$Try_Logind3 += 1
Else
_Log("Disconnected to server", $LOG_LEVEL_VERBOSE)
sleep(2000)
Send("{ENTER}")
sleep(2000)
Send("{ENTER}") ; enter, si jamais on a rentré le mot passe avant que la fenêtre apparaisse
sleep(2000)
EndIf
EndFunc ;==>_logind3else it is useless because it will never log in the way it is now.Cheers


Ce sujet est fermé








