well, i managed to get these 2 to work...
the problem comes just with the window...
Notepad ex: I tried to get it to send it messages without being focused (thats the point of it...) and managed to do it with:
Code:
windowHandle = FindWindow(null, windowName);
windowHandle = FindWindowEx(windowHandle, IntPtr.Zero, "Edit", "");
(It's in C# because i was writting C# at that time, but it's not hard to understand or rewrite in c++) <.<
Well, i understood that i had to get the "class?" inside the window ("edit") where i could write at (without it, it would write on Window Title it self)... the problem is.. it is not multi functional.. Microsoft Word won't use it for example.. Most of the other windows/processes won't use it either...
Some just need the normal
Handle from
FindWindow, others something else.
I'm trying to find a way to make it multi-functional for different processes / windows... And i can't find a way for it.. if it's even possible.. Any ideas?
EDIT: The point is to send text/keystrokes/press's to a non focused window..