Non en fait c'est le chemin du .exe qui ne va pas.
Celui qui ne marche pas :
#include "_tape_infos.au3"
Func open_dofus()
If @OSArch = "X64" Then
$path = "C:\Program Files (x86)\D@fus2\app\Dofus.exe"
ElseIf @OSArch = "X86" Then
$path = "C:\Program Files\D@fus2\app\Dofus.exe"
Else
MsgBox(0, "Erreur", "Votre système d'exploitation n'est pas reconnu")
EndIf
If IsDeclared("path") Then
Run($path)
WinWaitActive("Dofus")
WinSetState("Dofus", "", @SW_MAXIMIZE)
Sleep(5000)
tape_infos($account_Name, $password)
Else
MsgBox(0, "", "Problème...")
EndIf
EndFunc
Celui qui marche :
#include "_tape_infos.au3"
Func open_dofus()
If @OSArch = "X64" Then
$path = "C:\Program Files (x86)\D@fus 2\app\Dofus.exe"
ElseIf @OSArch = "X86" Then
$path = "C:\Program Files\D@fus 2\app\Dofus.exe"
Else
MsgBox(0, "Erreur", "Votre système d'exploitation n'est pas reconnu")
EndIf
If IsDeclared("path") Then
Run($path)
WinWaitActive("Dofus")
WinSetState("Dofus", "", @SW_MAXIMIZE)
Sleep(5000)
tape_infos($account_Name, $password)
Else
MsgBox(0, "", "Problème...")
EndIf
EndFunc
Cherche la différence ;)
Donc avec ce dernier, ça lance bien le client, mais en rentrant les identifiants, ça inverse le mot de passe et le login mdr. Tu l'as testé ton bot avant ?