Custom trigger

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Semper
Junior Coder
Posts: 30
Joined: Mon Feb 25, 2008 3:28 pm

Custom trigger

Post by Semper » Tue Jul 09, 2013 2:41 pm

When using a debugger on any script, stepping through lines [F8], and then stopping it before end, after that all scripts that use a Custom trigger do not fire on event until i start them manually.

I recreated this with a script that show Messagemodal>Test
and assigning a custom trigger from help

Code: Select all

SRT>Trigger
 IfWindowOpen>Calculator
   Let>MACRO_RESULT=TRUE
 Else
   Let>MACRO_RESULT=FALSE
 Endif
END>Trigger
 
SRT>Reset
 IfWindowOpen>Calculator
   Let>MACRO_RESULT=FALSE
 Else
   Let>MACRO_RESULT=TRUE
 Endif
END>Reset
Then I opened any sample script, debug a few lines and stop the debug.
After opening Calculator, the trigger does not fire for Messagemodal>Test script.

Semper
Junior Coder
Posts: 30
Joined: Mon Feb 25, 2008 3:28 pm

Post by Semper » Sat Jul 13, 2013 4:04 pm

Marcus can you recreate this issue?

It's causing me problems at work because my major script uses custom trigger.

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

Post by Dorian (MJT support) » Wed Jul 17, 2013 8:53 pm

I just tried it in v14.0.10 and couldn't replicate it.

What version are you running?
Yes, we have a Custom Scripting Service. Message me or go here

Semper
Junior Coder
Posts: 30
Joined: Mon Feb 25, 2008 3:28 pm

Post by Semper » Fri Jul 19, 2013 8:37 am

14.0.11

I tried it my self again now.
First time the trigger fired as it should.
Next time, and 5 more times as i tried it, didn't.

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