Sign in to follow this  
Followers 0
Flam

Better way of doing this?

4 posts in this topic

ControlClick("Window name", "", , , 1, 278, 231)
    $pos = MouseGetPos()
    if $color NOT = PixelGetColor($pos[0], $pos[1])

I didn't even test this so it might not even work.. but is there a better way of checking the pixel color on a certain coordinate relative to the window you're working on? (in case the user moves the window, I want it to still work)

Share this post


Link to post
Share on other sites



.. is there a better way of checking the pixel color on a certain coordinate relative to the window you're working on? (in case the user moves the window, I want it to still work)

If you look in the help for PixelGetColor you will see a link to PixelCoordMode (Option) Follow the link.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

you could get the position and size of the window. wingetpos("window name")

The returns are

$array[0] = X position

$array[1] = Y position

$array[2] = Width

$array[3] = Height


Giggity

Share this post


Link to post
Share on other sites

Thanks to both! :)

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