Generate Keystrokes In PowerBuilder

Generate Keystrokes In PowerBuilder

KeyAsciiKeyAscii
L-Button1W87
R-Button2X88
Cancel3Y89
M-Button4Z90
Back8NP – 096
Tab9NP – 197
Clear12NP – 298
Return13NP – 399
Shift16NP – 4100
Control17NP – 5101
Menu18NP – 6102
Pause19NP – 7103
Cap20NP – 8104
Escape27NP – 9105
Space32*106
Prior33+107
Next34109
End35.110
Home36/111
Left37F1112
Up38F2113
Right39F3114
Down40F4115
Select41F5116
Print Scrn44F6117
Insert45F7118
Delete46F8119
Help47F9120
048F10121
149F11122
250F12123
351F13124
452F14125
553F15126
654F16127
755F17128
856F18129
957F19130
A65F20131
B66F21132
C67F22133
D68F23134
E69F24135
F70Numlock144
G71Scroll145
H72Rshift161
I73L-Ctrl162
J74R-Ctrl163
K75L-Menu164
L76R-Menu165
M77=187
N78,188
O79[189
P80.190
Q81/191
R82192
S83[219
T84/220
U85]221
V86222

Declaration Of External Function:

Create Print Screen:

The following code dynamically triggers The Paste operation, equivalent To pressing CTRL + V:

PowerBuilder enter a Message In Notepad:

User Event linked To pbm_dwnkey

Good Luck!

Was this article helpful?

Related Articles

Leave A Comment?