Page 1 of 1

Parallel execution of same shortcut

Posted: Feb 12th, ’19, 05:26
by JJussi
Hi!
I have shortcut "lookup search error":

Code: Select all

Send, ^c
Sleep 200
RunWait, c:\Windows\SysNative\bash.exe  ""/sbin/err %clipboard%""
err script recognizes from pasted string what is the error (and from which machine), opens SSH connection to that place, opens right error.log (with less) and search that error. Stops there to wait q-char from keyboard and after that, log out and closes window.

During that time when this "shortcut" is still running (i.e. I'm watching that error.log) I select line from that log (/path/to/the/errro-trace.file) and try to press that same shortcut (so it would open second bash shell and show me what is in that error-trace.file), it don't work. Other shortcut's work fine, but not same shortcut, as long as it is still running...

Re: Parallel execution of same shortcut

Posted: Feb 20th, ’19, 11:56
by JJussi
..so what is reason for this? Why I fastkeys cannot create second thread of same shortcut?

Re: Parallel execution of same shortcut

Posted: Feb 21st, ’19, 07:47
by Tom
RunWait command waits until the program finishes. Can't you use Run instead?

Code: Select all

Send, ^c
Sleep 200
Run, c:\Windows\SysNative\bash.exe  ""/sbin/err %clipboard%""
https://autohotkey.com/docs/commands/Run.htm

Re: Parallel execution of same shortcut

Posted: Feb 21st, ’19, 09:22
by JJussi
Yes,
Thank you. That do the trick.