J'aurais besoin d'une petite aide pour gérer une erreur qui apparait dans mon programme lorsque je lance la commande suivante :
J'ai bien essayer de la gérer (ligne en rouge) mais cela ne marche pas !
Merci d'avance


Code : Tout sélectionner
Dim $AppliToLaunch = "C:\Program Files\Ride Runner\RideRunner.exe"
LaunchAppli()
Func LaunchAppli()
; @error sera à 0 s'il n'y a rien avant
;~ If @error Then SplashTextOn("Warning !", "Please, verified the " & _
;~ "Apllication Path in your splash.ini !!!", 250, 60, -1, -1, 0, "", 12, 800)
If FileExists($AppliToLaunch) Then
ShellExecute($AppliToLaunch)
Else
SplashTextOn("Warning !", "No Application To Launch " & _
"Defined in splash.ini !!!", 250, 60, -1, -1, 0, "", 12, 800)
Sleep(3000)
SplashOff()
EndIf
EndFunc ;==>LaunchAppli

Code : Tout sélectionner
If $AppliToLaunch = "" Then SplashTextOn("Warning !", "No Application To Launch " & _
"Defined in splash.ini !!!", 250, 60, -1, -1, 0, "", 12, 800)Code : Tout sélectionner
SplashTextOn("Warning !", "Please, verified the " & _
"Apllication Path in your splash.ini !!!", 250, 60, -1, -1, 0, "", 12, 800)


Code : Tout sélectionner
LaunchAppli()
Func LaunchAppli()
$AppliToLaunch = IniRead("splash.ini", "SPLASH", "AppliToLaunch", "")
If $AppliToLaunch = "" Then
SplashTextOn("Warning !", "No Application To Launch " & _
"Defined in splash.ini !!!", 250, 60, -1, -1, 0, "", 12, 800)
Sleep(3000)
SplashOff()
Return SetError(1)
EndIf
If FileExists($AppliToLaunch) Then
ShellExecute($AppliToLaunch)
Else
SplashTextOn("Warning !", "Please, verified the " & _
"Apllication Path in your splash.ini !!!", 250, 80, -1, -1, 0, "", 12, 800)
Sleep(3000)
SplashOff()
Return SetError(2)
EndIf
EndFunc ;==>LaunchAppli





Pourquoi dit tu ça ?bloodwolff a écrit :Sinon bonne FÊTE au 2 admin



