get active program window
-
hi all, how can i use win api to get the active program on the system please. if am trolling through alot of sites and not finding anything. I can get the window from it text and activate it and a hand full of other things but not able to find the active window. does anyone know a function to achieve this? kind regards, g00fy
-
hi all, how can i use win api to get the active program on the system please. if am trolling through alot of sites and not finding anything. I can get the window from it text and activate it and a hand full of other things but not able to find the active window. does anyone know a function to achieve this? kind regards, g00fy
Try this:
[DllImport("user32.dll")]
private static extern IntPtr GetForegroundWindow();DigitalKing
-
Try this:
[DllImport("user32.dll")]
private static extern IntPtr GetForegroundWindow();DigitalKing