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 

Array help

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



Joined: 18 Apr 2008
Posts: 3

PostPosted: Fri Apr 18, 2008 2:46 pm    Post subject: Array help Reply with quote

Hi I have some problem with array and msgbox

Code:

Loop, 10
{
Inputbox, Arrayx%A_Index%,Arrayx%A_Index%,x koordinat from %A_Index%
Inputbox, Arrayy%A_Index%,Arrayy%A_Index%,y koordinat from  %A_Index%
}
Msgbox, x %Arrayx_1% and y %Arrayy_1%


The msgbox just says x and y . What should I change. Very easy thing but I am new.
Back to top
View user's profile Send private message
Guest






PostPosted: Fri Apr 18, 2008 2:54 pm    Post subject: Reply with quote

change the msgbox to
Code:
Msgbox, x %Arrayx1% and y %Arrayy1%

there is no '_'
Back to top
klass



Joined: 18 Apr 2008
Posts: 3

PostPosted: Fri Apr 18, 2008 2:58 pm    Post subject: Reply with quote

thanks very much for the fast reply
Back to top
View user's profile Send private message
klass



Joined: 18 Apr 2008
Posts: 3

PostPosted: Sat Apr 19, 2008 4:54 pm    Post subject: Reply with quote

New problem

Now I want it too change variable. But when I write:
%attacky%i%% I get error msg.

How should I get the variable

%attacky1%
%attacky2%
and so on
Back to top
View user's profile Send private message
Wdb



Joined: 27 Feb 2006
Posts: 15
Location: Italy

PostPosted: Sat Apr 19, 2008 5:54 pm    Post subject: Reply with quote

klass wrote:
New problem

Now I want it too change variable. But when I write:
%attacky%i%% I get error msg.

How should I get the variable

%attacky1%
%attacky2%
and so on

I think:
Code:
var := attacky%i%
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