The simple script:
Code: Select all
if WinExist("ahk_exe mintty.exe")
WinActivate, ahk_class mintty
else
Run, C:\Distrib\git\git-bash.exe
I don't know why, maybe it's OS GUI lag or messages queue lag, or maybe lag references to the hotkey i'm using (Ctrl+Shit+Alt+P), but i think if autohotkey own window will not show itself while executing scipt - the problem will go away.
Is it possible not to show Autohotkey own window?