Does the following code make any sense at all or am I way off?
The idea is to simulate a mouseclick in another window.Code:wnd=FindWindow(NULL,"target window"); SendMessage(wnd,WM_RBUTTONDOWN,0,LPARAM(100,100));
But it doesn't do anything.
Maybe I'm obtaining window handle wrong? The string "target window" is in target windows name. I have no idea how to get handle in a better way than findwindow.
Tried what I saw in other thread here:
Still nothing happened.Code:wnd=FindWindow(NULL,"Notepad"); SendMessage(wnd,WM_CHAR,97,0);
Could it be because I'm using C++ builder?