Can you help me to transfer that code to C#?
- Code: Select all
HWND Notepad = FindWindowEx( GetDesktopWindow( ), 0, "Notepad", 0 );
SendMessage( GetDlgItem( Notepad, MB_TYPEMASK ), WM_SETTEXT, 0, (LPARAM)"Hello Notepad, what's up?" );
Thank you in advance
I want to send key presses to background window.
I don't want to use SendKeys.Send because I want that window to be in background.
SendKeys requires that window is active.