| View previous topic :: View next topic |
| Author |
Message |
David R
Joined: 26 Nov 2007 Posts: 3
|
Posted: Mon Nov 26, 2007 12:28 am Post subject: stuck on starting to use program |
|
|
I just downloaded Autohotkey and opened the exe. I chose the option for the readme note. Now whenever I hit the exe it asks me to choose to replace the script or not. Whether I choose yes or no nothing happens and I cannot get into any Autohotkey program.
I really want to use the program but I apparently do not have a clue about how to enter an autoreplace instruction like the example of btw.
Thank you for any assistance. |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Nov 26, 2007 1:32 am Post subject: |
|
|
| tfm wrote: |
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:
1. Open Windows Explorer and navigate to a folder of your choice.
2. Pull down the File menu and choose New >> AutoHotkey Script (or Text Document).
3. Type a name for the file, ensuring that it ends in .ahk. For example: Test.ahk
4. Right-click the file and choose Edit Script.
5. 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:
1. Save and close the file.
2. In Windows Explorer, double-click the script to launch it. A new tray icon appears.
3. Hold down the Windows key and press the spacebar. A web page opens in the default browser.
4. To exit or edit the script, right click its tray icon.
Note: Multiple scripts can be running simultaneously, each with its own tray icon. Furthermore, each script can have multiple hotkeys and hotstrings.
|
 |
|
| Back to top |
|
 |
David R
Joined: 26 Nov 2007 Posts: 3
|
Posted: Mon Nov 26, 2007 6:59 am Post subject: starting up |
|
|
Thank you for your prompt response. I now understand a lot more and am ready to use. I tried to run a auto replacement like the example of btw. It worked fine except that I keep getting a semicolon added to my replacement word. Am I putting the script in the right place at the top?
I deleted the semicolon and added a blank line but the semicolon keeps appearing. |
|
| Back to top |
|
 |
svi
Joined: 09 Oct 2006 Posts: 124 Location: Finland
|
Posted: Mon Nov 26, 2007 3:26 pm Post subject: Re: starting up |
|
|
| David R wrote: | | I deleted the semicolon and added a blank line but the semicolon keeps appearing. |
Did you remember to save and reload after modification? _________________ Pekka Vartto |
|
| Back to top |
|
 |
David R
Joined: 26 Nov 2007 Posts: 3
|
Posted: Mon Nov 26, 2007 10:26 pm Post subject: |
|
|
Thank you very much. I guess I forgot to double click.
I really appreciate your assistance. Thank you again. |
|
| Back to top |
|
 |
|