01-25-2009, 06:32 PM
Press Start, it will start a macro, press stop it will stop it.
you can do it as many times as you want.
Function Function7
you can do it as many times as you want.
Function Function7
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str c3Sta
if(!ShowDialog("Function7" &Function7 &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80AC4 0x108 0 0 59 24 "Dialog"
;3 Button 0x54013003 0x0 6 6 48 14 "Start"
;END DIALOG
;DIALOG EDITOR: "" 0x2020100 "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,if(but(lParam)) ;;checked
,,mac "Function57"
,,_s="Stop"
,else ;;unchecked
,,shutdown -6 0 "Function57"
,,_s="Start"
,_s.setwintext(lParam)
,case IDOK
,case IDCANCEL
ret 1