lmao thanks dunno why i keep putting that must be a habit i have a friend i call DJ o well... EDITED.... :DQuote:
Just to clarify, partyxboy, when you say "DJ", you mean "JT" right? lol ;)
Sorry, just didn't want your question to go unanswered, and I noticed that you've used it before as well, so I just wanted to clear it up for everyone :)
Quote:
^
What color would you search for though, you would have to make sure its not any color on the desktop or the open window since I think the search will stop automatically after the first occurrence of the pixel color and not search the entire possible area.
Someone stated before that they used this function to search entire screen for compiling times sake. They stated 12 Secs to search entire screen. I ran while looks to have a good comparison since this would search the entire screen and every pixel. Later they said they had used the PixelSearch function. I'm amazed it took 12 seconds using this function unless they planted a specific pixel on the last search slot or used a unique color that wasn't found.Quote:
Yes it would stopp after finding the certain pixel with the color and return the x-y coordinate. But I dont get the point what excatly are you trying?
I mean with PixelSearch(x-top, y-top, x-bottom, y-bottom, color[, shade variation, step]) you can tell him the exactly area to search the pixel (no need to search in the whole screen), example:
search in a rectangle on the top left corner
PixelSearch(0, 0, 100, 100, 13553872, 25) ; color is in decimal value but that doesnt matter
Has nothing todo what im actually doin lol i wanted to see exactly how long it would take to search EVERY pixel on the screen, messing around basically useless information if you want to put it that way!Quote:
Yes it would stopp after finding the certain pixel with the color and return the x-y coordinate. But I dont get the point what excatly are you trying?
I mean with PixelSearch(x-top, y-top, x-bottom, y-bottom, color[, shade variation, step]) you can tell him the exactly area to search the pixel (no need to search in the whole screen), example:
search in a rectangle on the top left corner
PixelSearch(0, 0, 100, 100, 13553872, 25) ; color is in decimal value but that doesnt matter
o no no lol im only searching a section of the screen and every other 150 pixels it dont take long at all!Quote:
Someone stated before that they used this function to search entire screen for compiling times sake. They stated 12 Secs to search entire screen. I ran while looks to have a good comparison since this would search the entire screen and every pixel. Later they said they had used the PixelSearch function. I'm amazed it took 12 seconds using this function unless they planted a specific pixel on the last search slot or used a unique color that wasn't found.
wouldnt it be easier to useQuote:
How I acquire the screen resolution is by finding a pixel in the target window that is unique. That is why all of my programs targets itself when you start the bot. Here is an example of my loop I use to do this:
While = 0
ControlClick("Rappelz", "", "", "left", 1,, ) ; Selects yourself
Sleep(1000)
= PixelSearch(480,5,1200,5,0xA9ABAB,0)
ToolTip("Target window POS set", ,)
Sleep(2000)
=
=
; Target HP Values
= + 2
= + 199
= 23
ControlSend("Rappelz", "", "", "{ESC}")
Sleep(500)
= 1
WEnd
yes I do have the pixel coordinates locked to the window, so 0,0 is the upper left corner of the Rapplez window. I have the bot search the exact y line that the coordinate exists on for the x range that is possible for all resolutions... starting at 480 for the 1024 resolution and no more than 1200 for the 1600 resolution. However... I do not know what I am doing so take my words with a grain of salt please... lol. Then i define the target values based off of this pixel location. It is really simple and helps to merge the difference between Vista and XP resolutions with the bot.