Parallel execution of same shortcut

Discussion, questions and support.
Post Reply
JJussi
Posts: 21
Joined: Jan 22nd, ’19, 12:44

Post by JJussi » Feb 12th, ’19, 05:26

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...
JJussi
Posts: 21
Joined: Jan 22nd, ’19, 12:44

Post by JJussi » Feb 20th, ’19, 11:56

..so what is reason for this? Why I fastkeys cannot create second thread of same shortcut?
User avatar
Tom
Posts: 215
Joined: Nov 24th, ’15, 23:39

Post by Tom » Feb 21st, ’19, 07:47

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
JJussi
Posts: 21
Joined: Jan 22nd, ’19, 12:44

Post by JJussi » Feb 21st, ’19, 09:22

Yes,
Thank you. That do the trick.
Post Reply