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
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
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