Click here to Skip to main content
15,902,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TICKS PER MILLISECOND Pin
Adam Roderick J5-Aug-09 22:14
Adam Roderick J5-Aug-09 22:14 
GeneralRe: TICKS PER MILLISECOND Pin
RKP7286-Aug-09 1:53
RKP7286-Aug-09 1:53 
Questionquery foxprodata base Pin
trioum5-Aug-09 19:49
trioum5-Aug-09 19:49 
QuestionRe: query foxprodata base Pin
David Crow6-Aug-09 4:20
David Crow6-Aug-09 4:20 
QuestionSendInput() and MOUSEINPUT Problems Pin
Madhu_Rani5-Aug-09 19:08
Madhu_Rani5-Aug-09 19:08 
AnswerRe: SendInput() and MOUSEINPUT Problems Pin
Adam Roderick J5-Aug-09 19:47
Adam Roderick J5-Aug-09 19:47 
GeneralRe: SendInput() and MOUSEINPUT Problems Pin
Madhu_Rani5-Aug-09 19:55
Madhu_Rani5-Aug-09 19:55 
GeneralRe: SendInput() and MOUSEINPUT Problems Pin
Madhu_Rani5-Aug-09 20:22
Madhu_Rani5-Aug-09 20:22 
Another Problem:

The logic of SetCurPos()works for the right clicks and OS take the appropriate action against the right click, but it did not work for left click. When I changed both flags to MOUSEEVENTF_ LEFTDOWN in the code.

The cursor goes at the bottom-left corner but application can not trigger the start button (Window Start) event, as cursor was at that point. Actually if the cursor is at the button, then we require to have a left click at button? so how we manage a click at a button by using sendinput() method.







SetCursorPos(10,790);
INPUT rightClick[2];

MOUSEINPUT rightDown;
rightDown.dwFlags = MOUSEEVENTF_RIGHTDOWN + MOUSEEVENTF_ABSOLUTE;
rightDown.dx = 0;
rightDown.dy = 0;
rightDown.time = 0;
rightDown.mouseData = 0;

MOUSEINPUT rightUp;
rightUp.dwFlags = MOUSEEVENTF_RIGHTUP + MOUSEEVENTF_ABSOLUTE;
rightUp.dx = 0;
rightUp.dy = 0;
rightUp.time = 0;
rightUp.mouseData = 0;

rightClick[0].type = INPUT_MOUSE;
rightClick[0].mi = rightDown;

rightClick[1].type = INPUT_MOUSE;
rightClick[1].mi = rightUp;

// finally, send the spoofed right-click to invoke the menu
::SendInput( 2, rightClick, sizeof(rightClick[0]));
GeneralRe: SendInput() and MOUSEINPUT Problems Pin
Adam Roderick J5-Aug-09 20:53
Adam Roderick J5-Aug-09 20:53 
GeneralRe: SendInput() and MOUSEINPUT Problems Pin
Madhu_Rani5-Aug-09 21:24
Madhu_Rani5-Aug-09 21:24 
GeneralRe: SendInput() and MOUSEINPUT Problems Pin
Adam Roderick J5-Aug-09 21:57
Adam Roderick J5-Aug-09 21:57 
AnswerRe: SendInput() and MOUSEINPUT Problems Pin
David Crow6-Aug-09 4:36
David Crow6-Aug-09 4:36 
QuestionC++ Pin
Baeltazor5-Aug-09 18:36
Baeltazor5-Aug-09 18:36 
AnswerRe: C++ Pin
Code-o-mat5-Aug-09 21:18
Code-o-mat5-Aug-09 21:18 
Question(NULL == p) vs (p == NULL) Pin
fitatc5-Aug-09 16:04
fitatc5-Aug-09 16:04 
AnswerRe: (NULL == p) vs (p == NULL) Pin
hanq_389101305-Aug-09 16:31
hanq_389101305-Aug-09 16:31 
GeneralRe: (NULL == p) vs (p == NULL) Pin
Joe Woodbury5-Aug-09 16:47
professionalJoe Woodbury5-Aug-09 16:47 
GeneralRe: (NULL == p) vs (p == NULL) Pin
hanq_389101305-Aug-09 16:57
hanq_389101305-Aug-09 16:57 
GeneralRe: (NULL == p) vs (p == NULL) Pin
PIEBALDconsult5-Aug-09 17:05
mvePIEBALDconsult5-Aug-09 17:05 
AnswerRe: (NULL == p) vs (p == NULL) Pin
PIEBALDconsult5-Aug-09 17:10
mvePIEBALDconsult5-Aug-09 17:10 
AnswerRe: (NULL == p) vs (p == NULL) Pin
Chuck O'Toole5-Aug-09 21:37
Chuck O'Toole5-Aug-09 21:37 
AnswerRe: (NULL == p) vs (p == NULL) Pin
Adam Roderick J5-Aug-09 21:54
Adam Roderick J5-Aug-09 21:54 
Questionusing the mouse programmatically Pin
Orchus5-Aug-09 10:08
Orchus5-Aug-09 10:08 
AnswerRe: using the mouse programmatically Pin
Luc Pattyn5-Aug-09 10:30
sitebuilderLuc Pattyn5-Aug-09 10:30 
AnswerRe: using the mouse programmatically Pin
«_Superman_»5-Aug-09 16:49
professional«_Superman_»5-Aug-09 16:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.