SFML community forums
Help => System => Topic started by: castro12321 on December 29, 2011, 03:12:33 pm
-
Is it possible to send keyboard event to other programs?
If i press ctrl+num1 it should write "hello" in notepad.exe or something like that...
Thanks.
-
inteface the windows api and use sendmessage
something like;
Hwnd Hwnd;
Hwnd = findwindow (notepad, Classnamenotepad
THen you get the children , i forget, enum children or then use findwindowEx to ge tthe editbox
hw = findwindowEx(hwnd, editboxclass)
then sendmessage(hw , "text'. CONST_FOR_WRITING);
just google "sendmessage notepad example"
-
Thanks for reply.
So SFML doesn't support it?
-
So SFML doesn't support it?
No, with SFML you can't open other applications. It's a multimedia library ;)