Jump to content

Its possible to check if any program is connected?


pumaz77
 Share

Recommended Posts

Maybe this can be checked by pixelsearch :D

You can try with pixelGetColor

eg.

#Include <Misc.au3>

Opt("PixelCoordMode", 2)
$Title = WinGetHandle("Game Window NAme")
$Color = ;your color here (Get it from AutoIT window info tool)

While 1
If PixelGetColor(x, y, $Title) = $Color Then
ContinueLoop
Else
; What to do?
WEnd

This will check by some Pixel Color, I think if your game is conneted than pixel in X, Y will change... This can say to program "k game is connected ^^" and do rest of script.

You can add "ExitLoop" if you wanna exit from program (from a loop)

This world is crazy

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...