Sign in to follow this  
Followers 0
EndGuardian

PixelGetColor() Issues!

3 posts in this topic

I'm trying to load a pixel that is on what I believe to be a splash screen (the ConanPatcher.exe file for Age of Conan), but I can't manage to do it. It keeps pulling the pixel directly behind the splash page and completely ignores the fact that it even exists. Is there anything wrong with my code, or is there something I can do to get it to read the pixel?

#include <GUIConstantsEx.au3>
#include <EditConstants.au3>  

Process()

Func Process()
    Local $height, $pixel, $width, $shortcut
    $shortcut = (@DesktopDir & "\Age of Conan - Hyborian Adventures.lnk")
    Run(@ComSpec & ' /c start "" "' & $shortcut & '"', "")
    WinWait("Age of Conan Update Manager")
    
    $width = StringLeft (@DesktopWidth/2.1052631, 3)
    $height = StringLeft (@DesktopHeight/1.4457831, 3)
    $pixel = PixelGetColor($width, $height)

    While $pixel <> 4802889
        $pixel = PixelGetColor($width, $height)
    WEnd
    
    MouseClick("primary", $width, $height, 1)
EndFunc

Share this post


Link to post
Share on other sites



Bump - I still need a solution or a work around!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0