Hello Guest it is May 15, 2024, 02:46:10 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Klaus1311

171
Machscreen Screen Designer / Re: Mach3screen
« on: May 01, 2013, 03:43:46 AM »
Hi David,

is Mach3Screen.exe in your Mach3 directory?

Klaus

172
Machscreen Screen Designer / Re: MachScreen scroll bar
« on: April 29, 2013, 12:23:25 PM »
Hi Kenneth,

I don't think this is a screen-set issue.

Klaus

173
Machscreen Screen Designer / Re: MachScreen scroll bar
« on: April 29, 2013, 10:45:49 AM »
Hi Kenneth,

what is your Format parameter of the DRO look like?


Klaus

174
Machscreen Screen Designer / Re: MachScreen releases
« on: April 23, 2013, 07:38:45 AM »
Hi MachScreen users,

from my homepage can the new version V1.57 of MachScreen being downloaded. I added a function "Collect Bitmaps". This function can "collect" all referenced bitmaps and bitmap buttons and moves them to a new directory it also changes the path inside of the screenset accordingly. This can be usefull, if someone wants to strip off all unused bitmaps. In the lower part of the dialog is a guidance text for every step to be taken.



Klaus

175
Machscreen Screen Designer / Re: Change background color of button
« on: April 21, 2013, 02:42:11 PM »
Hi

the only way to have different button colors is create are bitmap with your preferred color and use this in an image button.



Klaus

176
here is an example, of how you can switch on / off the camera window.
Add a button named Camera on
assign "Execute Basic Script"  with the following Content:
SetUserLed(1102,1)      (if LED number 1102 is used by another control, take an unused one)
Add another button named Camera Off
assign "Execute Basic Script"  with the following Content:
SetUserLed(1103,1)      (if LED number 1103 is used by another control, take an unused one)



In Mach3 goto Config -> Config Plugins       Enable WebCamPlugin-Version-V2.12
restart Mach3

goto Config -> Config Plugins -> CONFIG      check "Macro control on"
if you had to change the LED numbers, because they where used by other controls, you can assign the proper LED number in that Dialog



Klaus

177
Hi,

I can't speak about the "Video Window" plugin. My camera plugin can switch the camera window on / off with a SetLed command, which can be assigned to a button.




Klaus

178
General Mach Discussion / Re: Disable Sound
« on: April 09, 2013, 01:26:36 PM »
the file OldState will be created automatically.

Klaus

179
General Mach Discussion / Re: Disable Sound
« on: April 09, 2013, 12:53:46 PM »
Hi Kenneth,

it's hard to give you the correct code, since I don't know what function codes you have assigned to your controls. Please insert the following code into your code
  Open "C:\Mach3\OldState" For output As #1
  Write #1, "Inch"

  Open "C:\Mach3\OldState" For output As #1
  Write #1, "Metric"

  Close #1


as shown in the sample.


If Get userLED(1010) = 1 Then
  Set UserLabel(1, "Inch")
  Set UserLED(1012 , 1)
  Set UserLED(1010 , 0)
  Open "C:\Mach3\OldState" For output As #1
  Write #1, "Inch"
Else
  Set UserLabel(1, "Metric")
  Set UserLED(1012 , 0)
  Set UserLED(1010 , 1)
  Open "C:\Mach3\OldState" For output As #1
  Write #1, "Metric"
End If
Close #1



and use this code for your macro m1010.m1s:



Sub init_units
On Error GoTo file_not_found
Open "C:\Mach3\OldState" For Input As #1
Input #1, unit
Close #1

If (StrComp(unit, "Inch") = 0) Then
  setuserlabel(1, unit)
elseif (StrComp(unit, "Metric") = 0) Then
  setuserlabel(1, unit)
Else
  setuserlabel(1, "default")
End If
exit sub
file_not_found:
  setuserlabel(1, "default")
End Sub

please replace the label text "Default" by Inch or metric, what ever you need.



Klaus

180
General Mach Discussion / Re: Disable Sound
« on: April 09, 2013, 09:27:49 AM »
Hi Kenneth,

if you want to remember the last state, you could write the actual state into a file. Every time you start Mach3 you read the last state from the file and set your label accordingly. The reading could be done in the macro we named m1010.m1s.


Klaus