Posts: 1,006
Threads: 330
Joined: Mar 2007
Hi,
I would like if someone hits ESC during the running of the macro the following error statement would comeup
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
Posts: 12,140
Threads: 142
Joined: Dec 2002
Create a function, assign Esc hotkey, uncheck Eat. The function can end certain macros using
shutdown -6 0 "macro name"
Posts: 1,006
Threads: 330
Joined: Mar 2007
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
Posts: 12,140
Threads: 142
Joined: Dec 2002
Create function CloseAllOSD:
rep() clo win("" "QM_Osd_Class"); err ret
Insert this at the beginning of the macro:
Example
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
Posts: 1,006
Threads: 330
Joined: Mar 2007
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