Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restores the CapasLock key state
#1
Hi,

I defined a hotkey(CapsLock) in the dialog, and when pressed, it selects the text of the current line

But it still works, The case status is set.
how to restore the Caps original state after executing the command?

Thanks in advance for any advice and help
david



Macro Macro2
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;3 Edit 0x54020080 0x200 8 24 208 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
e3="hello world!"
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,DT_SetAccelerators(hDlg "401 K")
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
,case 401 ;;CapasLock
,CapsLock(0) ;;No effect
,key ESH
ret 1


Messages In This Thread
Restores the CapasLock key state - by Davider - 09-03-2022, 10:50 PM
RE: Restores the CapasLock key state - by Davider - 09-04-2022, 05:17 AM
RE: Restores the CapasLock key state - by Davider - 09-04-2022, 05:42 AM
RE: Restores the CapasLock key state - by Davider - 09-04-2022, 08:55 AM
RE: Restores the CapasLock key state - by Davider - 09-04-2022, 10:40 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)