03-08-2007, 09:32 AM
Quote:determine the active window beneath the mouse and transfer that window into a macro that will act upon that window
Any window can be identified by window handle - a unique numeric value. To store window handles, use variables of type int. To get the handle of the active window or window under the mouse pointer, use function win.
int hwndActive
int hwndMouse
hwndActive=win()
hwndMouse=win(mouse)
All window-related functions accept window handles.