T Tim C Feb 9, 2006 #1 Can I use a WMI script to find out what the name of the active application is? Thanks, Tim C
S Scott McNairy \(MVP\) Feb 16, 2006 #2 I don't believe that this is supported via WMI currently. You would need to call the GetForegroundWindow API to get a handle to the window that has current user focus from there you can determine what the owning process is. http://msdn.microsoft.com/library/d...rence/windowfunctions/getforegroundwindow.asp
I don't believe that this is supported via WMI currently. You would need to call the GetForegroundWindow API to get a handle to the window that has current user focus from there you can determine what the owning process is. http://msdn.microsoft.com/library/d...rence/windowfunctions/getforegroundwindow.asp