active-window

Determine Whether Program is the Active Window in .NET

I have a C#/.NET app and I want to implement the following behavior: I have a popup menu. Whenever the user clicks on anything within the application that is not the popup menu, I want the popup menu to close. However, whenever a user is not in the application I don't want anything to happen. I'm trying to manage this through the Los...

Show window in Qt without stealing focus

I'm using the Qt library to show a slideshow on the second monitor when the user isn't using the second monitor. An example is the user playing a game in the first monitor and showing the slideshow in the second monitor. The problem is that when I open a new window in Qt, it automatically steals the focus from the previous application. ...

C# - Capture screenshot of active window

I am making a screen capturing application and everything is going fine. All I need to do is capture the active window and take a screenshot of this active window. Does anyone know how I can do this? ...

Get current active window's title in Java

I am trying to write a Java program that logs what application I'm using every 5 seconds (this is a time tracker app). I need some way to find out what the current active window is. I found KeyboardFocusManager.getGlobalActiveWindow() but I can't get it to work right. A cross platform solution is preferable, but if one doesn't exist, the...

How to get the name of global active window using Java??

I am work an Desktop Application in which i need to save the name of corrently focused or active window name(mozilla firefox, or any other file name) in an text file currently I am using getActiveWindow() method of KeyboardFocusManager which give the name of active Window, or null if the active Window is not a member of the calling threa...

How can I track when a window is beeing activated and deactivadet?

I am making an taskbar and I need to know when the active window is changed. I don't want to use a timer. I'm thinking that maybe there is a WndProc message I can intercept. I'm using C# ...