01-05-2021, 04:37 AM
I removed the button【Original】 and now 【paste s】 works, but there's no way to cancel
Macro Macro15
Trigger A5
Macro Macro15
Trigger A5
str- s=
;DocumentModel document = new DocumentModel();
;
;Section section = new Section(document);
;document.Sections.Add(section);
;
;Paragraph paragraph = new Paragraph(document);
;section.Blocks.Add(paragraph);
;
;Run run = new Run(document, "文字二");
;paragraph.Inlines.Add(run);
;
;document.Save("文字三");
;
;//文字
;ComponentInfo.SetLicense("FREE-LIMITED-KEY");
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;3 Edit 0x54030080 0x200 8 8 96 12 ""
;4 Edit 0x54030080 0x200 8 28 96 13 ""
;5 Edit 0x54030080 0x200 8 48 96 12 ""
;6 Edit 0x54030080 0x200 8 68 96 13 ""
;7 Edit 0x54030080 0x200 8 88 96 12 ""
;8 Edit 0x54030080 0x200 120 8 96 12 ""
;9 Edit 0x54030080 0x200 120 28 96 13 ""
;10 Edit 0x54030080 0x200 120 48 96 12 ""
;11 Edit 0x54030080 0x200 120 68 96 13 ""
;12 Edit 0x54030080 0x200 120 88 96 12 ""
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040A00 "*" "" "" ""
str controls = "3 4 5 6 7 8 9 10 11 12"
str e3 e4 e5 e6 e7 e8 e9 e10 e11 e12
_s = s
_s.replacerx("\s*//.*" "")
;if(!ShowDialog(dd &sub.DlgProc &controls)) ret
if(!ShowDialog(dd &sub.DlgProc &controls)) paste s; ret
paste _s
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,str- s
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1