Page 1 of 1

Windows XP: lancer macro Teratermpro avec Runwait

Posted: 17 Jan 2017, 08:58
by albert_251257
Sous Windows XP (2003), le lancement de la macro 'conexion.ttl' la comande autohotkey ne s'effectue pas :

RunWait,C:\Program Files (x86)\teraterm\ttermpro.exe /I /H /V /DS /L /M=C:\Users\caire\Desktop\conexion4.ttl,,Hide

En fait on ne rentre pas dans le code de la macro 'connexion4.ttl'

Version Teratermpro 4.9 et version AutoHotkey 1.1.24.04.

Quelqu'un saurais pourquoi ??

Merci!!!

Albert

Re: Windows XP: lancer macro Teratermpro avec Runwait

Posted: 18 Jan 2017, 13:26
by garry
essayez ce qui se passe

Code: Select all

runwait,%comspec% /k C:\Program Files (x86)\teraterm\ttermpro.exe /I /H /V /DS /L /M="C:\Users\caire\Desktop\conexion4.ttl" 

Re: Windows XP: lancer macro Teratermpro avec Runwait

Posted: 24 Jan 2017, 08:47
by joel_251257
Bonjour,

Oui c'est parfait!!! la macro 'connexion4.ttl' s'éxécute sous le process cmd.exe de windows XP, en revanche cette fenêtre C:\Windows \system32\cmd.exe reste ouverte à la fin du Runwait, et il faut la fermer à la main !? si je veut que le programme AHK continu après la comande Runwait....

==> Sauriez-vous comment la fermer, automatiquement (dans la macro 'connexion4.ttl ou autre ?...?)

D'Avance Merci,

Albert

Re: Windows XP: lancer macro Teratermpro avec Runwait

Posted: 24 Jan 2017, 17:03
by garry
voir command 'hide' et dos parameter /k =keep , /c = close quand 'runwait' fini

Code: Select all

runwait,%comspec% /c C:\Program Files (x86)\teraterm\ttermpro.exe /I /H /V /DS /L /M="C:\Users\caire\Desktop\conexion4.ttl",,hide
msgbox,fini