Detect Caps Lock State In PowerBuilder Using API
1 2 |
//[External Function Declaration] Function Int GetKeyState(Int keystatus) Library "user32.dll" |
PowerScript
1 2 3 4 5 6 7 8 9 10 |
//[powerscript] Int li_keystate li_keystate = GetKeyState(20) If li_keystate = 1 Then MessageBox("", "CAPS on") ElseIf li_keystate = 0 Then MessageBox("", "CAPS off") End If |
Good Luck!
Subscribe
Login
0 Comments
Oldest