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

MY QUESTION IS:

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

  • Jos locked this topic
  • Developers

@Talrand,

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

Jos

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

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