weasel127 Posted March 7, 2006 Share Posted March 7, 2006 Is there a way to "hold" the mouse key down (for left and right click) for a certain duration of time? The normal LeftClick/RightClick commands don't work on some programs that I use because the duration of the click is too short with just the mouseclick("left") command. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 7, 2006 Moderators Share Posted March 7, 2006 (edited) Is there a way to "hold" the mouse key down (for left and right click) for a certain duration of time? The normal LeftClick/RightClick commands don't work on some programs that I use because the duration of the click is too short with just the mouseclick("left") command.MouseDown('Left') Sleep(1000); replace 1000 with how long of a duration MouseUp('Left')Help file has all of that Edited March 7, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
greenmachine Posted March 7, 2006 Share Posted March 7, 2006 Sure thing. I looked in the helpfile, something you should have done, and found this definition of MouseDown: Perform a mouse down event at the current mouse position. Syntax: MouseDown ( "button" ) Parameters "button" - The button to click: "left", "right", "middle", "main", "menu", "primary", "secondary". Link to comment Share on other sites More sharing options...
weasel127 Posted March 7, 2006 Author Share Posted March 7, 2006 Oh, sorry. I just started this program awhile ago and I'm still a newbie at this ^^";; . Next time I'll check help files first before posting here. Thanks for the advice! Link to comment Share on other sites More sharing options...
greenmachine Posted March 7, 2006 Share Posted March 7, 2006 Good choice - the helpfile is a handy resource. Link to comment Share on other sites More sharing options...
jpm Posted March 7, 2006 Share Posted March 7, 2006 Did you search mouseclickdelay in the help? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 7, 2006 Moderators Share Posted March 7, 2006 Did you search mouseclickdelay in the help? I think he's looking to hold the button down longer... Not time between clicks themselves... I guess then MouseClickDownDelay would have been a good option too. (I could be wrong about what he wants specifically) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
jpm Posted March 7, 2006 Share Posted March 7, 2006 I think he's looking to hold the button down longer... Not time between clicks themselves... I guess then MouseClickDownDelay would have been a good option too. (I could be wrong about what he wants specifically)I was expecting he can read the help and the other options around the same subject.I am always "fighting" (educating) those who does not use the help file and ask question first.Sometime the help file is not perfect but reading inside is always good. Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted March 7, 2006 Share Posted March 7, 2006 u know sum1 should really spam every forum, creating thousands of threads with the link to the help file, just like a function per thread, you know it could solve the problem Link to comment Share on other sites More sharing options...
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