Jump to content

Sending Commands in Inactive Window


 Share

Recommended Posts

Hello Guyz, I've been searching this kind of topic in the forum but got no luck. Can anyone help me how make keystrokes,identifying pixel colors in a INACTIVE window or minimized window?.

Example like:

If PixelGetColor(541,38) == 0xFB1C20 Then

Do

Send("1")

Sleep(1000)

Until PixelGetColor(541,38) <> 0xFB1C20

EndIf

How to send this command that will work even if a window that this commands sends is inactive. Escpecially the color identification. It identifies even if that certain window/application/program is inactive.

Hoping for the an early reply Thanks in Advance.

Link to comment
Share on other sites

Hello Guyz, I've been searching this kind of topic in the forum but got no luck.

This is not a general support forum!

Forum Rules state that this forum is for users to share their working scripts with other users who may find them useful.

Do not post general support questions here, instead use the v3 Support forum.

Can anyone help me how make keystrokes,identifying pixel colors in a INACTIVE window or minimized window?.

Use ControlSend.

From AutoIt Help file: "ControlSend works in a similar way to Send but it can send key strokes directly to a window/control, rather than just to the active window."

As for pixels, I don't think you can do that without activating the window.

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