Hello Guest it is April 26, 2024, 09:47:54 AM

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

111
Mach4 General Discussion / Re: Message Box with Cancel?
« on: February 10, 2018, 01:26:01 PM »
post the whole code you are using as I have tested what i posted and all works.

DazTheGas

112
Mach4 General Discussion / Re: Message Box with Cancel?
« on: February 10, 2018, 10:49:23 AM »
HAHAHAHA Once youve finished with the Lua Manual you can then move on to wxLua Manual  :o ;D :D ;)

DazTheGas

113
Mach4 General Discussion / Re: Message Box with Cancel?
« on: February 09, 2018, 02:52:37 PM »
Try using the repeat command like this

Code: [Select]
local inst = mc.mcGetInstance()
repeat
    local ActualTool = wx.wxGetNumberFromUser("What tool is in the turret?", "Tool # ","Current Tool", 1, 1, 6) -- Default, Min, Max.
until ActualTool ~= -1
--mc.mcToolSetCurrent(inst, ActualTool)
wx.wxMessageBox(tostring(ActualTool))

DazTheGas

114
Had a quick look today and spotted the small mistake MC_ON should be mc.MC_ON

mc.mcSoftLimitSetState(inst, mc.Z_AXIS, mc.MC_ON);
mc.mcSoftLimitSetState(inst, mc.Y_AXIS, mc.MC_ON);
mc.mcSoftLimitSetState(inst, mc.X_AXIS, mc.MC_ON);

DazTheGas

115
Heres a topic from the past that might help.

http://www.machsupport.com/forum/index.php/topic,33813.0.html

DazTheGas

116
Mach4 General Discussion / Re: M6 Doesn't work...
« on: February 07, 2018, 01:13:26 PM »
In the mach4 config/tools section, have you set this to T on M6 line is tool to use??

DazTheGas

117
Mach4 General Discussion / Re: How can I edit lua script?
« on: February 05, 2018, 05:33:28 PM »
There are several ways to stop the messagebox from showing, there is a checkbox on the dialog that when checked it will not show again. You can also edit you profiles machine.ini file too

[ToolChangeSettings]
ToolChangeMsgBox=0

DazTheGas

118
Mach4 General Discussion / Re: How can I edit lua script?
« on: February 05, 2018, 03:06:42 PM »
That piece of code is in the screen load script, go into the screen editor and highlight the uppermost part of the tree in top left and then in the window below select the events icon and you should find the screen load script.

DazTheGas

119
Mach4 General Discussion / Re: How can I edit lua script?
« on: February 05, 2018, 08:26:52 AM »
This should help a little

https://youtu.be/wlYsRPjdnig

DazTheGas

120
The only way I can answer that is if a workaround works safely then its ok.

DazTheGas