Rafael Vallejo GMAIL wrote:
Hello list,
Is there a way to generate a keyboard buton press from a RealBasic
aplication, this is when my RealBasic program needs, will generate a
keyboard press that other aplications will see as if the user really
pressed the keybord, this is to make a function similar to joy2key.
For most purposes, the PressKey function in the Windows Functionality
Suite or the PressKeyMBS function from Monkeybread will do the job. In
some rare cases (XP Terminal Services Client, MS Outlook 2003 Settings
dialogs, and perhaps others) these will not work. The keystrokes will
simply be ignored by the application. In these cases, you need to
simulate a hardware keystroke using a much more complex API call to
SendInput. I've yet to find an implementation of SendInput for RB that
has suited my needs, but I will be working on one soon. I will submit it
for inclusion in the WFS when (if) complete.
It sounds like the existing methods will work fine for you.
hth,
Brian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>