Cyberlucotorio 0 Posted January 12, 2013 Report Share Posted January 12, 2013 HI ! I'm working on a bot, but I cannot seem to find any information about how I can make this thing work. Basically I want to select an element from a page and drag it to another part of the same page.Is this possible? I hope someone can help me! Thanks in advance though! Greetings Alex. Quote Link to post Share on other sites
pftg4 102 Posted January 12, 2013 Report Share Posted January 12, 2013 your have to explain more pftg4 Quote Link to post Share on other sites
Cyberlucotorio 0 Posted January 12, 2013 Author Report Share Posted January 12, 2013 Hmm ok, I will try to make a more visual picture: http://i46.tinypic.com/2ithjzp.jpg The website wants me to drag the crystal clear picture to one of the five spots, e.g. where sprite or 7up is located. Quote Link to post Share on other sites
blumi40 222 Posted January 12, 2013 Report Share Posted January 12, 2013 outsch nice challenge Quote Link to post Share on other sites
pftg4 102 Posted January 12, 2013 Report Share Posted January 12, 2013 hey head now i'm disappointed you didn't post that pic perfect spot for it pftg4 1 Quote Link to post Share on other sites
Aymen 385 Posted January 12, 2013 Report Share Posted January 12, 2013 hmm , i do not thing that ubot can handle dragging !! Quote Link to post Share on other sites
AutomationNinja 194 Posted January 12, 2013 Report Share Posted January 12, 2013 I agree that it cannot be done. Quote Link to post Share on other sites
blumi40 222 Posted January 12, 2013 Report Share Posted January 12, 2013 im sure it can but this is pure and advance js.....and no... i dont got time :) Quote Link to post Share on other sites
AutomationNinja 194 Posted January 12, 2013 Report Share Posted January 12, 2013 what about your little doggie on speed? Quote Link to post Share on other sites
pftg4 102 Posted January 12, 2013 Report Share Posted January 12, 2013 post url please Pftg4 Quote Link to post Share on other sites
blumi40 222 Posted January 13, 2013 Report Share Posted January 13, 2013 what about your little doggie on speed?Dont abuse dirty Helmut he will never forget nothing Quote Link to post Share on other sites
entroqy 5 Posted January 13, 2013 Report Share Posted January 13, 2013 Dragging is a combination of mouse down, mouse move and mouse up events. So you have to something like this select windowmouse move to location1mouse downmouse move to loaction 2mouse up. So one problem is that you have to know the co ordinates of location 1 and location 2 before you start. Not sure that ubot can provide this info. There are tools that you can use to figure out the coordinates, but that is only useful if you can guarantee that the window will always be in exactly the same location. I see that ubot now has mouse commands but I haven't tried to use them yet. Simplest way to do this imo is to use AutoIT or something similar, but that takes you outside of ubot environment. I suppose AutoHotkey can do the same, but I've never used that. Personally, I would use code with the webbrowser for this. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.