Hi,
I have a question:
Is there any way to send virtual keystrokes to an SDL (+ OpenGL) application through Windows API? Keybd_event doesn’t work.
But one thing i’ve noticed: With the Screen Keyboard (Windows 7) I can send keystrokes. Does somebody know how the screen keyboard works?
Thank you,
xdstyla
Hi,
according to MSDN documentation keyb_event as been superceeded by SendInput:
http://msdn.microsoft.com/en-us/library/ms646304(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms646310(VS.85).aspx
Another way could be by using SendMessage with WM_KEYDOWN?
http://msdn.microsoft.com/en-us/library/ms644950(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms646280(VS.85).aspx
Please note that since Windows Vista, there are more security constraints to
whom you are allowed
to send a message. This might be the problem you are facing.
http://msdn.microsoft.com/en-us/library/bb756960.aspx
Cheers,
Paulo
Since Windows Vista, Microsoft changed the security rules to send messages
across applications.On Thu, Jan 28, 2010 at 4:11 PM, xdstyla wrote:
Hi,
I have a question:
Is there any way to send virtual keystrokes to an SDL (+ OpenGL)
application through Windows API? Keybd_event doesn’t work.
But one thing i’ve noticed: With the Screen Keyboard (Windows 7) I can send
keystrokes. Does somebody know how the screen keyboard works?
Thank you,
xdstyla
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org