 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Serenity
Joined: 08 Nov 2004 Posts: 896
|
Posted: Wed Feb 23, 2005 11:09 pm Post subject: make hotkeys a variable read from .ini file |
|
|
I have this idea for pixelget2, and other compiled scripts, where the hotkeys for functions within the script are stored in a seperate .ini file, enabling the user to change hotkeys without recompiling or having AutoHotkey installed.
I tried the following, but doesn't work. Any ideas if/how this can be done?
first, the settings.ini file:
and for the script:
| Code: | | IniRead, Test, settings.ini, test, hotkey |
and the hotkey section in the script:
| Code: | %Test%::
msgbox, hotkey works!
return |
_________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Wed Feb 23, 2005 11:18 pm Post subject: |
|
|
| Code: | IniRead, Test, settings.ini, test, hotkey
Hotkey, %Test%, label
return
label:
msgbox, Hotkey works!
return |
Documentation |
|
| Back to top |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 896
|
Posted: Wed Feb 23, 2005 11:20 pm Post subject: |
|
|
fantastic! thanks jonny.  _________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|