lobomonh Posted July 25, 2009 Posted July 25, 2009 Is it possible to simulate a mouse click without moving the cursor at all? I'm trying to create an app that will control another app like a user while letting the real user do w/e he/she wants with her real cursor
lobomonh Posted July 25, 2009 Author Posted July 25, 2009 controlclickcan you post an example please? The example in the document is a little bit confusing
lobomonh Posted July 25, 2009 Author Posted July 25, 2009 What about it do you not understand?I cant control position of the click. Like in a window, it just click wherever my cursor is at, not where I set the positions
qazwsx Posted July 25, 2009 Posted July 25, 2009 You specify the control that you want to click; that way you don't need to know its position. Use the autoit info tool to get the necessary information.
lobomonh Posted July 25, 2009 Author Posted July 25, 2009 You specify the control that you want to click; that way you don't need to know its position. Use the autoit info tool to get the necessary information.The window has a screen where stuff are drawn, I want to be able to click on one of the drawn objects, is that possible?
AdmiralAlkex Posted July 25, 2009 Posted July 25, 2009 The window has a screen where stuff are drawn, I want to be able to click on one of the drawn objects, is that possible? So where is the problem then? You have checked the helpfile right? ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] ) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
lobomonh Posted July 26, 2009 Author Posted July 26, 2009 So where is the problem then? You have checked the helpfile right?The problem is that the ControlClick does click, but it doesnt click on the x,y coords that I set, it just clicks wherever the cursor is at. Is there anyway to fix this?
Rarst Posted July 26, 2009 Posted July 26, 2009 Don't know if it will fit but you can click very fast and then remove cursor to where it was. $pos=MouseGetPos() MouseClick("left",200,200,1,0) MouseMove($pos[0],$pos[1],0) AutoIt tag at Rarst.net
gruntydatsun Posted July 26, 2009 Posted July 26, 2009 Don't know if it will fit but you can click very fast and then remove cursor to where it was. $pos=MouseGetPos() MouseClick("left",200,200,1,0) MouseMove($pos[0],$pos[1],0) You could lock mouse input for the instant this is being done to ensure no interference by the user also.
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