| View previous topic :: View next topic |
| Author |
Message |
ericisbacchus
Joined: 12 Sep 2006 Posts: 4
|
Posted: Tue Sep 12, 2006 9:39 pm Post subject: can i use autohotkey? |
|
|
Can I use autohotkey to do the following?
Change a key like F7 to do the following macro:
CTRL+DELETE, TAB, ENTER, TAB, ENTER
What about make a key like F8 or something to type the following:
Photo (color)
How do I do it? I don't get it. Can I make these run in a specific program only???
Thanks so much in advance. I do many repetitive things, and it would come in very handy. |
|
| Back to top |
|
 |
Kerry
Joined: 20 Jul 2006 Posts: 146 Location: Los Angeles
|
Posted: Tue Sep 12, 2006 9:51 pm Post subject: |
|
|
Yes, you can. Have you read the manual?
I'll give an example of your first one if someone else doesn't do it before me:
| Code: |
F7::
Send ^{DELETE}
Send {TAB}
Send {ENTER}
Send {TAB}
Send {ENTER}
Return |
I haven't tried this code, but it should work. _________________ String Manipulator - GrabIco |
|
| Back to top |
|
 |
ericisbacchus
Joined: 12 Sep 2006 Posts: 4
|
Posted: Wed Sep 13, 2006 3:36 am Post subject: |
|
|
| Yeah...I read it but it didn't make sense. Where do I put this code? |
|
| Back to top |
|
 |
Carlol
Joined: 14 Aug 2006 Posts: 162 Location: CPH
|
Posted: Wed Sep 13, 2006 5:52 am Post subject: |
|
|
Well the manual. also very difficult for me, but basically you need to make a script:
Creating a script
Each script is a plain text file containing commands to be executed by the program (AutoHotkey.exe). A script may also contain hotkeys and hotstrings, or even consist entirely of them. However, in the absence of hotkeys and hotstrings, a script will perform its commands sequentially from top to bottom the moment it is launched.
To create a new script:
Open Windows Explorer and select a folder of your choice.
Pull down the File menu and choose New >> AutoHotkey Script (or Text Document).
Type a name for the file, ensuring that it ends in .ahk. For example: Test.ahk
Right-click the file and choose Edit Script.
On a new blank line, type the following:
#space::Run www.google.com
The symbol # stands for the Windows key, so #space means holding down the Windows key then pressing the spacebar to activate a hotkey. The :: means that the subsequent command should be executed whenever this hotkey is pressed, in this case to go to the Google web site. To try out this script, continue as follows:
Save and close the file.
In Windows Explorer, double-click the script to launch it. A new tray icon appears.
Hold down the Windows key and press the spacebar. A web page opens in the default browser.
To exit or edit the script, right click its tray icon.
Good luck!  |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Wed Sep 13, 2006 6:29 am Post subject: |
|
|
It depends.
| Quote: | | Yeah...I read it but it didn't make sense | ... for you. If you expect from us to explain you every single line of it, well ...
| Quote: | | can i use autohotkey? | No. Programming needs to be specific. To work with the computer too. Your subject line isn't specific. I guess it'll be a tough ride for you. Anyway. Good luck.
Thx Carlol for your effort.  |
|
| Back to top |
|
 |
ericisbacchus
Joined: 12 Sep 2006 Posts: 4
|
Posted: Wed Sep 13, 2006 5:54 pm Post subject: |
|
|
| Uhh...thanks??? |
|
| Back to top |
|
 |
Kerry
Joined: 20 Jul 2006 Posts: 146 Location: Los Angeles
|
Posted: Wed Sep 13, 2006 6:05 pm Post subject: |
|
|
lol - you have to be willing to learn a bit, at first the manual might seem a bit confusing (did for me), when you make your first script, after that everything gets easier, and then the manual is your best friend.
-Kerry _________________ String Manipulator - GrabIco |
|
| Back to top |
|
 |
ericisbacchus
Joined: 12 Sep 2006 Posts: 4
|
Posted: Tue Sep 19, 2006 7:42 pm Post subject: |
|
|
| I'm starting to get the hang of it. Thanks all. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6223
|
Posted: Tue Sep 19, 2006 8:00 pm Post subject: |
|
|
| ericisbacchus wrote: | | I'm starting to get the hang of it. |
Congrats! Happy Scripting!  _________________
 |
|
| Back to top |
|
 |
Carlol
Joined: 14 Aug 2006 Posts: 162 Location: CPH
|
Posted: Wed Sep 20, 2006 4:49 am Post subject: |
|
|
Good luck to you, be sure to come back with some nice code to share! |
|
| Back to top |
|
 |
Grumpy Guest
|
Posted: Wed Sep 20, 2006 9:56 am Post subject: |
|
|
| Carlol wrote: | Good luck to you, be sure to come back with some nice code to share! | Hopefully with a more explicit subject line...
"can i use autohotkey?"
Yes, of course you can! It is free... As long as the policies at your work allow you to install software.
 |
|
| Back to top |
|
 |
|