AutoAlchemy

12/16/2011 22:09 tsatsiga#1
I made a script in AutoIt, 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

PHP Code:
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!
12/17/2011 04:11 theoneofgod#2
Look for pixels/images, etc.
12/17/2011 22:40 tsatsiga#3
I have the right coordinates, my problem is the clicking.
My 3 step:
1. clicking on the stone
2. drop it to alchemy window
3. press fuse button

The 1. and 3. clicks working well, but the second when i have dragged the stone doesn't.
12/18/2011 05:22 theoneofgod#4
You would have to write/use a function using SendMessage. ControlClick doesn't have the function to click and hold that click.
Or to save some time, you could use the built in MouseClick and MouseClickDrag functions.
Remember though, they won't work on a minimized window.
12/30/2011 13:53 tsatsiga#5
Yes, but i dont need hold the item, just pick up with one mousedown/mouseup click, then move the mouse, and a new mousedown/mouseup click.
12/31/2011 21:03 theoneofgod#6
I see, sorry for misunderstanding. Well, if you want to drop the item at specific coordinates, it will have to be cursor coordinates (X, Y) based off your monitor, or SRO window.