Posts: 44
Threads: 14
Joined: Nov 2008
hey for some reason i can encript some of my dialogs but i cant encript others it says
Error (RT) in Dialog73: cannot create dialog. Macro not found or is encrypted.
First argument of ShowDialog must be name of macro or function that contains dialog definition (text that begins with BEGIN DIALOG)
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
it works when it is decripted but not encripted PLEASE HELP! ! ! :oops:
Posts: 12,072
Threads: 140
Joined: Dec 2002
If macro that contains dialog definition is encrypted, the first argument must be the definition, not the macro name. It is in QM help.
http://www.quickmacros.com/help/User/ID ... DITOR.html
Posts: 44
Threads: 14
Joined: Nov 2008
i still cant figuure it out the dialog code im using is ths please if you can fix it for me and post a response
/Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("Dialog73" &Dialog73)) ret
BEGIN DIALOG
0 "" 0x90CA0A44 0x100 0 0 159 81 "Sean's Jester Timer"
2 Button 0x54030000 0x4 82 50 48 14 "Close"
4 Button 0x54032000 0x0 24 4 48 14 "Start"
5 Button 0x54032000 0x0 82 4 48 14 "Stop"
3 Edit 0x54030880 0x200 28 26 100 14 ""
6 Button 0x54032000 0x0 22 50 48 14 "Instructions"
END DIALOG
DIALOG EDITOR: "" 0x2020105 "" "" ""
ret
;messages
long- t0
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
,case WM_TIMER
,long t
,GetSystemTimeAsFileTime +&t
,t-t0
,int h m s ms
,s=t/10000000
,m=s/60
,h=m/60
,m%60
,s%60
,_s.format("%02i:%02i:%02i" h m s )
,_s.setwintext(id(3 hDlg))
ret
;messages2
sel wParam
,case 4
,_s.setwintext(id(3 hDlg))
,GetSystemTimeAsFileTime +&t0
,SetTimer hDlg 1 1 0
,case 5 KillTimer hDlg 1
,case 6 mac "Instructions"
,case IDOK
,case IDCANCEL
ret 1
Posts: 12,072
Threads: 140
Joined: Dec 2002
Replace
if(!ShowDialog("Dialog73" &Dialog73)) ret
BEGIN DIALOG
0 "" 0x90CA0A44 0x100 0 0 159 81 "Sean's Jester Timer"
2 Button 0x54030000 0x4 82 50 48 14 "Close"
4 Button 0x54032000 0x0 24 4 48 14 "Start"
5 Button 0x54032000 0x0 82 4 48 14 "Stop"
3 Edit 0x54030880 0x200 28 26 100 14 ""
6 Button 0x54032000 0x0 22 50 48 14 "Instructions"
END DIALOG
DIALOG EDITOR: "" 0x2020105 "" "" ""
to
lpstr dd=
BEGIN DIALOG
0 "" 0x90CA0A44 0x100 0 0 159 81 "Sean's Jester Timer"
2 Button 0x54030000 0x4 82 50 48 14 "Close"
4 Button 0x54032000 0x0 24 4 48 14 "Start"
5 Button 0x54032000 0x0 82 4 48 14 "Stop"
3 Edit 0x54030880 0x200 28 26 100 14 ""
6 Button 0x54032000 0x0 22 50 48 14 "Instructions"
END DIALOG
DIALOG EDITOR: "" 0x2020105 "" "" ""
if(!ShowDialog(dd &Dialog73)) ret
Posts: 44
Threads: 14
Joined: Nov 2008
wow ty so much for the fast reply it worked great
thanks again