954,582 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How do you get the address of the Active Window if it is not part of your App?

How do you get the address of the Active Window if it is not part of your App? :confused:
I've found API code to get window handle and window name but I still need to find the path to the "Active Window".
Any help would be greatly appreciated.

cookware_ok
Newbie Poster
5 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

You could use getactivewindow or getforegroundwindow. That should return the hwnd of the currently active or the currently foreground window.

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You