| View previous topic :: View next topic |
| Author |
Message |
mangaman
Joined: 21 Apr 2005 Posts: 2
|
Posted: Thu Apr 21, 2005 8:58 pm Post subject: First popup menu script |
|
|
I was trying to write a simple menu to replace all the shortcut icons on my desktop. While I was playing around testing if I was doing it right, I noticed a problem. Every time I load or reload the script it launches all my shortcuts I have in my script. I was planing on loading the script when windows launched but if I have all those programs launching after the script is loaded I would have to close them, this would be annoying. Well I thought maybe I am doing something wrong, I read through the Menu command help (http://www.autohotkey.com/docs/commands/Menu.htm) and I didn't find an answer, at least not one I noticed. Is there a way to prevent this? Here is my script:
| Code: | ; my quicklinks menu
Menu, QuickLink, add, Test
Test:
Run iexplore.exe
return
#q:: Menu, QuickLink, show |
I shortened it so only one program would launch. Thanks _________________ "Technological progress is like an axe in the hands of a pathological criminal." --Albert Einstein
www.ryokoshome.com
www.planetgunsmokeclan.com |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Thu Apr 21, 2005 9:22 pm Post subject: |
|
|
does it help, when you add a return after the menu command? _________________ Ciao
toralf  |
|
| Back to top |
|
 |
mangaman
Joined: 21 Apr 2005 Posts: 2
|
Posted: Thu Apr 21, 2005 9:25 pm Post subject: |
|
|
hahahaha Now I see what I did, that fixed it. It makes sense now why I couldn't get it to work before. Thanks _________________ "Technological progress is like an axe in the hands of a pathological criminal." --Albert Einstein
www.ryokoshome.com
www.planetgunsmokeclan.com |
|
| Back to top |
|
 |
|