J'ai réalisé un script qui affiche régulièrement des msgbox, cela met donc mon script en pause a chaque fois.
Pour amoindrir le problème j'ai fait ceci :
Code : Tout sélectionner
MsgBox(4096, "Titre", "texte", 1)merci pour toute aide.
Code : Tout sélectionner
MsgBox(4096, "Titre", "texte", 1)Code : Tout sélectionner
Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Je te dis coucou'', ''COUCOU'')"')
Code : Tout sélectionner
Func MsgBoxNoWait($flag, $title, $text, $timeout=0, $hwnd="")
Local $escapedTitle = StringReplace($title, '"'&"'", "")
Local $escapedText = StringReplace($text, '"'&"'", "")
Local $command = "MsgBox("
$command &= $flag
$command &= ", '"&$escapedTitle&"'"
$command &= ", '"&$escapedText&"'"
If $timeout > 0 Then $command &= ", "&$timeout
If $hwnd <> "" Then $command &= ", "&$hwnd
$command &= ")"
Run(@AutoItExe & ' /AutoIt3ExecuteLine "'&$command&'"')
EndFunc

La macro @AutoItExe renvoi l'exe AutoIt pour un script non compilé et l'exe compilé sinon.ZDS a écrit :- Cette façon de faire implique d'avoir installé AutoIt, ne fonctionne probablement pas pour les scripts compilés où AutoIt n'est pas installé