Problem with PixelGetColor - Newbie Here

3 posts in this topic

#1 ·  Posted (edited)

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

#2 ·  Posted

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

Share this post

Link to post
Share on other sites

#3 ·  Posted


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. :)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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.