Jump to content
UBot Underground

Recommended Posts

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.

Link to post
Share on other sites

Dragging is a combination of mouse down, mouse move and mouse up events.

 

So you have to something like this

 

select window

mouse move to location1

mouse down

mouse move to loaction 2

mouse 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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...