The script I have sort of works but I'm a complete newcomer and would like to improve it.
#HotkeyInterval 1000
#MaxHotkeysPerInterval 15
#MaxThreadsBuffer on
#MaxThreadsPerHotkey 50
#e::
run, "%windir%\explorer.exe" c:\, c:\, , PID
WinWait, ahk_pid %PID%,,1
sendinput +{tab}{left}
Known problems with the script so far:
[*:3hqsztih] Winwait isn't behaving as expected. I originally tried "WinWait, ahk_pid %PID%,,10" to allow time if the system was under heavy load, but instead of waiting for a maximum of 10 seconds, it waited 10 seconds even if the window appeared quickly. So I changed 10 to 1 but I can't seem to get it to act as a maximum timeout. ("If a matching window comes into existence, the command will not wait for Seconds to expire")
[*:3hqsztih] If other window and process activity is going on, for example Win+E twice quickly, or other changes to window focus etc, then sometimes the right window doesn't seem to get the "send" keystrokes.
If anyone can help I'd appreciate it!




