| View previous topic :: View next topic |
| Author |
Message |
feejo
Joined: 16 Jun 2007 Posts: 245
|
Posted: Thu Dec 06, 2007 1:02 pm Post subject: How to have a consecutive variable? |
|
|
I have my clipboard variable, I want to put something in it and put it in another variable (consecutive), then put something new in the clipboard, put it into another consecutive variable. that variable can be simple as A1, A2 etc...
Then be able to show those variables. ListVars ok.
Thanks. |
|
| Back to top |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1249 Location: USA
|
Posted: Thu Dec 06, 2007 1:09 pm Post subject: |
|
|
Copy your text and press Win-Z:
| Code: | #Persistent
OnClipboardChange:
If (Clipboard = a%count%)
Return
Count++
a%Count% := Clipboard
return
#z::
Loop, %Count%
Vars .= "a" . A_Index . "-" . a%A_Index% . "`n"
MsgBox, % Vars
return
|
_________________
ʞɔпɟ əɥʇ ʇɐɥʍ |
|
| Back to top |
|
 |
|