Jump to content

Recommended Posts

Posted (edited)

I want the script to do the following

MouseClick("Left", 313, 464, 1, 5)
Sleep(100)

When the greenbox in this screenshot goes the color it now is. I'm referring to the top not the bottom one. I tried looking at the color under mouse tab on autoit window info, but the color keeps changing so i don't know which one it is.

Posted Image

Edited by Death
Posted

Is it a mule trade?

Nah I'm making a stacking script, for the paladin when wearing hoj or dragon. When you run the script you hit a button, ill set that later and the side the script is running on will drop the torch in the trade window, wait for the other trader to hit accept then it will hit accept, i just don't want it to hit accept and the other trader hasn't hit his, it could turn bad >.<
Posted

Ok so i got the Color, Exact Location I Want To Check For The Color

GreenBox Color 0x18480C
GreenBox Coord 430, 298

I don't know, if i should scan on that exact spot or around the coord, like the hole box, Also i need help getting the, left, right, top, bottom to scan the area. So to sum up, i just want the script to scan around the greenbox area for the color above, then when it changes go on with

MouseClick(...)

I just don't know how i'd make the script wait until some where in the greenbox turned 0x18480C , Thanks.

Posted

It's not exact science, you can get the ~~~~ left, top, right, bottom and check it's pixel checksum. First You need an initial checksum value prior to entering the loop to compare it against. The rest is similar.

Posted (edited)

That is why I said use it relatively. You can specify in the last parameter a window handle so it's possible to do all the things relatively without taking care where it would be on the screen. You'll need to look at the help file under the Opt function to change the PixelCoordMode option.

For example, you can take your window to the 0,0 coordinate and preform all the calculation there and then use the same coordinates but using the last parameter set to the window handle of Daiblo. It's not an exact science. ;]

Edited by Authenticity
Posted

That is why I said use it relatively. You can specify in the last parameter a window handle so it's possible to do all the things relatively without taking care where it would be on the screen. You'll need to look at the help file under the Opt function to change the PixelCoordMode option.

For example, you can take your window to the 0,0 coordinate and preform all the calculation there and then use the same coordinates but using the last parameter set to the window handle of Daiblo. It's not an exact science. ;]

Ok, but wouldn't the handle need the full title ex Diablo II, no just Diablo for what your saying to work?
Guest
This topic is now closed to further replies.
×
×
  • Create New...