Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?
share|improve this question
    
The message you are seeing ("An older instance of this script is already running") means you have started the script twice. This will go away when you solve your other question why items your Startup folder seem to be running twice. –  Bavi_H Oct 7 '10 at 2:29
    
Have a look at 'msconfig > Startup' to see if it's entered twice. –  pelms Nov 23 '10 at 14:18

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.