Windows XP: lancer macro Teratermpro avec Runwait

Poser vos questions de programmation en AutoHotkey
albert_251257
Posts: 1
Joined: 17 Jan 2017, 08:35

Windows XP: lancer macro Teratermpro avec Runwait

17 Jan 2017, 08:58

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
garry
Posts: 3760
Joined: 22 Dec 2013, 12:50

Re: Windows XP: lancer macro Teratermpro avec Runwait

18 Jan 2017, 13:26

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" 
joel_251257

Re: Windows XP: lancer macro Teratermpro avec Runwait

24 Jan 2017, 08:47

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
garry
Posts: 3760
Joined: 22 Dec 2013, 12:50

Re: Windows XP: lancer macro Teratermpro avec Runwait

24 Jan 2017, 17:03

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

Return to “J'ai besoin d'aide”

Who is online

Users browsing this forum: No registered users and 13 guests