WWW.. cpp.sources.ru
java.sources.ru web.sources.ru soft.sources.ru
jdbc.sources.ru asp.sources.ru api.sources.ru

  C / C++ / Visual C++

| | faq

divl 23-04-2001 04:34 MSK   Click Here to See the Profile for divl   Click Here to Email divl  
K click (divlweb@mail.ru)...
OlegO 23-04-2001 11:23 MSK     Click Here to See the Profile for OlegO  Click Here to Email OlegO     
- mouse_event(...)

The mouse_event function synthesizes mouse motion and button clicks.

VOID mouse_event(
DWORD dwFlags, // motion and click options
DWORD dx, // horizontal position or change
DWORD dy, // vertical position or change
DWORD dwData, // wheel movement
ULONG_PTR dwExtraInfo // application-defined information

OlegN 23-04-2001 11:27 MSK     Click Here to See the Profile for OlegN  Click Here to Email OlegN     
POINT pt = {xPos, yPos};

HWND hPointWnd = WindowFromPoint(pt);
SendMessage(hPointWnd, WM_LBUTTONDOWN, MK_LBUTTON, MAKELONG(xPos,yPos));
SendMessage(hPointWnd, WM_LBUTTONUP, 0, MAKELONG(xPos,yPos));

divl 23-04-2001 19:41 MSK     Click Here to See the Profile for divl  Click Here to Email divl     
-==- mouse_event() (( Visual ++)) -==-


E-mail | WWW..RU

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.