How To SendKey From Within Blitz ?

BlitzPlus Forums/BlitzPlus Programming/How To SendKey From Within Blitz ?

Hi all,
I would like to use the VB-like AppActivate and SendKey commands from within a B+ application.

Since B+ has not such commands, who would be so kind to tell me which DLL to use, and how to declare it in a .decls file ?

Thanks,
Sergio.

http://msdn.microsoft.com/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/KeyboardInput/KeyboardInputReference/KeyboardInputFunctions/keybd_event.asp

and

http://msdn.microsoft.com/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/KeyboardInput/KeyboardInputReference/KeyboardInputFunctions/SendInput.asp

Looks complicated.

They both use user32.dll. I managed to get the mouse_event one to work a while ago.

Thanks MasterBeaker, much appreciated.

Hum, seems complicated indeed. Oh well.

Sergio.

The simplest way would be to just use Keybd_event - but I think when I tried it a few months ago it didn't work. :P Maybe I did something wrong.

SendInput is way too complicated.