jaxclain Posted August 5, 2019 Share Posted August 5, 2019 Hi there, Sorry if I am posting this in the wrong section, but Im having problem understanding this. I want the mouse to click at some cords, twice but I want to set the speed between each click, I did google and I am not sure if I got it right.. MouseClick("left", 903, 453, 2, 20) Sleep(100) Is this right? also I also wanted another function to left click and hold for 3 or 5 seconds then release but I couldn't find anything good. At the moment I am using a workaround this: MouseMove(1729, 914) ; Move the mouse cursor to that position Sleep(1000) MouseDown("left") Sleep(4000) MouseUp("left") Sleep(1000) I hope someone can help me to confirm if the first function is correct and to let me know if there is another way to make it click and hold then release after some seconds. Regards Link to comment Share on other sites More sharing options...
Nine Posted August 6, 2019 Share Posted August 6, 2019 What is the application you are trying to automate ? Can you tell us what exactly you want to achieve ? I am pretty sure there is a better solution than those mouse* functions? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
jaxclain Posted August 6, 2019 Author Share Posted August 6, 2019 2 hours ago, Nine said: What is the application you are trying to automate ? Can you tell us what exactly you want to achieve ? I am pretty sure there is a better solution than those mouse* functions? I am trying to create a macro with multiple functions, iv done most of it but there is 1 step where it requires me to click a button at certain cords and hold it for 3 seconds so I wanted to replicate that function. Also sometimes I wanted to understand how to manipulate the speed between each click, in case its doble click or more than 2 clicks. Regards Link to comment Share on other sites More sharing options...
Zedna Posted August 7, 2019 Share Posted August 7, 2019 On 8/6/2019 at 1:58 AM, jaxclain said: I want the mouse to click at some cords, twice but I want to set the speed between each click, I did google and I am not sure if I got it right.. MouseClick("left", 903, 453, 2, 20) Sleep(100) MouseClick("left", 903, 453) Sleep(3000) ; wait 3 seconds MouseClick("left", 903, 453) jaxclain 1 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ozymandius257 Posted August 8, 2019 Share Posted August 8, 2019 Yeah, Zedna has it correct, the last parameter in the MouseClick command is how fast Autoit moves the mouse to the co-ordinates, not how fast the click is. jaxclain 1 Back up my hard drive? - I can't even find reverse gear. Link to comment Share on other sites More sharing options...
jaxclain Posted August 16, 2019 Author Share Posted August 16, 2019 On 8/7/2019 at 6:52 AM, Zedna said: MouseClick("left", 903, 453) Sleep(3000) ; wait 3 seconds MouseClick("left", 903, 453) Thanks! sorry for the delay, this works!!! Thanks man 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