Hello Guest it is April 18, 2024, 04:17:08 AM

Author Topic: Associate script to button while running code  (Read 6679 times)

0 Members and 1 Guest are viewing this topic.

Re: Associate script to button while running code
« Reply #10 on: April 02, 2013, 12:16:29 PM »
Tks for the tip Stirling.

At least no more wasting time.

So if i stick to button scripts, how do i get around the issue (or that it seems to be for me) that DoButton(3) stops the script execution so the instructions after that do not run?

Regards


Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Associate script to button while running code
« Reply #11 on: April 02, 2013, 01:14:10 PM »
GUYS it is working fine here ????  I just created a function based on the same thing you needed and used the same Macro code to stop and tested it.

What version are you running ???

(;-) TP

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Associate script to button while running code
« Reply #12 on: April 02, 2013, 01:33:44 PM »
OK i have run it in Ver.042.022 AND .067 It works fine here.

(;-) TP

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Associate script to button while running code
« Reply #13 on: April 03, 2013, 05:08:57 AM »
@Terry - It depends on what you mean by "it" and "working".

if you go back to your post Reply #7, then....

If there is currently NO movement in progress then...

if you execute your M1001 from a button, from the MDI, from the CB editor or from a trigger then it executes as you would expect i.e. IMMEDIATELY.

HOWEVER - If there IS currently movement in progress then...

if you execute your M1001 from a button, from the MDI, from the CB editor then again it executes as you would expect i.e. IMMEDIATELY.

HOWEVER IT DOES NOT EXECUTE IMMEDIATELY from a trigger - IT WAITS UNTIL MOVEMENT has stopped and THEN EXECUTES.

This is on 43.22 but I've tested it from 43.66 back to 42.18 and it's the same. Well it is here anyway - if a macro executes from a trigger immediately on your system WHILE movement is in progress then you have (AFAIK) the only system out there where triggers work FULLY and PROPERLY.

Ian