LinuxRabbit Posted July 25, 2008 Posted July 25, 2008 Hi, recently started using autoit because of a need to add more shortcuts to my keyboard since I no longer use a start bar. I have already made my gui to show all shortcuts I will be making if I happen to forget and that didn't take very long at all. My only trouble is making the shortcuts work. I have read the help file and been scanning over the forums but am unable to find an exact answer. Here is what i have so far. Not sure if it is a problem with my understanding of the working dir and what it should exactly be. CODE #NoTrayIcon HotKeySet ( "+p", "Pidgin" ) HotKeySet ( "+o", "CMD" ) HotKeySet ( "+i", "D2" ) HotKeySet ( "+r", "Rocket" ) Hotkeyset ( "!p", "Quit" ) While 1 Sleep( 100 ) WEnd Func Pidgin() RunWait ( "pidgin.exe", "c:\program files\Pidgin\" ) EndFunc Func CMD() RunWait ( "Cmd.exe", "c:\windows\system32\" ) EndFunc Func D2() RunWait ( "HU.bat", "c:\program files\Diablo II\" ) EndFunc Func Rocket() RunWait ( "RocketDock.exe", "c:\program files\Rocketdock\" ) EndFunc Func Quit() Exit EndFunc Any help would be appreciated.
Andreik Posted July 25, 2008 Posted July 25, 2008 This should be work. #NoTrayIcon HotKeySet ( "+p", "Pidgin" ) HotKeySet ( "+o", "CMD" ) HotKeySet ( "+i", "D2" ) HotKeySet ( "+r", "Rocket" ) Hotkeyset ( "!p", "Quit" ) While 1 Sleep( 100 ) WEnd Func Pidgin() RunWait ( "c:\program files\Pidgin\pidgin.exe") EndFunc Func CMD() RunWait ( "c:\windows\system32\Cmd.exe") EndFunc Func D2() RunWait ( "c:\program files\Diablo II\HU.bat") EndFunc Func Rocket() RunWait ( "c:\program files\Rocketdock\RocketDock.exe" ) EndFunc Func Quit() Exit EndFunc
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now