J'ai un petit script qui se connecte à mon ftp et supprime un fichier X puis colle un autre fichier Y.
Le script prend 8-10 secondes.
Cependant, quand le script s'exécute, il est en premier plan sur mon PC, du coup je ne peux rien faire d'autre.
Y a t'il un moyen de le faire de façon "silencieux", en arrière plan, ou en service ? ( sachant que j'ai FileZilla qui s'ouvre via mon script)
Voici mon script :
Code : Tout sélectionner
$Pid = Run("C:\Program Files\FileZilla FTP Client\filezilla.exe") ; lancer le prog
WinWaitActive("FileZilla") ; attendre le prog se lance
WinSetOnTop("FileZilla", "", 0) ; mettre le prog en premier plan
;Sleep(2000) ; wait 2 sec
Send("nom_ftp")
Send("{TAB}")
Send("user_ftp")
Send("{TAB}")
Send("password_ftp")
Send("{TAB}")
Send("21")
Send("{TAB}"&@CRLF) ; tab ET enter
Send("{ESC}")
Sleep(1000) ; wait 1 secs
Send("{TAB 3}") ;
Send("C:\Users\onouhi\Desktop"&@CRLF)
Send("{ESC}")
Sleep(1000)
Send("{TAB 5}") ;
Send("{DOWN 6}") ;
Send("{DEL}"&@CRLF) ;
Send("{ESC}")
Sleep(1000)
Send("{TAB 6}") ;
Send("{DOWN 3}") ;
Sleep(1000)
Send(@CRLF)
Sleep(1000)
Send(@CRLF)
Sleep(1000)
Send("{ESC}")
Sleep(1000)
ProcessClose($pid) ; close le progOlivier





