darkmaster071 Posted June 10, 2012 Posted June 10, 2012 I'm having trouble with a simple mousemove function. The cursor seems to be moving fast at the start and then slowing down as it is reaching the destination. It is essential for me that the cursor is moving at the same speed at all time. Note that the speed variable in the function is not my problem, but the uneven speed of it. Help is much appreciated, thank you.
JohnOne Posted June 10, 2012 Posted June 10, 2012 Never had such a problem, I suspect it's a local problem with whatever you are automating. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Moderators Melba23 Posted June 10, 2012 Moderators Posted June 10, 2012 darkmaster071,It is essential for me that the cursor is moving at the same speed at all timeMay I ask why? 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
darkmaster071 Posted June 10, 2012 Author Posted June 10, 2012 Its just a simple MouseMove function. I want to make the speed of the cursor constant for better overview of tooltips that show up in its path. The speed of the cursor at start is good, the speed i want. But at the end it becomes annoyingly slow. HotKeySet("{NUMPAD0}", "MoveCursor") While 1 Sleep(50000) WEnd Func MoveCursor() MouseMove(1017, 752, 0) MouseMove(1016, 320, 60) EndFunc
Moderators Melba23 Posted June 10, 2012 Moderators Posted June 10, 2012 darkmaster071, You are quite correct, it does slow down significantly - I wonder why? Have you tried moving the mouse in shorter sections within a loop like this: HotKeySet("{NUMPAD0}", "MoveCursor") While 1 Sleep(10) WEnd Func MoveCursor() $iY = 750 MouseMove(1017, $iY, 0) For $i = 1 To 40 $iY -= 10 MouseMove(1016, $iY, 5) Next EndFunc That gives me a much more consistent speed for the cursor. 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
darkmaster071 Posted June 10, 2012 Author Posted June 10, 2012 Thank you Melba23, it works very good!
Zedna Posted June 10, 2012 Posted June 10, 2012 You can also look at my Resources UDF ResourcesEx UDF AutoIt Forum Search
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