Jump to content

Pixel Help


 Share

Recommended Posts

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
Link to comment
Share on other sites

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 >.<
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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?
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...