Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Re-assigning Pause/Break to Esc within a certain Macro
#1
Hi,
I would like if someone hits ESC during the running of the macro the following error statement would comeup

Code:
Copy      Help
err+
    sel(mes("Time Out!" "" "CTE!"))
        case 'C'
        case 'T'
        case 'E' ret


Another option, I geuss, would be to have the ESC work like Pause/Break within certain macros...

Many people seem to know ESC as a way to get out of a process.

Thanks,
Stuart
#2
Create a function, assign Esc hotkey, uncheck Eat. The function can end certain macros using

shutdown -6 0 "macro name"
#3
Thanks again Gintaras,

One things is that even though I have escaped out of the macro, some OSDs have not yet timed out.
Is there anyway to abort them before there allotted time has run out
- sort of like a general "if there are any OSD's still displaying, stop them..."

Stuart
#4
Create function CloseAllOSD:
Code:
Copy      Help
rep() clo win("" "QM_Osd_Class"); err ret

Insert this at the beginning of the macro:
Code:
Copy      Help
atend CloseAllOSD

Example
Code:
Copy      Help
atend CloseAllOSD
OnScreenDisplay "One things is that even though" 0 0 100
OnScreenDisplay "I have escaped out of the macro," 0 0 150
OnScreenDisplay "some OSDs have not yet timed out." 0 0 200
mes 1
#5
Gintaras, you are incredible. I geuss since this got re-assigned you felt it was a worthwhile question. It makes me feel a little bit better about asking you so many questionts!!!
Stuart


Forum Jump:


Users browsing this thread: 1 Guest(s)