Author Topic: Button not working with script  (Read 2680 times)

0 Members and 1 Guest are viewing this topic.

Offline Katoh

  • Active Member
  • Posts: 271
    • View Profile
Button not working with script
« on: January 20, 2009, 05:50:46 AM »
Good evening to all.
I have a little dilemma I just cant resolve.
Using screen4 I altered the original (programme run screen) buy adding One button on the bottom called Tool Zero.
Buy using the VB script editor I wrote a script that has a small macro that allows for tool zeroing. through the editor the macro works well. I have saved it under macros as file M301 No probs there. In the MDI screen I can manually type M301 in the input and the macro runs no hassles.
My trouble is here I cant assign the Macro to the button I put in to the screen. I only get a Script er Compile Error.
Ive read through other posts to no avail.
Any Thoughts
Katoh
Cheers
Katoh

Offline Greolt

  • Active Member
  • Posts: 956
    • View Profile
Re: Button not working with script
« Reply #1 on: January 20, 2009, 06:02:48 AM »
Did you use the following as the button script?

Code "M301"

Offline Katoh

  • Active Member
  • Posts: 271
    • View Profile
Re: Button not working with script
« Reply #2 on: January 20, 2009, 06:31:48 AM »
Thanks
Thats all it was.
Cheers
Katoh

Offline Greolt

  • Active Member
  • Posts: 956
    • View Profile
Re: Button not working with script
« Reply #3 on: January 20, 2009, 07:59:03 AM »
You're welcome.   :)