Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check Pushlike
#12
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
Code:
Copy      Help
\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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)