AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Newbie - Open Folder shortcut

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
jes123



Joined: 20 Dec 2006
Posts: 11

PostPosted: Wed Dec 20, 2006 10:09 am    Post subject: Newbie - Open Folder shortcut Reply with quote

Hi All!
I am an absolute newbie but very interested in creating a scripts that listens for a keyboard shortcut and then opens a specified folder based on this. From looking at some of the other tools I guess it should be fairly straight forward but do not know where to start..

E.g
WindowsKey + A => Opens the directory: C\MyDirs\Directory

Would anyone be able to help me get started?

Thanks
jan
Back to top
View user's profile Send private message
Andre



Joined: 22 Jul 2005
Posts: 52

PostPosted: Wed Dec 20, 2006 11:16 am    Post subject: Reply with quote

Hi,

Welcome at Autohotkey.

Code:
#a::
  Run, Explorer C\MyDirs\Directory
Return
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Wed Dec 20, 2006 11:23 am    Post subject: Reply with quote

Code:
#a::
  Run, Explorer C\MyDirs\Directory
Return


Also, it can be a single line:

Code:
#a::Run, C:\MyDirs\Directory


Smile
_________________
URLGet - Internet Explorer based Downloader
Back to top
View user's profile Send private message Send e-mail
jes123



Joined: 20 Dec 2006
Posts: 11

PostPosted: Wed Dec 20, 2006 12:25 pm    Post subject: Reply with quote

Very Happy
Was it that simple:) It works beautifully!
Many thanks..

So just to understand it.. #a:: means WindowsKey + a then I assume? Do you happen to know if there is a list somewhere with mappings between keys and varibles I can use for my future projects:)

Thanks again!
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Wed Dec 20, 2006 12:29 pm    Post subject: Reply with quote

jes123 wrote:
Do you happen to know if there is a list somewhere with mappings between keys and varibles I can use for my future projects:)


I think I know one. It is in AHK help file. Also here: Key List

Smile

Edit: Ah! Here it is: http://www.autohotkey.com/docs/Hotkeys.htm
_________________
URLGet - Internet Explorer based Downloader
Back to top
View user's profile Send private message Send e-mail
jes123



Joined: 20 Dec 2006
Posts: 11

PostPosted: Wed Dec 20, 2006 1:10 pm    Post subject: Reply with quote

Brilliant. Many thanks:)
Back to top
View user's profile Send private message
jes123



Joined: 20 Dec 2006
Posts: 11

PostPosted: Wed Dec 20, 2006 2:52 pm    Post subject: Winclose Reply with quote

Hi
I have looked at the tutorials and other posts in the forum and is working on creating another tool now:) Basically it is just a shortcut to close windows. However I have a minor issue in that when I use the command the focus is not moved to the next open window.
E.g if I have 5 IE windows open and press Win+z it will just close the first active window. If I press it again nothing happens since no window is active.. Any suggestions how I can do this? I.e I want to rapidly press Win+z to close all 5 windows one after another.


#z::WinClose, A
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Wed Dec 20, 2006 2:59 pm    Post subject: Reply with quote

Code:
#z::
WinClose A
WinGet wl, List
WinActivate wl1
Return

_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
jes123



Joined: 20 Dec 2006
Posts: 11

PostPosted: Thu Dec 21, 2006 10:22 am    Post subject: Reply with quote

Cool! Many thanks for the advise:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group