| View previous topic :: View next topic |
| Author |
Message |
Dirk
Joined: 20 Apr 2005 Posts: 2
|
Posted: Wed Apr 20, 2005 11:18 am Post subject: Hotstrings |
|
|
| Is it possible to make a compiled file (with Ahk2Exe) that contains predefined hotstrings and invokes a separate not ahk-file (e.g. txt) which contains user defined hotstrings? |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Wed Apr 20, 2005 7:50 pm Post subject: |
|
|
It would be possible, but only if AutoHotkey.exe is present on every computer you run the script on (which is probably exactly what you're trying to avoid). You could achieve this by including a copy of AutoHotkey.exe inside the compiled script, via FileInstall, and use that to run a dynamically constructed script that contains hotstrings written by the compiled script. For example:
FileInstall, C:\Program Files\AutoHotkey\AutoHotkey.exe, %temp%\AutoHotkey.exe
FileAppend, `::btw`::by the way`n, New Hotstrings.ahk
Run %temp%\AutoHotkey.exe "New Hotstrings.ahk" |
|
| Back to top |
|
 |
Dirk
Joined: 20 Apr 2005 Posts: 2
|
Posted: Thu Apr 21, 2005 6:54 am Post subject: Hotstrings |
|
|
Thanks for your reply.
btw AutoHotkey is fantastic! |
|
| Back to top |
|
 |
|