Hello Guest it is April 25, 2024, 08:10:21 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 - DazTheGas

481
Mach4 General Discussion / Re: Writing to machine.ini
« on: May 27, 2016, 01:34:15 PM »
The state of your button is getting written to the machine.ini on clicking it with the code you had earlier, thats all you need.

DazTheGas

482
Mach4 General Discussion / Re: Map Lua Code to ShuttlePro button
« on: May 27, 2016, 10:17:46 AM »
Just tested on 3 different versions of mach4

Gcode1=m3 at end of the ShuttlePro0 section works fine on all.

if you still have problems go into the help menu and use  support/ package current profile,  then upload the .m4prof file, I will see if theres anything causing the problem.

DazTheGas

483
Mach4 General Discussion / Re: Writing to machine.ini
« on: May 27, 2016, 09:57:36 AM »
Beet me to it but this works too.

Code: [Select]
local inst = mc.mcGetInstance()
val = scr.GetProperty('togCheck1', 'Button State')
mc.mcProfileWriteString(inst, "Preferences", "togCheck1", tostring(val))


DazTheGas

484
Mach4 General Discussion / Re: Writing to machine.ini
« on: May 27, 2016, 09:45:19 AM »
You are not actually writing to the file, you are writing to internal registers, the last thing mach does before closing is to write these registers to the machine.ini

DazTheGas

485
Mach4 General Discussion / Re: Writing to machine.ini
« on: May 27, 2016, 03:13:01 AM »
have you tried tostring(val)

Im away from a computer so cant check myself.

DazTheGas

486
Mach4 General Discussion / Re: Stretching Images
« on: May 27, 2016, 02:44:07 AM »
Another quick way is to make your screen editor screen the same size as the normal screen, this stops the sizers from sizing when exiting the editor.

DazTheGas

487
Mach4 General Discussion / Re: Stretching Images
« on: May 27, 2016, 02:41:54 AM »
There is a way but just not had time to go indepth with a vidieo yet, its done by using a panel and a wxstaticbitmap command, hopefully I will sort weekend.

DazTheGas

488
Mach4 General Discussion / Re: tool path is not displaying
« on: May 26, 2016, 02:15:20 PM »
open your file in a txt editor and change to N180 (0.5INCH END MILL)

DazTheGas

489
Mach4 Videos / Re: Mach4 Quicky #3 Using wxTimer
« on: May 26, 2016, 04:35:32 AM »
There seems to be a bug somewhere, not sure where? as you can see from the video I dont get an error when running. but an error does exist if I run in script debug mode?

If you do get an error then change the first line to TimerPanel = wx.wxPanel (wx.NULL, wx.wxID_ANY, wx.wxDefaultPosition, wx.wxSize( 500,300 )) - Thanks Brett for the fix.


DazTheGas

490
Mach4 General Discussion / Re: tool path is not displaying
« on: May 26, 2016, 03:40:10 AM »
Double Click with mouse on the gcode window, this will bring up line numbers.

DazTheGas