Ideas for new features & functions
Moderators: JRL, Dorian (MJT support)
-
JRL
- Automation Wizard
- Posts: 3529
- Joined: Mon Jan 10, 2005 6:22 pm
- Location: Iowa
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: 30
- Joined: Thu Oct 30, 2014 11:49 am
- Location: Upstate NY, USA
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
-
JRL
- Automation Wizard
- Posts: 3529
- Joined: Mon Jan 10, 2005 6:22 pm
- Location: Iowa
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