pravin Posted July 21, 2016 Posted July 21, 2016 I want to drag and Drop a element in my web application using autoit. Basically i want to automate drag and drop functionality in my application using autoit. Please help me in it
l3ill Posted July 21, 2016 Posted July 21, 2016 Then you need HTML 5, not autoit... My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example
pravin Posted July 22, 2016 Author Posted July 22, 2016 there is no possibility for drag and drop in autoit ? by using any mouse event or other options
SadBunny Posted July 22, 2016 Posted July 22, 2016 Sure there is, try things like MouseClickDrag, MouseDown, MouseMove and MouseUp. Roses are FF0000, violets are 0000FF... All my base are belong to you.
pravin Posted July 22, 2016 Author Posted July 22, 2016 can you help me with code for drag and drop please
SadBunny Posted July 22, 2016 Posted July 22, 2016 Sure, look at the example scripts in the usage information about those functions: https://www.autoitscript.com/autoit3/docs/functions/MouseClickDrag.htmhttps://www.autoitscript.com/autoit3/docs/functions/MouseDown.htmhttps://www.autoitscript.com/autoit3/docs/functions/MouseMove.htmhttps://www.autoitscript.com/autoit3/docs/functions/MouseUp.htm pravin 1 Roses are FF0000, violets are 0000FF... All my base are belong to you.
SadBunny Posted July 22, 2016 Posted July 22, 2016 No problem. See how far you get, it's pretty much a question of figuring out the coordinates to drag to/from and plug those into those commands. There's a few catches if you want to do it properly, such as making sure that your coordinates are correct even if you move windows or error checking to see if the windows are even there... All in all, most people here would advise against using drag&drop mouse automation (or any sort of gui automation), as in use it as a last resort if you are certain that no other methods exist. It is finicky, it is hard to account for all gui contingencies, it could break if you accidentally use your mouse while the script is operating, etc. etc., all in all it's quite unreliable. If you really want to interact with a website in a much more reliable and faster way, and have muuuuuuch more control, it may be worth it to check this out: https://www.autoitscript.com/autoit3/docs/libfunctions/IE Management.htm Roses are FF0000, violets are 0000FF... All my base are belong to you.
pravin Posted July 22, 2016 Author Posted July 22, 2016 I am new to this autoit let me try if any issues ..will post it
pravin Posted August 4, 2016 Author Posted August 4, 2016 can anybody help me with the step for use autoit for drag and drop or any tutorial video
SadBunny Posted August 4, 2016 Posted August 4, 2016 From the MouseClickDrag help file: #include <AutoItConstants.au3> ; Left click drag from 0, 200 to 600, 700 MouseClickDrag($MOUSE_CLICK_LEFT, 0, 200, 600, 700) If that's not enough, please describe your challenge. Roses are FF0000, violets are 0000FF... All my base are belong to you.
pravin Posted August 5, 2016 Author Posted August 5, 2016 thanks for the help will try and let u know
pravin Posted August 5, 2016 Author Posted August 5, 2016 the mouse pointer is moving from source element to destination according to co-ordinate but element is not getting drag to destination ....
SadBunny Posted August 5, 2016 Posted August 5, 2016 You could try to put Opt("MouseClickDragDelay", 1000) on top of your script. (A second is usually much too long, but just for testing whether the problem is in the delay, and then dial it back.) If that doesn't work, please show your code, and if possible a screenshot of your situation (block out any personal information!) Roses are FF0000, violets are 0000FF... All my base are belong to you.
pravin Posted August 5, 2016 Author Posted August 5, 2016 MouseClickDrag("left",60, 570, 800, 570,10) ....can put delay in between
SadBunny Posted August 5, 2016 Posted August 5, 2016 Try $MOUSE_CLICK_LEFT instead of "left", as shown in the helpfile (have you read it?). Roses are FF0000, violets are 0000FF... All my base are belong to you.
pravin Posted August 5, 2016 Author Posted August 5, 2016 i was using it but it didn't worked so used left in it
SadBunny Posted August 5, 2016 Posted August 5, 2016 More details. Moooore details. Roses are FF0000, violets are 0000FF... All my base are belong to you.
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