autoitnoob69 Posted August 25, 2008 Share Posted August 25, 2008 Is there a way i can make 5 Global and then have another Global recall the Other 5 in a command. For Example Global $1=a Global $2=b Global $3=c Global $4=d Global $5=e Global $five=$1,$2,$3,$4,$5 $test = _ImageSearchArea($five,1,587,415,659,506,$x1,$y1,0) If $test=1 Then MouseMove($x1,$y1,3) MouseClick("left") ElseIf $result=0 Then MsgBox(0,"Error","Could not find.") EndIF EndIf Link to comment Share on other sites More sharing options...
Minikori Posted August 25, 2008 Share Posted August 25, 2008 (edited) Not completely sure what your talking about, but you could use an array and then a For...Next thing. Example: Global $Five[0]=a Global $Five[1]=b Global $Five[2]=c Global $Five[3]=d Global $Five[4]=e For $z = 0 To 4 $test = _ImageSearchArea($five[$z],1,587,415,659,506,$x1,$y1,0) If $test=1 Then MouseMove($x1,$y1,3) MouseClick("left") ElseIf $result=0 Then MsgBox(0,"Error","Could not find.") EndIF ;Only need one EndIf Next Edited August 25, 2008 by Minikori For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com Link to comment Share on other sites More sharing options...
autoitnoob69 Posted August 25, 2008 Author Share Posted August 25, 2008 Thanks for the reply. Now here is my next question. What if in Global $Five[0]=a the (a) is a Global already defined? Is that possible. If not can (a) be replaces with a picture? Not completely sure what your talking about, but you could use an array and then a For...Next thing. Example: Global $Five[0]=a Global $Five[1]=b Global $Five[2]=c Global $Five[3]=d Global $Five[4]=e For $z = 0 To 4 $test = _ImageSearchArea($five[$z],1,587,415,659,506,$x1,$y1,0) If $test=1 Then MouseMove($x1,$y1,3) MouseClick("left") ElseIf $result=0 Then MsgBox(0,"Error","Could not find.") EndIF ;Only need one EndIf Next Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now