Click here to Skip to main content
14,490,701 members

Managed C++/CLI

 
AnswerRe: how to use hook for mouse simulation Pin
Richard MacCutchan10-Mar-15 6:04
mveRichard MacCutchan10-Mar-15 6:04 
GeneralRe: how to use hook for mouse simulation Pin
Omarkkk10-Mar-15 6:08
MemberOmarkkk10-Mar-15 6:08 
GeneralRe: how to use hook for mouse simulation Pin
Richard MacCutchan10-Mar-15 6:28
mveRichard MacCutchan10-Mar-15 6:28 
GeneralRe: how to use hook for mouse simulation Pin
Omarkkk10-Mar-15 6:37
MemberOmarkkk10-Mar-15 6:37 
GeneralRe: how to use hook for mouse simulation Pin
Richard MacCutchan10-Mar-15 6:58
mveRichard MacCutchan10-Mar-15 6:58 
GeneralRe: how to use hook for mouse simulation Pin
Omarkkk10-Mar-15 7:03
MemberOmarkkk10-Mar-15 7:03 
hi Richard

switch (LOWORD(wParam)){
				case 1:
					HWND handle = FindWindow(NULL,TEXT("untitled - notepad"));

					if (!handle){
						::MessageBox (hwnd,TEXT("Window Not Found"),TEXT("Window Not Found"),MB_OK);
					}
					else
					{
						::SetActiveWindow(handle);



send message:

SendMessage(handle, MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE,NULL,NULL);
						SendMessage(handle, MOUSEEVENTF_LEFTDOWN,NULL,NULL);
						SendMessage(handle, MOUSEEVENTF_LEFTUP,NULL,NULL);


the "handle" is handling notepad application..
I checked the handling number using spy++ and it's the same which appears in the debugger which is 0x005e0656

the debugger says

-       handle  0x005e0656 {unused=??? }    HWND__ *
        unused  <Unable to read memory>


could you take a look on that please ..


thanks Smile | :)
GeneralRe: how to use hook for mouse simulation Pin
Richard MacCutchan10-Mar-15 7:10
mveRichard MacCutchan10-Mar-15 7:10 
GeneralRe: how to use hook for mouse simulation Pin
Omarkkk10-Mar-15 7:20
MemberOmarkkk10-Mar-15 7:20 
GeneralRe: how to use hook for mouse simulation Pin
Richard MacCutchan10-Mar-15 7:37
mveRichard MacCutchan10-Mar-15 7:37 
Questionprogram is crash. help me Pin
dongchul-lee25-Feb-15 20:12
Memberdongchul-lee25-Feb-15 20:12 
SuggestionRe: program is crash. help me Pin
Richard MacCutchan25-Feb-15 21:41
mveRichard MacCutchan25-Feb-15 21:41 
QuestionA brief question Pin
Member 1065708311-Feb-15 22:47
MemberMember 1065708311-Feb-15 22:47 
AnswerRe: A brief question Pin
Richard MacCutchan11-Feb-15 23:05
mveRichard MacCutchan11-Feb-15 23:05 
QuestionMFC Grid Control does not show cells content Pin
georox6-Dec-14 2:30
Membergeorox6-Dec-14 2:30 
AnswerRe: MFC Grid Control does not show cells content Pin
Richard MacCutchan6-Dec-14 3:02
mveRichard MacCutchan6-Dec-14 3:02 
GeneralRe: MFC Grid Control does not show cells content Pin
georox6-Dec-14 4:35
Membergeorox6-Dec-14 4:35 
QuestionCreate InputBox using VS2010 C++? Pin
Member 112303721-Dec-14 3:01
MemberMember 112303721-Dec-14 3:01 
QuestionHow to save "☺" in a file. C/C++ (Windows Functions) Pin
Citrusl2-Nov-14 10:51
MemberCitrusl2-Nov-14 10:51 
AnswerRe: How to save "☺" in a file. C/C++ (Windows Functions) Pin
Frankie-C22-Feb-15 3:24
MemberFrankie-C22-Feb-15 3:24 
QuestionDisplay an image on the button. this image is not from resource but it is a image form a normal file Pin
Member 1118237929-Oct-14 2:34
MemberMember 1118237929-Oct-14 2:34 
AnswerRe: Display an image on the button. this image is not from resource but it is a image form a normal file Pin
Richard MacCutchan29-Oct-14 4:01
mveRichard MacCutchan29-Oct-14 4:01 
QuestionI need some help with c++ Pin
Member 1111856129-Sep-14 8:44
MemberMember 1111856129-Sep-14 8:44 
AnswerRe: I need some help with c++ Pin
Richard MacCutchan29-Sep-14 21:33
mveRichard MacCutchan29-Sep-14 21:33 
QuestionCoding music rhythms Pin
Navid Abyazi24-Sep-14 5:28
professionalNavid Abyazi24-Sep-14 5:28 
AnswerRe: Coding music rhythms Pin
Richard MacCutchan24-Sep-14 5:35
mveRichard MacCutchan24-Sep-14 5:35 

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.