Jump to content
Sign in to follow this  
taylansan

mouse clicking without MouseClick

Recommended Posts

taylansan

hi, lets say i wantto click on the screen at 500,500 position

MouseClick("left", 500, 500, 1, 0) for instant

MouseClick("left", 500, 500, 1, 1) for fastest

if the mouse was at 100,100 position, after this commant mouse will move on to 500,500

now i wonder how can i click at 500,500 without using MouseClick...

plz dont say, after u complete it, MouseMove(100, 100, 0)

tnx for answering


TY.

Share this post


Link to post
Share on other sites
star2

now i wonder how can i click at 500,500 without using MouseClick...

check help file it realy has alot of valuable info :)


[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

Share this post


Link to post
Share on other sites
taylansan

check help file it realy has alot of valuable info :)

then show me 1 :)

to gafrost thank you but i cant click at 500,500 using that command -.-


TY.

Share this post


Link to post
Share on other sites
Gif

check help file it realy has alot of valuable info :)

also functions and Au3lib

Share this post


Link to post
Share on other sites
GaryFrost

then show me 1 :)

to gafrost thank you but i cant click at 500,500 using that command -.-

I suspect you can't get the control Id and your trying to click on some game coord without showing the mouse movement. Good Luck.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
taylansan

ControlClick ( "title", "text", controlID [, button] [, clicks]] )

ControlClick("Untitled -", "", "MDIClient1")

how can i get the controlID?

and may i bother u if i want a mini example with ControlClick? :)


TY.

Share this post


Link to post
Share on other sites
ksmith247

ControlClick ( "title", "text", controlID [, button] [, clicks]] )

ControlClick("Untitled -", "", "MDIClient1")

how can i get the controlID?

and may i bother u if i want a mini example with ControlClick? :)

Use AutoIt Window Info to get the control ID

Support bacteria; it's the only culture most people have.LxP's Learning to Script with AutoIt 3 - Excellent starting placeVolly's Links Page - Links to cool and useful scriptsAutoIt Wrappers - Valuater's AutoIt Wrappers post. Lots of good stuff.Support AutoIt - Make a donation here; I did.[size="2"]#include <Guinness.pint>[/size]

Share this post


Link to post
Share on other sites
taylansan

controlID is generally Edit1 right?

btw; if i run notepad.exe and say

ControlClick("Untitled -", "", "Edit1", "right")

then it right clicks on the center of notepad window, and puts it on top. thats ok

Posted Image

if i move (drag) the notepad window to the other side on the screen, again center of the window

Posted Image

it always clicks on the center of the window? or can i do the click operaion on a specific point?


TY.

Share this post


Link to post
Share on other sites
taylansan

just use the x y coords

ControlClick("Untitled -", "", "Edit1", "right", 1, 50, 20)
C:\Program Files\AutoIt3\Examplesmy\zzz2.au3 (12) : ==> Incorrect number of parameters in function call.:

:) if it works on u, then maybe my auoto it isnt up to date?


TY.

Share this post


Link to post
Share on other sites
taylansan

i had 3.2.2.0 and newer version is worked... 10x all ppl posting :)


TY.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×