Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: patching operation code known as opcodes Pin
Bacon Ultimate Cheeseburger6-Aug-09 16:27
Bacon Ultimate Cheeseburger6-Aug-09 16:27 
GeneralRe: patching operation code known as opcodes Pin
nah13376-Aug-09 19:44
nah13376-Aug-09 19:44 
QuestionCTreeCtrl Pin
john56325-Aug-09 20:16
john56325-Aug-09 20:16 
AnswerRe: CTreeCtrl Pin
Adam Roderick J5-Aug-09 20:22
Adam Roderick J5-Aug-09 20:22 
GeneralRe: CTreeCtrl Pin
john56325-Aug-09 22:08
john56325-Aug-09 22:08 
GeneralRe: CTreeCtrl Pin
Adam Roderick J5-Aug-09 22:53
Adam Roderick J5-Aug-09 22:53 
GeneralRe: CTreeCtrl Pin
john56326-Aug-09 0:37
john56326-Aug-09 0:37 
GeneralRe: CTreeCtrl Pin
Adam Roderick J6-Aug-09 17:44
Adam Roderick J6-Aug-09 17:44 
GeneralRe: CTreeCtrl Pin
TinDude23-Sep-11 21:27
TinDude23-Sep-11 21:27 
QuestionTICKS PER MILLISECOND Pin
RKP7285-Aug-09 19:55
RKP7285-Aug-09 19:55 
AnswerRe: TICKS PER MILLISECOND Pin
Adam Roderick J5-Aug-09 20:16
Adam Roderick J5-Aug-09 20:16 
GeneralRe: TICKS PER MILLISECOND Pin
RKP7285-Aug-09 21:09
RKP7285-Aug-09 21:09 
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 

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.