Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
completely disable the functionality of the CapsLock key
#1
Hi,

I want to disable the CapsLock key completely(Do not switch the state of letter case), but can use it as a trigger, Is this possible?

In the following example, in the QM program,  pressing the CapsLock key opens the dialog box in function Fun1
Press the capslock key at this point and it still works(can switch the state of letter case),
I want to disable it at all times(When I need to change the case of letters, use the Shift key)



Function Fun1
Trigger K //QM_FF     Help - how to add the trigger to the macro
 
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;3 Edit 0x54030080 0x200 68 48 96 12 ""
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040C02 "*" "" "" ""

str controls = "3"
str e3
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1

Function QM_FF
Code:
Copy      Help
;/
function# iid FILTER&f

if(wintest(f.hwnd "" "QM_Editor")) ret iid
ret -2
#2
Come up a lot, that the shift key and Capslock have the same function.(Use the capslock key as a trigger, after triggering)

I haven't found the reason yet, but it is a little troublesome Sad


Forum Jump:


Users browsing this thread: 1 Guest(s)