siraig Posted May 10, 2013 Posted May 10, 2013 (edited) Hey all, I am trying to perform a very simple task - but have absolutely NO prior experience to this. I want to be able to run a script that allows me to click once and have the script "double click." I searched around and found this script... Func mouse() ; Double click at the current mouse pos MouseClick("left") MouseClick("left") EndFunc BUT - ive loaded it into a new script, and run the script, but nothing is happening. I am sorry for not having any idea what to do here. any help is GREATLY appreciated. Edited May 10, 2013 by siraig
water Posted May 10, 2013 Posted May 10, 2013 Can you please tell us why you can't do the double click yourself? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
MouseSpotter Posted May 10, 2013 Posted May 10, 2013 (edited) This might be too obvious but have you invoked the Mouse function Mouse() Func mouse() ; Double click at the current mouse pos MouseClick("left") MouseClick("left") EndFunc Edited May 10, 2013 by MouseSpotter
Tekk Posted May 10, 2013 Posted May 10, 2013 Perhaps you might post the full script you have placed this function in? The function in question does in fact invoke a double click at the current mouse position. In conclusion, I fail to see the problem.
JohnOne Posted May 10, 2013 Posted May 10, 2013 (edited) You'll need a while loop to keep the script alive, and also a _IsPressed("01") in that loop to detect the mouse click and trigger the function. Edited May 10, 2013 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Moderators JLogan3o13 Posted May 10, 2013 Moderators Posted May 10, 2013 siraig, what is the application you're trying to manipulate? There is often a much better way to do what you want (activate a button, click on a link, etc.), without having to resort to Mouseclicks. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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