Jump to content

Is there any way to Send Key to a Minimized Window?


Recommended Posts

Ok, so say, I want to send some key to a minimized (and unactive) window (with the Titled already known). Is it possible to do it?

The function Send() only sends the key to the Active Window, but not Unactive window.

To fix that problem, I can use SendKeepActive() along with Send(), to keep the specified window active, so that I can send the key.

SendKeepActive()

Attempts to keep a specified window active during Send().

But, when doing this, I will lose my current Active window. But again, I can use the function: WinActivate() to re-activate my desired window.

WinActivate()

Activates (gives focus to) a window.

But I'm not really happy with this solution at all, because it's like switching the 2 windows all over and over again. And if every, say 30 seconds, I have to perform one "switch" like that, I don't think it's really good for the PC. Moreover, there will be something, like a "gap" (discontinuity), since I want to keep one window active (all the time), and one window minimized (working in the background), but using that way, all 2 windows will take turns to be active.

So what I wonder is, is there a way to Send a key to a Minimized Window, without changing my Currently Active Window?

Hope I'm being clear enough.. :D

Thanks very much in advance, :D

Edited by eEniquEe
Link to comment
Share on other sites

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

GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF.
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...