OnEvent Remove handler

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
SteenJakobsen
Pro Scripter
Posts: 110
Joined: Thu Apr 08, 2010 6:11 am
Location: Hørsholm, Denmark
Contact:

OnEvent Remove handler

Post by SteenJakobsen » Thu Sep 23, 2010 6:32 am

Hi,

How can I remove or disable an event handler created with OnEvent?

OnEvent workd great in 12.08 in other 12.0x versions it was very slow .. thanks for improving it :-)


Best regards Steen
Best Regards
Steen Jakobsen
DM Software A/S

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Sep 23, 2010 11:00 am

There's no way presently to disable an OnEvent, but you can build something into your code to do it:

Code: Select all

OnEvent>blabla,.....,subroutine

Let>bla_event_enabled=1

...

//now turn event handler off
Let>bla_event_enabled=0

...

SRT>subroutine
 If>bla_event_enabled=1
   ... code here
 Endif
END>subroutine
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

SteenJakobsen
Pro Scripter
Posts: 110
Joined: Thu Apr 08, 2010 6:11 am
Location: Hørsholm, Denmark
Contact:

Post by SteenJakobsen » Thu Sep 23, 2010 7:30 pm

ok.. yes ofcource .. :-) thanks
Best Regards
Steen Jakobsen
DM Software A/S

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts