Activating active PuTTY window in MTPuTTY with AutoHotkey script doesn't work
- by Piotr Dobrogost
I'm using Multi-Tabbed PuTTY and I wrote AutoHotKey script to rerun the command which was run as the last one. However the active PuTTY window (inside MTPuTTY) does not get activated thus sending keys has no effect. CTRL+` is a hotkey to Switch between the application and active PuTTY window. How to fix this?
WinWait, MTPuTTY (Multi-Tabbed PuTTY),
IfWinNotActive, MTPuTTY (Multi-Tabbed PuTTY), , WinActivate, MTPuTTY (Multi-Tabbed PuTTY),
WinWaitActive, MTPuTTY (Multi-Tabbed PuTTY),
Send, {CTRLDOWN}`{CTRLUP}
Send, {UP}{ENTER}