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 

How to have a consecutive variable?

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



Joined: 16 Jun 2007
Posts: 245

PostPosted: Thu Dec 06, 2007 1:02 pm    Post subject: How to have a consecutive variable? Reply with quote

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



Joined: 26 Jun 2006
Posts: 1249
Location: USA

PostPosted: Thu Dec 06, 2007 1:09 pm    Post subject: Reply with quote

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
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