Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 14:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



pixelSearch; mouseMove while mouseDown

Discussion on pixelSearch; mouseMove while mouseDown within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2008
Posts: 4
Received Thanks: 0
pixelSearch; mouseMove while mouseDown

hei,
i want to know how to create a script, that detects a specific colour, which the mouse follows, WHILE holding "rightclick" UNTIL the specific colour disappears.

Lets say your mouse detects a red square, follows it, while holding "rightclick" down. then after a while the square disappears and the mouse stops holding "rightclick".

greetings.
1337_pu55y is offline  
Old 06/23/2013, 08:38   #2
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
Just use mousemove , pixelsearch and send commamd
YatoDev is offline  
Old 06/23/2013, 10:15   #3
 
Croco™'s Avatar
 
elite*gold: 235
Join Date: Jan 2012
Posts: 920
Received Thanks: 377
A few usefull funktions for your intend:






The code could be like this:
Code:
$Pixel = PixelSearch(...)
If isArray($Pixel) Then
    MouseDown("right")
    Do
         $Pixel = PixelSearch(...)
         MouseMove($Pixel[0],$Pixel[1],0)
    Until not isArray($Pixel)
    MouseUp("right")
EndIf
Croco™ is offline  
Thanks
1 User
Old 06/23/2013, 10:47   #4
 
elite*gold: 0
Join Date: Apr 2008
Posts: 4
Received Thanks: 0
hei thank you both

I knew about the mousemove, mousedown/up, isarray and so on.
my problem was to mousemove WHILE holding "rightclick" down.

the "do" ... "until" thing is really helpful for me, thanks again !

greetings.
1337_pu55y is offline  
Reply


Similar Threads Similar Threads
Mousedown/Mouseup
03/10/2013 - AutoIt - 5 Replies
Hallo epvp, und zwar möchte ich ein Programm schreiben, welches so eine Funktion benötigt if mousedown then alle_100_ms_linke_maustaste_drücken until mouseup Jedoch ist mir bei Autoit keine Abfrage bekannt die überprüfen kann ob die linke maustaste unten oder oben ist. Deshalb ist meine Frage ob jemand so eine Funktion kennt oder eine andere Methode mit der sowas realisierbar ist.
Mousemove?
01/04/2012 - AutoIt - 2 Replies
hi, ich bräuchte mal hilfe while True $search=pixelsearch (10,138,1348,713,0xE51304) if not @error then mouseclick($search,$search) EndIf
Variable in Mousemove?
10/01/2010 - AutoIt - 11 Replies
Servus, ich schon wieder.... :rolleyes: Kurze Frage: Warum geht das so nicht?: HotKeySet ("I", "Scannerstart") For $a = 0 to 1280 Step +5 Next Func Scannerstart() MouseMove ($a/100,10)
Pixelsearch bzw MouseMove/Click Problem
08/03/2010 - AutoIt - 4 Replies
Hallo, ich baue Gerade einen Bot für ein Spiel.Es ist ähnlich wie Hau den Lukas oder so^^ Aufjedenfall muss ich mit einen Hammer auf spielfiguren einhauen, das soll mein Bot jetzt übernehmen aber die Maus bewegt sich nicht zu den Spielfiguren hin. Ich kopiere den Code hier einmal rein ;D Habs mal entfernt ;D
[AUTOit]mousemove
03/19/2009 - AutoIt - 4 Replies
hi^^ hab mal ne frage : why bewegt sich die maus zur falschen stelle? hab im coord mode client gearbeitet^^ Opt('PixelCoordMode', 2) Opt('MouseCoordMode', 2) hotkeyset ("{numpad1}" , "start") while 1 sleep (100) wend



All times are GMT +1. The time now is 14:17.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.