05-23-2009, 04:44 AM
hi i want to make my macro an EXE
so when i do that how do i make a function run at start of the exe
the dialog code is below, and the function i want to run is called "Time2"
let me know if u have any ideas
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 223 135 "Dialog"
1 Button 0x54030001 0x4 110 116 48 14 "OK"
2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
3 Static 0x54000000 0x0 2 8 56 12 "Time Started-->"
4 Edit 0x54030080 0x200 64 8 96 14 ""
6 Button 0x54032000 0x0 4 112 48 14 "Reboot"
5 Button 0x54020007 0x0 0 0 172 30 ""
END DIALOG
DIALOG EDITOR: "" 0x2030005 "" "" ""
if(!ShowDialog("Dialog2" &Dialog2)) ret
ret
messages
sel message
case WM_INITDIALOG
case WM_DESTROY
case WM_COMMAND goto messages2
ret
messages2
sel wParam
case IDOK
case IDCANCEL
ret 1
so when i do that how do i make a function run at start of the exe
the dialog code is below, and the function i want to run is called "Time2"
let me know if u have any ideas
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 223 135 "Dialog"
1 Button 0x54030001 0x4 110 116 48 14 "OK"
2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
3 Static 0x54000000 0x0 2 8 56 12 "Time Started-->"
4 Edit 0x54030080 0x200 64 8 96 14 ""
6 Button 0x54032000 0x0 4 112 48 14 "Reboot"
5 Button 0x54020007 0x0 0 0 172 30 ""
END DIALOG
DIALOG EDITOR: "" 0x2030005 "" "" ""
if(!ShowDialog("Dialog2" &Dialog2)) ret
ret
messages
sel message
case WM_INITDIALOG
case WM_DESTROY
case WM_COMMAND goto messages2
ret
messages2
sel wParam
case IDOK
case IDCANCEL
ret 1