PDA

View Full Version : how to scroll the foreground window?


mrpotter
3rd October 2007, 05:57 PM
i tried the following but it does not work.

HWND CurrentForegroundWindow_hwnd;
CurrentForegroundWindow_hwnd=GetForegroundWindow() ;

SendMessage (CurrentForegroundWindow_hwnd, WM_VSCROLL,SB_PAGEDOWN, 0);