|
You last visited: Today at 10:20
Advertisement
Autoit-anchor
Discussion on Autoit-anchor within the AutoIt forum part of the Coders Den category.
07/11/2015, 14:27
|
#1
|
elite*gold: 1908
Join Date: Jan 2013
Posts: 832
Received Thanks: 629
|
Autoit-anchor
Hello !
I need help.
I have code and where if 1 condition will be false I want it to go to the 1st condition. Something like anchor.
My code:
$coord = PixelSearch( @DesktopWidth/100*35, @DesktopHeight/100*35, @DesktopWidth/100*65, @DesktopHeight/100*65, 0x2E4C76 )
If Not @error Then
MouseClick("LEFT",($x),($y),1,1)
Sleep(1200)
Else
$coord = PixelSearch( @DesktopWidth/100*20, @DesktopHeight/100*20, @DesktopWidth/100*80, @DesktopHeight/100*80, 0x2E4C76 )
If Not @error Then
MouseClick("LEFT",($x),($y),1,1)
Sleep(1200)
Else
$coord = PixelSearch( @DesktopWidth/100*0, @DesktopHeight/100*0, @DesktopWidth, @DesktopHeight, 0x2E4C76 )
If Not @error Then
MouseClick("LEFT",($x),($y),1,1)
Sleep(1200)
EndIf
EndIf
What I want:
|
|
|
07/11/2015, 16:15
|
#2
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
You might just put that script into a loop:
Code:
While True
$coord = PixelSearch( @DesktopWidth/100*35, @DesktopHeight/100*35, @DesktopWidth/100*65, @DesktopHeight/100*65, 0x2E4C76 )
If Not @error Then
MouseClick("LEFT",($x),($y),1,1)
Sleep(1200)
Else
$coord = PixelSearch( @DesktopWidth/100*20, @DesktopHeight/100*20, @DesktopWidth/100*80, @DesktopHeight/100*80, 0x2E4C76 )
If Not @error Then
MouseClick("LEFT",($x),($y),1,1)
Sleep(1200)
Else
$coord = PixelSearch( @DesktopWidth/100*0, @DesktopHeight/100*0, @DesktopWidth, @DesktopHeight, 0x2E4C76 )
If Not @error Then
MouseClick("LEFT",($x),($y),1,1)
Sleep(1200)
EndIf
EndIf
WEnd
|
|
|
07/11/2015, 16:24
|
#3
|
elite*gold: 1908
Join Date: Jan 2013
Posts: 832
Received Thanks: 629
|
Quote:
Originally Posted by lolkop
You might just put that script into a loop:
Code:
While True
$coord = PixelSearch( @DesktopWidth/100*35, @DesktopHeight/100*35, @DesktopWidth/100*65, @DesktopHeight/100*65, 0x2E4C76 )
If Not @error Then
MouseClick("LEFT",($x),($y),1,1)
Sleep(1200)
Else
$coord = PixelSearch( @DesktopWidth/100*20, @DesktopHeight/100*20, @DesktopWidth/100*80, @DesktopHeight/100*80, 0x2E4C76 )
If Not @error Then
MouseClick("LEFT",($x),($y),1,1)
Sleep(1200)
Else
$coord = PixelSearch( @DesktopWidth/100*0, @DesktopHeight/100*0, @DesktopWidth, @DesktopHeight, 0x2E4C76 )
If Not @error Then
MouseClick("LEFT",($x),($y),1,1)
Sleep(1200)
EndIf
EndIf
WEnd
|
I know but it isnt it what I need. Because If 2nd or 3rd If is true I want script to go again immediately. I think that something like that is possible in other languages...not in this one ? ...I dont want in in a loop
|
|
|
07/11/2015, 19:54
|
#4
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,137
Received Thanks: 573
|
Use a loop and  and  to Jump within the loop to the beginning at the loop again and to break the loop
|
|
|
 |
Similar Threads
|
Bloody Anchor
07/26/2010 - S4 League - 19 Replies
Hi switched animation sequences :D looks pretty good :D :D
Rate!!! :)
http://img688.imageshack.us/i/bloodyanchor.mp4/
|
Flying/Anchor in Arcade?
05/25/2010 - S4 League - 14 Replies
Moin..Geht das irgendwie mit Nya's item manager das man Anchor/Flying in arcade hat?
|
Anchor Greif Farbe
01/06/2010 - S4 League - 11 Replies
hatte mal wieder langeweile hier sind screens:
Screen 1: http://img246.imageshack.us/img246/6072/s420100106 174120.jpg
Screen 2 http://img246.imageshack.us/img246/9092/s420100106 174117.jpg
Screen 3 http://img246.imageshack.us/img246/2349/s420100106 174116.jpg
Download gebe ich über skype, und icq bekommt ihr über PM ;) da mein browser immer noch scheiße is,
|
anchor and minegun with ressource editor help^^
12/23/2009 - S4 League - 10 Replies
I changed the values for anchor (i searched range^^)
I found range but now i stuck in the air ^^ can someone give me the exact values of anchor pls?¿?¿?
and i need help with minegun i changed it with mindenergie and semi rifle but i cant shoot, i can only healwith it^^ i only see the minegun and the effect when im shooting =(
|
All times are GMT +1. The time now is 10:21.
|
|