Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Using KeyBoard Code In PowerBuilder – PowerBuilder Library
November 20, 2020

Using KeyBoard Code In PowerBuilder

The keybd_event API is a simple but handy API. You can do anything you can do with your keyboard using this function. Popup the windows menu, place the current window in clipboard etc. There are many keycodes you can use. Some keys work instantly for instance, the tab key. The shift key however has to be pressed and released because you always use the shift key in combination with another key. Here is the API declaration:

External Function Declaration 


To press a key, use:

 To release a key, use:

 keybd_event(ai_key,0,2,0)
 

Here’s a list with all the existing keycodes which is derived from the winuser.h include file.

Good Luck!

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x