Hello Guest it is December 21, 2024, 06:55:52 AM

Author Topic: Disable Sound  (Read 21415 times)

0 Members and 1 Guest are viewing this topic.

Re: Disable Sound
« Reply #40 on: April 09, 2013, 02:08:25 PM »
cool...
i have all that but getting error "file\path access error"
so i'm assuming i don't have the file in the correct folder.
Kenneth
Re: Disable Sound
« Reply #41 on: April 09, 2013, 02:24:07 PM »
oh...btw.
it did make the folder
Kenneth

Offline BR549

*
  •  6,965 6,965
Re: Disable Sound
« Reply #42 on: April 09, 2013, 02:25:26 PM »
Kenneth you do realize that none of the modal values are persistant on shutdown/startup.

Just a thought, (;-) TP
Re: Disable Sound
« Reply #43 on: April 09, 2013, 02:29:10 PM »
ok......so it's NOT possible to have the label show last state
on shut down and start up ?   ok, Thanks

i'll move on
Kenneth

Offline BR549

*
  •  6,965 6,965
Re: Disable Sound
« Reply #44 on: April 09, 2013, 02:44:22 PM »
NOW it is possible to SET the values you want on Startup ,You do that in the initialization string as Klaus suggested.

(;-) TP
Re: Disable Sound
« Reply #45 on: April 09, 2013, 02:48:04 PM »
think that's what he's trying to get me to understand.
having a "LONG" Monday !
Thanks TP
« Last Edit: April 09, 2013, 02:49:46 PM by Kenneth »
Kenneth

Offline BR549

*
  •  6,965 6,965
Re: Disable Sound
« Reply #46 on: April 09, 2013, 07:42:54 PM »
Not a problem We can go at it as long as you need to help you understand. Can you explain what it is that you want to do . Simple terms (;-)

(;-) TP
Re: Disable Sound
« Reply #47 on: April 10, 2013, 05:40:22 AM »
in the pic i have user dro(1010). below standard button then the userlabel1.
the button has the below script. i type a number in the dro and click convert.
the label then changes to Inch or Metric. just a simple inch/metric converter.
when i close mach3 and later open, the userlabel1 is not shown. i would like it to
show the last state it was in when i last close mach3.

If GetUserDRO(1010) And GetUserLED(1012) = 0 Then
SetUserLabel(1,"Inch")
SetUserLED(1012,0)
Else
SetUserLabel(1,"Metric")
SetUserLED(1012,1)
End If
End   
Kenneth
Re: Disable Sound
« Reply #48 on: April 10, 2013, 05:56:50 AM »
the above gives that error.had to go back to what i had.
this is the code...

If GetUserLED(1012) Then
SetUserDRO(1010 , GetUserDRO(1010) / 25.400)
SetUserLabel(1,"Inch")  'displays Inch
SetUserLED(1012,0)
Else
SetUserDRO(1010 , GetUserDRO(1010) * 25.400)
SetUserLabel(1,"Metric")   'displays Metric
SetUserLED(1012,1)
End If
Kenneth