waitpixelcolor? help? Topic is solved

Ask gaming related questions

waitpixelcolor? help?

09 Dec 2017, 21:19

hi, i'm new to the community and to autohotkey net. i've been playing around with it for a few days so i have figured out some of the basics etc. here is my script. this script is for trove online mmo.

Code: [Select all] [Expand] [Download] (Untitled.ahk)GeSHi © Codebox Plus

i can get the script to work fine of course without the waitpixelcolor and all the brackets. but what i am trying to do is make it where i dont have to monitor it and make sure it doesnt run into problems running the commands at the right time, and just do it automatically all on its own. i have read and read stuff about pixelsearch, pixelgetcolor, and waitpixelcolor, but i'm obviously getting the functions incorrect. ok so the script needs to wait a second after being activated with a hotkey, wait to find the pink color in x, y, which is the center of the screen for my crosshair, which is pink so it's easy to see. once it sees the pink x-hair, it continues the code and does the short task, then types a command to join a club world, then repeats finding the pink xhair in the x/y position. then continue the code. then go back to the world to continue killing mobs. and repeat. and continue until i press the hotkey to turn it off.
and i had to make more than 1 instance of it switching back and forth because the yes/no window that pops up for grabbing a quest has to have the mouse "moved" over it for the cursor to correctly click yes to accept the quest. hopefully this all makes sense and can be understood. can anyone please help me with how to correctly get waitpixelcolor or whichever function works best with waiting until pink is found at x,y before continuing the code? tyvm in advance! or if there's an even better way of making the script wait until the "loading screens" are done and ready to continue the script. i'm open to all ideas. tyvm!
User avatar
Posts: 2873
Joined: 17 Oct 2015, 20:28

Re: waitpixelcolor? help?

09 Dec 2017, 21:59

waitpixelcolor is not a built in function. What is the code you found for it? (Also you should only need one waitpixelcolor() function and not the derivatives like waitpixelcolor2 and waitpixelcolor3; the whole point of functions is being able to pass in different values (colors and coordinates).)

Re: waitpixelcolor? help?  Topic is solved

09 Dec 2017, 22:05

i was reading online and just read that it was a function i could use in autohotkey net. sry im not very familiar with these things.
Posts: 96
Joined: 12 Aug 2016, 05:22

Re: waitpixelcolor? help?

10 Dec 2017, 07:25

If you are using MasterFocus's function you need to include the library. You can see a quick example and grab the function here https://github.com/MasterFocus/AutoHotk ... PixelColor

Return to “Gaming”

Who is online

Users browsing this forum: WingbtZ and 14 guests