Click here to Skip to main content
15,906,569 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Placing bitmaps on buttons Pin
Prakash Nadar13-Nov-03 21:12
Prakash Nadar13-Nov-03 21:12 
GeneralCopy Folder Pin
KKR13-Nov-03 19:51
KKR13-Nov-03 19:51 
GeneralRe: Copy Folder Pin
Prakash Nadar13-Nov-03 20:06
Prakash Nadar13-Nov-03 20:06 
GeneralRe: Copy Folder Pin
KKR13-Nov-03 20:23
KKR13-Nov-03 20:23 
GeneralSending Windows Events from one app to another Pin
Zee man13-Nov-03 19:30
Zee man13-Nov-03 19:30 
GeneralRe: Sending Windows Events from one app to another Pin
Prakash Nadar13-Nov-03 20:08
Prakash Nadar13-Nov-03 20:08 
GeneralRe: Sending Windows Events from one app to another Pin
Antti Keskinen13-Nov-03 20:26
Antti Keskinen13-Nov-03 20:26 
GeneralRe: Sending Windows Events from one app to another Pin
Zee man16-Nov-03 9:13
Zee man16-Nov-03 9:13 
I liked your idea very much but the problem is that I want it work for other buttons on the Dialog as well that I don't know the ID for. Infact I don't have access to the source code of the target application whose buttons I want to press. So I can't write any handlers in there.

Secondly I tried simulating a mouse click by doing
mouse_event(MOUSEEVENTF_LEFTDOWN, 50, 50, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 50, 50, 0, 0);
which kind of works but sends messages to the self application and not the target one (since the x,y coordinates are relative to the current window).

Back to the send WM_COMMAND message you talked about? What kind of message do I need to send inorder to simulate a mouse click. Since I don't know what the names of the Messages the target application handles in its code I probably can't send it Button_Click messages, so it has to be mouse_click and also how do I determine the 1st hWnd argument....right now I am doing a broadcast? Thanks.


Regards,
Zahid
GeneralRe: Sending Windows Events from one app to another Pin
Antti Keskinen16-Nov-03 10:17
Antti Keskinen16-Nov-03 10:17 
GeneralRe: Sending Windows Events from one app to another Pin
Zee man19-Nov-03 17:46
Zee man19-Nov-03 17:46 
GeneralCreating a systemwide hook dll in vc++ that can be used in vb Pin
percyvimal13-Nov-03 18:57
percyvimal13-Nov-03 18:57 
GeneralRe: Creating a systemwide hook dll in vc++ that can be used in vb Pin
Antti Keskinen13-Nov-03 20:59
Antti Keskinen13-Nov-03 20:59 
GeneralRe: Creating a systemwide hook dll in vc++ that can be used in vb Pin
percyvimal13-Nov-03 23:20
percyvimal13-Nov-03 23:20 
GeneralRe: Creating a systemwide hook dll in vc++ that can be used in vb Pin
Antti Keskinen14-Nov-03 12:11
Antti Keskinen14-Nov-03 12:11 
GeneralRe: Creating a systemwide hook dll in vc++ that can be used in vb Pin
percyvimal30-Nov-03 20:06
percyvimal30-Nov-03 20:06 
GeneralRe: Creating a systemwide hook dll in vc++ that can be used in vb Pin
Antti Keskinen30-Nov-03 23:20
Antti Keskinen30-Nov-03 23:20 
GeneralRe: Creating a systemwide hook dll in vc++ that can be used in vb Pin
percyvimal30-Nov-03 23:29
percyvimal30-Nov-03 23:29 
GeneralRe: Creating a systemwide hook dll in vc++ that can be used in vb Pin
percyvimal12-Dec-03 19:19
percyvimal12-Dec-03 19:19 
GeneralRe: Creating a systemwide hook dll in vc++ that can be used in vb Pin
percyvimal8-Jan-04 17:49
percyvimal8-Jan-04 17:49 
QuestionHow to create Tree view for displaying directory structure in vc++ Pin
harsh91113-Nov-03 18:35
harsh91113-Nov-03 18:35 
AnswerRe: How to create Tree view for displaying directory structure in vc++ Pin
Prakash Nadar13-Nov-03 18:50
Prakash Nadar13-Nov-03 18:50 
GeneralDynamic object creation Pin
Ravi Jadhav13-Nov-03 18:10
Ravi Jadhav13-Nov-03 18:10 
GeneralRe: Dynamic object creation Pin
Prakash Nadar13-Nov-03 21:56
Prakash Nadar13-Nov-03 21:56 
GeneralRe: Dynamic object creation Pin
Antti Keskinen13-Nov-03 22:02
Antti Keskinen13-Nov-03 22:02 
GeneralCreating a burning and circling text Pin
nhanquy8313-Nov-03 17:00
nhanquy8313-Nov-03 17:00 

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.