Activating active PuTTY window in MTPuTTY with AutoHotkey script doesn't work
Posted
by
Piotr Dobrogost
on Super User
See other posts from Super User
or by Piotr Dobrogost
Published on 2012-10-19T11:05:23Z
Indexed on
2012/10/19
11:09 UTC
Read the original article
Hit count: 470
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}
© Super User or respective owner