|
You last visited: Today at 13:01
Advertisement
need help with pixel search and mouse click
Discussion on need help with pixel search and mouse click within the AutoIt forum part of the Coders Den category.
08/27/2013, 20:46
|
#1
|
elite*gold: 0
Join Date: Feb 2011
Posts: 278
Received Thanks: 67
|
need help with pixel search and mouse click
Code:
$enemy1= PixelSearch($hpos[0], $hpos[1],$hpos[0]+$hpos[2],$hpos[1]+$hpos[3], 0xFF0000)
if IsArray($enemy1) = True then
MouseMove($enemy1[0],$enemy1[1],0)
MouseClick("primary",$enemy1[0],$enemy1[1],1,0)
endif
dunno why but it miss click the pixel with about 5 pixels
|
|
|
08/27/2013, 22:28
|
#2
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
We can't help you if you don't post the full script.
By the way, you can leave the 2 last parameter in Mouseclick because it's already 0.
This may be your error: Why MouseMove and MouseClick? Just use
Code:
MouseClick("left", $enemy1[0], $enemy1[1])
|
|
|
08/27/2013, 23:19
|
#3
|
elite*gold: 0
Join Date: Feb 2011
Posts: 278
Received Thanks: 67
|
Quote:
Originally Posted by alpines
We can't help you if you don't post the full script.
By the way, you can leave the 2 last parameter in Mouseclick because it's already 0.
This may be your error: Why MouseMove and MouseClick? Just use
Code:
MouseClick("left", $enemy1[0], $enemy1[1])
|
eaven without mousemove it miss clicked but i will try the code gave
|
|
|
09/05/2013, 01:11
|
#4
|
elite*gold: 0
Join Date: Feb 2008
Posts: 225
Received Thanks: 22
|
Code:
If _ImageSearch("Enem.bmp", 1, $x1, $y1, 1) = 1 Then
MouseClick("Right")
sleep(500)
Endif
works just fine.
|
|
|
09/06/2013, 19:09
|
#5
|
elite*gold: 0
Join Date: Feb 2011
Posts: 278
Received Thanks: 67
|
problem is solved
Quote:
Originally Posted by alpines
We can't help you if you don't post the full script.
By the way, you can leave the 2 last parameter in Mouseclick because it's already 0.
This may be your error: Why MouseMove and MouseClick? Just use
Code:
MouseClick("left", $enemy1[0], $enemy1[1])
|
no way i can share full script XD
|
|
|
 |
Similar Threads
|
Mouse click tool
01/29/2021 - Conquer Online 2 - 5 Replies
Hi I was wondering if some1 could make a tool for clicking the mousebutton to walk\jump\attack
something like: you move the mouse (cursor) to the place where you want to go and press for example the spacebar or another keyboard button so that you move there.
Is this possible or is it impossible?
If it is possible it would be verry usefull :cool:
|
I need help with pixel search and mouse click.
06/07/2013 - AutoIt - 5 Replies
#region HotKeySet
HotKeySet("{F4}","PIXELREAD")
HotKeySet("{F2}","PIXELFIND")
HotKeySet("{f3}","ExitProg")
#ENDREGION
#region variables
dim $pos
dim $color
Global $counter=0
|
AutoIt Pixel Search & Click Frage.
11/23/2010 - AutoIt - 12 Replies
Hey e*pvpers.
Bin grade angefangen, mich bisschen in AutoIt reinzuarbeiten.
Wollte dazu nen kleinen, recht simplen Bot erstellen, der eine bestimmte Pixelfarbe sucht - Wenn er das gefunden hat, sollte er eig draufklicken.
Bin allerdings nur so weit gekommen, dass der Pixel gefunden wird, und ein Klick auch gemacht wird. Allerdings klickt die Maus da wo der Cursor grade steht, und movt nicht zu dem jeweiligen Pixel.
Und da ich wie gesagt grad erst anfange, weiss ich den Befehl...
|
Pixel Search Click
04/11/2010 - AutoIt - 4 Replies
Hi,
I am trying to open up Internet Explorer using Pixel Search,
But i keep getting Error.
Here is my script :
It finds the color then double clicks on it,but it cannot find the color,i hope some one can help me, +k for any one who can
|
Mouse to Pixel Frage!
01/19/2009 - GW Bots - 5 Replies
Also meine frage ist ob es eine möglichkeit gibt, das wenn ich
if pixelsearch(...) then
mache und er den pixel findet das er einen mouseclick zu dem pixel macht?
also bsp
if pixelsearch(...) then
mouseclicktopixel
|
All times are GMT +1. The time now is 13:01.
|
|