art777 Posted March 12, 2022 Posted March 12, 2022 Hello friends! First of all I want to thank everyone who has contributed into this program. It is really amazing that such tools exist for free and I appreciate that. I have been playing around with a script and have an issue. When I set the Mouse Click speed to 2 everything is working but when I lower that speed, the mouse is not clicking accurate. The strange thing is that I did this script a week ago and it was working on speed = 0 and now suddenly I have to change it to 2. If you guys have any idea what may be the problem I would really appreciate that. Dont know how important it is but the mouse is clicking on a third party program. Thank you Art
Moderators Melba23 Posted March 12, 2022 Moderators Posted March 12, 2022 art777, Welcome to the AutoIt forums. If you want us to help, I suggest posting the script you have so we can take a look - see here how to do it. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
art777 Posted March 12, 2022 Author Posted March 12, 2022 MouseClick($MOUSE_CLICK_LEFT, 161, 169, 1,0) MouseClick($MOUSE_CLICK_LEFT, 487, 557, 1,0) MouseClick($MOUSE_CLICK_LEFT, 640, 239, 1,2) MouseClick($MOUSE_CLICK_LEFT, 1130, 625, 1,0) WinWait("Data", "", 0) MouseClickDrag($MOUSE_CLICK_LEFT, 566, 77, 151, 79,0) Send ("{DELETE}") MouseClick($MOUSE_CLICK_RIGHT) MouseClick($MOUSE_CLICK_LEFT, 211, 202, 1,0) MouseClick($MOUSE_CLICK_RIGHT) MouseClick($MOUSE_CLICK_LEFT, 252, 259, 1,0) Run("notepad.exe","",@SW_MAXIMIZE) WinWait("[CLASS:Notepad]", "", 0) MouseClick($MOUSE_CLICK_RIGHT) MouseClick($MOUSE_CLICK_LEFT, 295, 340, 1,0) MouseClick($MOUSE_CLICK_LEFT, 12, 35, 1,0) MouseClick($MOUSE_CLICK_LEFT, 41, 118, 1,0) Send ("a.txt") Send ("{ENTER}") MouseClick($MOUSE_CLICK_LEFT, 1243, 11, 1,0) The third Mouse Click speed = 2 and it is working good. When I make it 0 or 1 the script is not clicking accurately anymore.
Nine Posted March 12, 2022 Posted March 12, 2022 You may need to put some Sleep(xyz) after some statements... “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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
ad777 Posted March 13, 2022 Posted March 13, 2022 @art777 put Sleep Function after every MouseClick and increse click from 1 to 2(if didn't click 1 time),see below: MouseClick($MOUSE_CLICK_LEFT, 161, 169, 1,0) Sleep(100) MouseClick($MOUSE_CLICK_LEFT, 487, 557, 1,0) Sleep(100) MouseClick($MOUSE_CLICK_LEFT, 640, 239, 1,2) Sleep(100) MouseClick($MOUSE_CLICK_LEFT, 1130, 625, 1,0) Sleep(100) ...... ........ ........... none
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