Sign in to follow this  
Followers 0
TSEGAH

ControlClick pickup and drop

3 posts in this topic

I made a script, it can do what i want it to do, except one step.

I want to do this in a loop:

1.) left mouse click on specific coords > pick up an item > check

2.) left mouse click on specific coords > drop the item > not working, it drops where my cursor is

3.) left mouse click on specific coords > press a button > check

Its a game btw.

ControlClick(GUICtrlRead($title), "", "", "left", 1, $item[1], $item[2])
Sleep(500)
ControlClick(GUICtrlRead($title), "", "", "left", 1, $drop[1], $drop[2])
Sleep(500)
ControlClick(GUICtrlRead($title), "", "", "left", 1, $button[1], $button[2])

My question is, how can i drop to the specific coordinates, not to the cursor position?

Thanks!

Share this post


Link to post
Share on other sites



Please read the rules.


My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

MY PROJECTS


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0