Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to define a single hotkey in a dialog box
#6
Macro Macro1
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 548 318 "Dialog"
;3 ActiveX 0x54030000 0x0 0 0 548 320 "SHDocVw.WebBrowser {8856F961-340A-11D0-A96B-00C04FD705A2}"
;END DIALOG
;DIALOG EDITOR: "" 0x2040700 "*" "" "" ""

str controls = "3"
str ax3SHD="$desktop$\Quiz\quiz.html"

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
,case WM_CLOSE
,DT_Ok(hDlg)
ret
;messages2
sel wParam
,case IDOK
,ret 0
,case IDCANCEL
,ret 0
ret 1


Please extract the Quiz.zip file to your desktopĀ  Smile

The password is: 123

After entering the password, press the Enter key, I should be able to confirm, but in the above code, the carriage return does not work


Attached Files
.zip   Quiz.zip (Size: 440.45 KB / Downloads: 364)


Messages In This Thread
RE: How to define a single hotkey in a dialog box - by win - 04-28-2018, 11:44 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)