Windows – Run auto hot key script whenever I start PC

autohotkeyautomationwindows 7

I compile the ahk script to make it a binary, then I copy the symbolic link to the startup directory so that ahk is run all the time when I start my PC.

The thing is that I see this warning sign all the time when PC starts.

enter image description here

  • What's wrong with this?
  • How to run AHK whenever I start PC? Does my method have some problem?

Best Answer

To make it stop giving you the message, add the following near the top of the script before you compile it:

#SingleInstance force

That will cause the newer version to replace the older version of the script.

Please note: this does not address the fact that you seem to have the script executing twice during your boot process.