QUOTE(no2pencil @ 6 Mar, 2008 - 12:39 AM)

You can check the
MSDN for documentation on the windows messaging API.
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Ya thanks i tried it already and this is the code i used
CODE
//Sends a mouse click
void SendClick(int dX, int dY)
{
if (iClickType == MOUSEEVENTF_RIGHTCLICK) {
mouse_event(MOUSEEVENTF_RIGHTDOWN, dX, dY, NULL, GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_RIGHTUP, dX, dY, NULL, GetMessageExtraInfo());
}
else if (iClickType == MOUSEEVENTF_LEFTCLICK) {
mouse_event(MOUSEEVENTF_LEFTDOWN, dX, dY, NULL, GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP, dX, dY, NULL, GetMessageExtraInfo());
}
}
VOID mouse_event(
DWORD dwFlags, // flags specifying various motion/click variants
DWORD dx, // horizontal mouse position or position change
DWORD dy, // vertical mouse position or position change
DWORD dwData, // amount of wheel movement
DWORD dwExtraInfo // 32 bits of application-defined information
);
and i called the function as SendClick(MOUSEEVENTF_RIGHTCLICK, 10, 10)
but for this its giving error as 'MOUSEEVENTF_RIGHTCLICK' undefined(first use this funtion)
Thats why strucked...
Can you help on this now...
This post has been edited by saravt: 6 Mar, 2008 - 12:49 AM