 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
shashemi
Joined: 14 Sep 2009 Posts: 27
|
Posted: Mon Sep 21, 2009 7:11 pm Post subject: Quick help please with calling a variable. Thank You |
|
|
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 |
|
 |
AnttiV
Joined: 14 Aug 2009 Posts: 237 Location: Finland
|
Posted: Mon Sep 21, 2009 7:21 pm Post subject: |
|
|
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 |
|
 |
shashemi
Joined: 14 Sep 2009 Posts: 27
|
Posted: Mon Sep 21, 2009 7:23 pm Post subject: |
|
|
| Ahh Ok thanks. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|