OnEvent Time/Date Release (Implemented 03/14/2014)

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
JRL
Automation Wizard
Posts: 3502
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

OnEvent Time/Date Release (Implemented 03/14/2014)

Post by JRL » Tue Feb 04, 2014 8:55 pm

It would be nice if there was a way to turn off or preferably reset OnEvent>Time and OnEvent Date. As far as I can tell they both continuously call the defined subroutine until the minute or the day has passed.

I've tried providing a new date or time parameter. And I've tried using nothing as a parameter and neither seems to defeat the original setting. I don't know what else to try.

Code: Select all

Hour>hh
Min>mn

Day>dd
Month>mm
Year>ccyy

//OnEvent>Time,%hh%%mn%,,mess
OnEvent>Date,%ccyy%%mm%%dd%,,mess

Label>Loop
  Wait>0.01
Goto>Loop

SRT>mess
  OnEvent>Date,,,mess
  MDL>
END>mess

OldGeek
Junior Coder
Posts: 25
Joined: Thu Oct 30, 2014 11:49 am
Location: Upstate NY, USA

Re: OnEvent Time/Date Release

Post by OldGeek » Tue May 16, 2023 11:59 am

I know this is a VERY OLD post but in case someone is looking or as a beginner. I don't understand his question but here is my reply (it could be way wrong)

// Enable Event - VK_ESCAPE (27) [ESC] key
OnEvent>KEY_DOWN,VK27,0,Done
Label>Start
' many code lines here
Exit>

Label>Reset
//Disable the event handler by leaving off the last parameter
OnEvent>KEY_DOWN,VK_ESCAPE,0,
//Then add in a new OnEvent if needed
GoTo Start

Please correct me if needed
MS v15 | Windows 11 Pro | NY, USA

User avatar
JRL
Automation Wizard
Posts: 3502
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: OnEvent Time/Date Release

Post by JRL » Tue May 16, 2023 5:38 pm

From: https://help.mjtnet.com/article/222-version-history
Version 14.2 03/11/2014
- Added: Ability to cancel OnEvent within event sub (specify full line minus subroutine name)
Enhancement suggestions will work. This one only took a month to implement. Took me 9.2 years to say thank you.

Thank you OldGeel for pointing it out.

Dick

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1360
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: OnEvent Time/Date Release (Implemented 03/14/2014)

Post by Dorian (MJT support) » Tue May 16, 2023 6:09 pm

:D
Yes, we have a Custom Scripting Service. Message me or go here

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