| View previous topic :: View next topic |
| Author |
Message |
jes123
Joined: 20 Dec 2006 Posts: 11
|
Posted: Wed Dec 20, 2006 10:09 am Post subject: Newbie - Open Folder shortcut |
|
|
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 |
|
 |
Andre
Joined: 22 Jul 2005 Posts: 52
|
Posted: Wed Dec 20, 2006 11:16 am Post subject: |
|
|
Hi,
Welcome at Autohotkey.
| Code: | #a::
Run, Explorer C\MyDirs\Directory
Return |
|
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Wed Dec 20, 2006 11:23 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
jes123
Joined: 20 Dec 2006 Posts: 11
|
Posted: Wed Dec 20, 2006 12:25 pm Post subject: |
|
|
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 |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Wed Dec 20, 2006 12:29 pm Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
jes123
Joined: 20 Dec 2006 Posts: 11
|
Posted: Wed Dec 20, 2006 1:10 pm Post subject: |
|
|
| Brilliant. Many thanks:) |
|
| Back to top |
|
 |
jes123
Joined: 20 Dec 2006 Posts: 11
|
Posted: Wed Dec 20, 2006 2:52 pm Post subject: Winclose |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Wed Dec 20, 2006 2:59 pm Post subject: |
|
|
| 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 |
|
 |
jes123
Joined: 20 Dec 2006 Posts: 11
|
Posted: Thu Dec 21, 2006 10:22 am Post subject: |
|
|
| Cool! Many thanks for the advise:) |
|
| Back to top |
|
 |
|