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 

Is it possible to assign a variable as a hotstring or hotkey

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



Joined: 11 Feb 2007
Posts: 23

PostPosted: Wed Feb 21, 2007 7:52 am    Post subject: Is it possible to assign a variable as a hotstring or hotkey Reply with quote

As the title.
I found it useful sometimes.if adding a new option such as 'v' (variable), it will be convenient.
eg
text=1234
:v:text::command
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Wed Feb 21, 2007 8:13 am    Post subject: Reply with quote

Code:
text=1234
:v:%text%::MsgBox, it worked
Get the answer now.
Back to top
hughman



Joined: 11 Feb 2007
Posts: 23

PostPosted: Wed Feb 21, 2007 8:31 am    Post subject: Reply with quote

You have not understand what I mean.But thinks the same. Razz
In fact ,there is no option 'v' for hotstring, which is just my wish.
I find it impossible to assign a variable as hotstring at present.
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Wed Feb 21, 2007 8:43 am    Post subject: Reply with quote

Quote:
You have not understand what I mean
I don't hink so.
Quote:
which is just my wish.
So, we should help you wishing? This is the Ask for Help section. Prove me wrong. Wink
Quote:
Is it possible to assign a variable as a hotstring or hotkey
Well, ...
Quote:
I find it impossible to assign a variable as hotstring at present.
Let's believe this guy, as he's obviously tested it. Cool
Back to top
nick



Joined: 24 Aug 2005
Posts: 345
Location: Berlin / Germany

PostPosted: Wed Feb 21, 2007 10:15 am    Post subject: Reply with quote

To assign it to a Hotkey, you might use the Hotkey command.
_________________
nick

denick @ http://de.autohotkey.com/forum/
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Wed Feb 21, 2007 10:26 am    Post subject: Reply with quote

BoBo wrote:
Code:
text=1234
:v:%text%::MsgBox, it worked

That wouldn't work, the hotstring will be literal. I've created a dynamic regex hotstring function that you might find useful though.
_________________

Back to top
View user's profile Send private message Visit poster's website
hughman



Joined: 11 Feb 2007
Posts: 23

PostPosted: Wed Feb 21, 2007 12:11 pm    Post subject: Reply with quote

Titan wrote:

That wouldn't work, the hotstring will be literal. I've created a dynamic regex hotstring function that you might find useful though.

Thinks. I'll have a try.
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