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 

Quick help please with calling a variable. Thank You

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



Joined: 14 Sep 2009
Posts: 27

PostPosted: Mon Sep 21, 2009 7:11 pm    Post subject: Quick help please with calling a variable. Thank You Reply with quote

What am i doing wrong here, i want to search different location everytime i loop which i got variable DN adding 1 every time it goes through the loop part working, but my imagesearch is not working after the first search X1,Y1,Z1,Q1.

is X%DN% right? for X1, X2, X3....as it loops and DN value changes?


Code:
   
   X1 = 156   X2 = 325   X3 = 493   X4 = 663   X5 = 839
   Y1 = 27      Y2 = 27      Y3 = 27      Y4 = 27      Y5 = 27
   Z1 = 287   Z2 = 460   Z3 = 628   Z4 = 796   Z5 = 970
   Q1 = 295   Q2 = 295   Q3 = 295    Q4 = 295   Q5 = 295
   ImageSearch, OutputVarX, OutputVarY, X%DN%, Y%DN%, Z%DN%, Q%DN%, c:/FightDog.bmp
Back to top
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Mon Sep 21, 2009 7:21 pm    Post subject: Reply with quote

At least you have to write it like this:

Code:
X1 = 156
X2 = 325
X3 = 493
X4 = 663
X5 = 839
Y1 = 27
Y2 = 27
Y3 = 27
Y4 = 27
Y5 = 27
Z1 = 287
Z2 = 460
Z3 = 628
Z4 = 796
Z5 = 970
Q1 = 295
Q2 = 295
Q3 = 295
Q4 = 295
Q5 = 295
ImageSearch, OutputVarX, OutputVarY, X%DN%, Y%DN%, Z%DN%, Q%DN%, c:/FightDog.bmp
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
shashemi



Joined: 14 Sep 2009
Posts: 27

PostPosted: Mon Sep 21, 2009 7:23 pm    Post subject: Reply with quote

Ahh Ok thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
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