Home
Products
Community
Manuals
Contact
Login or Signup

How To SendKey From Within Blitz ?

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

semar(Posted 1+ years ago) #1
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.


Beaker(Posted 1+ years ago) #2
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.


semar(Posted 1+ years ago) #3
Thanks MasterBeaker, much appreciated.

Hum, seems complicated indeed. Oh well.

Sergio.


Beaker(Posted 1+ years ago) #4
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.