Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 10:18

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PixelGetColor in background?

Discussion on PixelGetColor in background? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2019
Posts: 2
Received Thanks: 0
PixelGetColor in background?

I'm trying to make a bot that works in background (Not minimized). Someone know if its possible to make PixelGetColor works for a specific window(using getwindowhandle)? Thanks for who will help me.
Napulé is offline  
Old 04/26/2019, 23:29   #2

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
You can use FastFind for that

Although as far as I remember, the window you'd want to take snapshots from may not be minimized, otherwise the library won't get an image. A workaround for that can be to move the window out of your screen
Moneypulation is offline  
Old 04/27/2019, 03:04   #3
 
elite*gold: 0
Join Date: Apr 2011
Posts: 363
Received Thanks: 167
Quote:
Originally Posted by Napulé View Post
I'm trying to make a bot that works in background (Not minimized). Someone know if its possible to make PixelGetColor works for a specific window(using getwindowhandle)? Thanks for who will help me.
You cannot get color of a window that isn't active or is hidden by another window, simply because won't be drawn if it is in background or would maintain previous state.

Example -> targetwindow.au3

getPixelfromTarget.au3

Compile first script and run the second one, try hidding parts of the window with other windows and see the results.
One way to solve this problem is by activating target window before pixelCapture, but will pop up every time is needed to be updated, the other way is to use memory reading for events combined with control click (that would work in background). Also if the task is simple you can just solve it with control clicks without knowing state, just click target spots for buttons that may match together (rpg mobile games).
And last but not that easy, packet sniffing and sending requests to server.
elmarcia is offline  
Reply


Similar Threads Similar Threads
pixelgetcolor im Hintergrund?
03/10/2009 - GW Bots - 20 Replies
wie der titel schon sagt würde ich gerne wissen ob es auch ein pixelgetcolor fürn hintergrudmode gibt(wär ja komisch da es ja die grafik an dem punkt sucht:D) oda wie mann sowas lösen kann also ich brache das zu folgendem: ich lasse ich schleife so lang durch laufen bis der der nächste gegner (durch ständiges "nächstbefindlicher gegner" drücken:D) der fern kämpfer ist also While not pixelgetcolor (......) ...... WEnd lauf zu fehrkämpfer und beende
autoit prob mit pixelgetcolor
02/22/2009 - General Coding - 1 Replies
; wenn Pixel 137,133 dann Send("{$Char down}") sleep(500) Send("{$Char UP}") sleep(1000) mouseclick("left",191,564) ;end if wie schreibe ich des ich will halt das wenn 137,133 den farbcode 0x1E2971 bekommt der mit
Pixelgetcolor frage dazu
12/26/2008 - Guild Wars - 15 Replies
das geht ja auch in anderen fenster neuerdings will ich mal nciht sagen aber hat einer erfahrung damit? also ich meine mit erfahrung bugs oder so ob jemand mal gemerkt hat da funzt etwas nicht richtig oder der ließt eine pixel farbe falsch. ich hatte damit jetzt noch keinerlei probleme aaber vllt hatte ja jemand schonmal probs damit nur als vorwahrnung sozusagen:p
AutoIt - PixelGetColor Probem auf versch. PC
06/04/2008 - AutoIt - 4 Replies
Hallo, möglicherweise kann jemand von Euch helfen. Derzeit bin ich dabei, einen AOE Bot für Archlord zu schreiben. Dieser funktioniert recht ordentlich und flott. Allerdings nur auf meinem Rechner und nicht auf einem anderen. Das ist natürlich grossartig für mich aber nicht für andere ^.o Das merkwürdiges Problem ist, dass ich mit PixelGetColor auf PC1 z.B. den Farbwert 73695A erhalte aber auf PC2 einen völlig anderen Farbwert.



All times are GMT +1. The time now is 10:18.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.