Hello Guest it is March 28, 2024, 01:10:32 PM

Author Topic: write wizard syntax error.  (Read 5728 times)

0 Members and 1 Guest are viewing this topic.

write wizard syntax error.
« on: July 05, 2007, 08:41:08 PM »
when I try to input character, a syntax error occur... :-[
how to solve it?? ??? ???
my MACH3 is Version R2.0.081
Re: write wizard syntax error.
« Reply #1 on: July 09, 2007, 09:19:20 PM »
What line is the trouble in the wizard?
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: write wizard syntax error.
« Reply #2 on: July 09, 2007, 10:15:13 PM »
when I input any character, the syntax error will appear here VB script.

========================================================
Texto=""
Letra1 = Array ("1","2","3","4","5","6","7","8","9","0")
Letra2 = Array ("Q","W","E","R","T","Y","U","I","O","P")
Letra3 = Array ("A","S","D","F","G","H","J","K","L","?)        <====less a "??
Letra4 = Array ("Z","X","C","V","B","N","M","+","-"," ")
Letra5 = Array ("q", "w","e","r","t","y","u","i","o","p")
Letra6 = Array ("a","s","d","f","g","h","j","k","l","?)            <====less a "??
Letra7 = Array ("z","x","c","v","b","n","m",",",".","?")
Letra8 = Array ("?,"/","\","=","_",":",";","$","&&","(")        <====less a "??
Letra9 = Array (")","""","%","*","?,"?,">","<","I")             <====I am not too sure...

Total = GetVar(1500) + 1
Call SetVar(1500 + Total, 1)
If Total > 57 Then Total = 57
Call SetVar(1500, Total)
For J = 1 To Total
  Clave = GetVar(1500 + J)
  Select Case Clave
    Case  1,2,3,4,5,6,7,8,9,10
      Letra = Letra1(Clave-1)
    Case  11,12,13,14,15,16,17,18,19,20
      Letra = Letra2(Clave-11)
    Case  21,22,23,24,25,26,27,28,29,30
      Letra = Letra3(Clave-21)
    Case  31,32,33,34,35,36,37,38,39,40
      Letra = Letra4(Clave-31)
    Case  41,42,43,44,45,46,47,48,49,50
      Letra = Letra5(Clave-41)
    Case  51,52,53,54,55,56,57,58,59,60
      Letra = Letra6(Clave-51)
    Case  61,62,63,64,65,66,67,68,69,70
      Letra = Letra7(Clave-61)
    Case  71,72,73,74,75,76,77,78,79,80
      Letra = Letra8(Clave-71)
    Case  Else
      Letra = Letra9(Clave-81)
  End Select
  Texto = Texto & Letra
Next
Call SetUserLabel(1, Texto)
======================================================
I chaged all correctly, but this error will occur again when I restart mach3 again!
Re: write wizard syntax error.
« Reply #3 on: July 09, 2007, 10:23:02 PM »
You need to open the Macro and edit it, You can't edit and save if it pops up in the ERRROR window... there is no path to save the data too :(

That should do it!

Thanks
Brian
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: write wizard syntax error.
« Reply #4 on: July 10, 2007, 08:56:03 PM »
Thanks Brian,  :)
but how to do it?? I am not too sure...coz I am quite new  :-[
could you teach me how to open the Macro?

thanks again.
Re: write wizard syntax error.
« Reply #5 on: July 10, 2007, 10:24:32 PM »
I will watch for answer as well i also have a multitude of problems with the same program. I cannot change anything in the first screen such as depth of cut,ht of z axis and when i load the code the z axis always shows 0. also no way to center the start of program so i don't run out of travel on the x axis, and also the Y.

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: write wizard syntax error.
« Reply #6 on: July 10, 2007, 10:32:18 PM »
Open Mach, go to the tab at the top, operator, vb script editor. I think this is what you need.

Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: write wizard syntax error.
« Reply #7 on: July 11, 2007, 08:22:20 PM »
Open Mach, go to the tab at the top, operator, vb script editor. I think this is what you need.

Brett

Yes, Brett. I know how to do that. By the way, what file I need to open and edit in VB script editor?? coz I don't see any script file in the wirte wizard folder, ie C:\Mach3\Addons\Write. I am not too sure that I can edit a .set (screen) file in the VB script editor... ??? I had opened the write.set file by using the mach3 screen editor, all the buttons code had been modiflied also. The input was not problem already, but other problems would come out!! :-[?Brett, could to tell me what file I shuold open and edit in VB script editor??


You need to open the Macro and edit it, You can't edit and save if it pops up in the ERRROR window... there is no path to save the data too :(

That should do it!

Thanks
Brian


Brian, the "Macro" that you mentioned is it VB script editor???

Thanks for you all alot......;)
Re: write wizard syntax error.
« Reply #8 on: July 12, 2007, 09:54:21 PM »
Yes A macro and the screen buttons use the same editor but you call them in a different way... if it was a macro that you would like to edit you would use the Operator/VB Script Editor, But if you need to edit a button on the screen you would use the Operator/Edit Button Script. when you are editing a button you select the button that you would like to edit (it should be flashing) make the changes that you need to make and go to View/Save Current Layout.

That should do it

thanks
Brian
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com