AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hotstrings

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Dirk



Joined: 20 Apr 2005
Posts: 2

PostPosted: Wed Apr 20, 2005 11:18 am    Post subject: Hotstrings Reply with quote

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Wed Apr 20, 2005 7:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Dirk



Joined: 20 Apr 2005
Posts: 2

PostPosted: Thu Apr 21, 2005 6:54 am    Post subject: Hotstrings Reply with quote

Thanks for your reply.
btw AutoHotkey is fantastic!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group