03-28-2016, 09:21 PM
Hello !
I'm just beginning with dialogs, and i would like to have the output of my macros in the dialog box
I saw this thread : "dialog.exe" program output in the dialog window?
But it's not what i exactly want to do
Here is my dialog box atm :
Here is the code :
Macro Test5
For example, when i click on "Macro 1", it launches "Macro 1"
if Macro1=How can i "export" the output of "Macro 1" in the dialog Box ?
Thanks in advance !
I'm just beginning with dialogs, and i would like to have the output of my macros in the dialog box
I saw this thread : "dialog.exe" program output in the dialog window?
But it's not what i exactly want to do
Here is my dialog box atm :
Here is the code :
Macro Test5
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 396 282 "Dialog"
;10 Edit 0x54030080 0x200 12 152 374 72 ""
;3 Button 0x54032000 0x0 132 32 118 14 "Macro 1"
;4 Button 0x54032000 0x0 132 52 118 14 "Macro 2"
;1 Button 0x54030001 0x4 12 228 156 46 "OK"
;2 Button 0x54030000 0x4 196 228 194 46 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040304 "*" "" "" ""
str controls = "10"
str e10
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 Execution
ret
;Execution
sel wParam
,case 3
,mac "Macro 1"
,ret
,
,case 4
,mac "Macro 2"
,case IDOK
,out "Clicked on OK"
,ret
ret 1
For example, when i click on "Macro 1", it launches "Macro 1"
if Macro1=How can i "export" the output of "Macro 1" in the dialog Box ?
Thanks in advance !