| View previous topic :: View next topic |
| Author |
Message |
hughman
Joined: 11 Feb 2007 Posts: 23
|
Posted: Wed Feb 21, 2007 7:52 am Post subject: Is it possible to assign a variable as a hotstring or hotkey |
|
|
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 |
|
 |
BoBo Guest
|
Posted: Wed Feb 21, 2007 8:13 am Post subject: |
|
|
| Code: | text=1234
:v:%text%::MsgBox, it worked | Get the answer now. |
|
| Back to top |
|
 |
hughman
Joined: 11 Feb 2007 Posts: 23
|
Posted: Wed Feb 21, 2007 8:31 am Post subject: |
|
|
You have not understand what I mean.But thinks the same.
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 |
|
 |
BoBo Guest
|
Posted: Wed Feb 21, 2007 8:43 am Post subject: |
|
|
| 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.
| 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.  |
|
| Back to top |
|
 |
nick
Joined: 24 Aug 2005 Posts: 345 Location: Berlin / Germany
|
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5376 Location: /b/
|
Posted: Wed Feb 21, 2007 10:26 am Post subject: |
|
|
| 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 |
|
 |
hughman
Joined: 11 Feb 2007 Posts: 23
|
Posted: Wed Feb 21, 2007 12:11 pm Post subject: |
|
|
| 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 |
|
 |
|