AutoHotkey Community

It is currently May 27th, 2012, 8:01 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: December 20th, 2006, 11:09 am 
Offline

Joined: December 20th, 2006, 10:40 am
Posts: 11
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2006, 12:16 pm 
Offline

Joined: July 22nd, 2005, 7:36 am
Posts: 52
Hi,

Welcome at Autohotkey.

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2006, 12:23 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Code:
#a::
  Run, Explorer C\MyDirs\Directory
Return


Also, it can be a single line:

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


:)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2006, 1:25 pm 
Offline

Joined: December 20th, 2006, 10:40 am
Posts: 11
:D
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2006, 1:29 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
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

:)

Edit: Ah! Here it is: http://www.autohotkey.com/docs/Hotkeys.htm

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2006, 2:10 pm 
Offline

Joined: December 20th, 2006, 10:40 am
Posts: 11
Brilliant. Many thanks:)


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Winclose
PostPosted: December 20th, 2006, 3:52 pm 
Offline

Joined: December 20th, 2006, 10:40 am
Posts: 11
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2006, 3:59 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Code:
#z::
WinClose A
WinGet wl, List
WinActivate wl1
Return

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 21st, 2006, 11:22 am 
Offline

Joined: December 20th, 2006, 10:40 am
Posts: 11
Cool! Many thanks for the advise:)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], bobbysoon, BrandonHotkey, just me and 76 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group