EVulpes Posted July 7, 2011 Share Posted July 7, 2011 Greetings to all scripters and programmers more competent than me. I come before you now with a problem in a script I have been tasked to create for my current employer regarding the MouseClickDrag() function. My problem is thus: although I precisely know the screen coordinates I must use at all points in this script and the script is otherwise functional in all aspects, either the initial click of the MouseClickDrag() function or the simulated terminal release of the mouse button do not successfully execute, for the item the script attempts to drag-and-drop simply remains stationary. The item(s) with which the script attempts to interact are contained within a WindowsForms10.SysTreeView32.app control, though I am not well-versed enough in programmatic conventions of any kind to know if the garble of numbers in the control type which follow will signify anything to a reader, so I omit them for now and can provide the full control class upon request. The line of code used for this function is simple and is as follows: MouseClickDrag("left", 102, 136, 102, 119, 0) ;Values from 0 – 10 have been used for the speed modifier without effect. I humbly thank anyone who may be able to assist in this matter. Link to comment Share on other sites More sharing options...
jaberwacky Posted July 7, 2011 Share Posted July 7, 2011 (edited) What is WindowsForms10.SysTreeView32.app? Is it some kind of custom control? If so then they may not have coded drag and drop functionality in it. Edited July 7, 2011 by LaCastiglione Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
martin Posted July 7, 2011 Share Posted July 7, 2011 (edited) Greetings to all scripters and programmers more competent than me. I come before you now with a problem in a script I have been tasked to create for my current employer regarding the MouseClickDrag() function. My problem is thus: although I precisely know the screen coordinates I must use at all points in this script and the script is otherwise functional in all aspects, either the initial click of the MouseClickDrag() function or the simulated terminal release of the mouse button do not successfully execute, for the item the script attempts to drag-and-drop simply remains stationary. The item(s) with which the script attempts to interact are contained within a WindowsForms10.SysTreeView32.app control, though I am not well-versed enough in programmatic conventions of any kind to know if the garble of numbers in the control type which follow will signify anything to a reader, so I omit them for now and can provide the full control class upon request. The line of code used for this function is simple and is as follows: MouseClickDrag("left", 102, 136, 102, 119, 0) ;Values from 0 – 10 have been used for the speed modifier without effect. I humbly thank anyone who may be able to assist in this matter. I assume that if you drag manually it works and that you are sure the coordinates are correct. Have you tried Mousedown, sleep, mousemove, mouseup? In case this is the reason Edited July 7, 2011 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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