Jump to content
Sign in to follow this  
LinuxRabbit

Hotkeyset working dir

Recommended Posts

LinuxRabbit

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.

Share this post


Link to post
Share on other sites
Andreik

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

When the words fail... music speaks

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.