For example, try to press Win+1 without AutoHotkey. What will you see? As soon as you pressed it, the first program from taskbar will be launched.
And here is simple script for it:
But with script, the behavior is different. If you keep F1 pressed, instead of quickly release it, the application will be launched multiple times.
Here is another way, with
It will fix the issue with multiple launches, but introduces another issue - the program will be launched when F1 released, instead of pressed. So, the behavior is different from default Windows behavior (still).
Probably there exists some another, more robust way of launching programs?
I don't mean launching from taskbar, though. It was just an example. Here is another example, which is more close to real life: