Jump to content

Problem with PixelGetColor - Newbie Here

Recommended Posts


Hello All !

First of all, thank you for reading this topic and trying to help me.

I am very new with AutoIt, just started learning it today... I am a long term programmer...

I am trying to make a bot to play a game using a android emulator called NOX.

The first problem I´ve encoutered is with the PixelGetColor function...


I want to get the pixel color from a opened program... 

I used the "Window Info" tool to find the coords...

The problem is that autoit is giving me the pixel based on DESKTOP coords not the ACTIVE window coords....

My code is:


I wanted to make a code that would run something if the pixels inside the program window matches a certain criteria.

I have a example code and the author looked the program window coords on the screen and did the math to find those pixels...

What is the correct way of doing it ?

Edited by Jos

Share this post

Link to post
Share on other sites

You should read the Forum Rules, the explicitly forbid " script interaction with games ".   :blink:

Share this post

Link to post
Share on other sites


Welcome to the AutoIt forum. :)

Unfortunately you appear to have missed the Forum rules on your way in. (there is also a link in my signature) 
Please read them now particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. :naughty:

See you soon with a legitimate question I hope. :)


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
Live for the present,
Dream of the future,
Learn from the past.

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.