Hello Guest it is April 25, 2024, 07:48:07 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 - SwiftyJ

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 »
51
Mach4 General Discussion / Re: Menu Bar
« on: June 05, 2022, 08:55:16 AM »
Go into the properties of the shortcut on your desktop and add /m the Target

e.g. C:\Mach4Hobby\Mach4GUI.exe /p Mach4Mill /m

52
Mach4 General Discussion / Re: Mach4 bug - or by design????
« on: June 04, 2022, 07:26:46 AM »
If the Jog DRO is edited it should update the jog speed. It's just that the default code in the 'On Modify Script' is preventing this from happening. I believe there were some changes internally to do with how the On Modify/On Update scripts work and capturing the changed value but the code in the On Modify Script was not updated inline with these changes.

The code in the script can be modified as to what I posted above, or removed completely (not even commented out, you have to delete it). If you remove it you'll just lose the persistent functionality after restarting Mach.

EDIT: looks like even if you remove it, the persistent functionality remains... so it can just be removed completely.

53
Mach4 General Discussion / Re: Mach4 bug - or by design????
« on: June 03, 2022, 07:06:21 AM »
The default mach screens have some code in the 'On Modify Script'. Replace it with the following:

Code: [Select]
local inst = mc.mcGetInstance()
local val = select(1,...)
mc.mcProfileWriteString(inst, "PersistentDROs", "droJogRate", string.format(val))
return val

54
In the properties of the button there is 'Enabled States'. Just select 'Idle' and the button will only be enabled when the state is idle

55
You can use wx.wxMessageBox

It can be customised to suit.

wx.wxMessageBox("Main text", "title text", wx.wxYES_NO)     --Message box with Yes/No
wx.wxMessageBox("Main text", "title text", wx.wxOK + wx.wxCANCEL)    --Message box with Ok/Cancel 

You can also change the icon using wx.wxICON_INFORMATION, wx.wxICON_ERROR, wx.wxICON_WARNING, wx.wxICON_NONE

For example
wx.wxMessageBox("Main text", "title text", wx.wxYES_NO + wx.wxICON_ERROR)

When the user presses one of the button on the dialog it returns what they pressed

rc = wx.wxMessageBox("Main text", "title text", wx.wxYES_NO)
if (rc == wx.wxYES) then             --If dialog had Ok or Cancel you would used wx.wxOK or wx.wxCANCEL here depending on what you wanted to do
      --user pressed Yes
else
      --user pressed no or closed the dialog
end

56
You can put the following in your screen load script, or in the PLC script in the first run section at the bottom

scr.EnableButtonHover(false)

57
Do you need to upgrade to 4809?

According to the ESS plugin changelog there is plugin version 280 compiled against Mach4 build 4809 but it has a note saying it should not be used.

https://warp9td.com/files/Plugins/ESS/Mach4/_ChangeLog.txt

So I think for now stick with what works.

58
This is not default Mach4 behaviour as far as I'm aware. Best thing to do is package your profile (go to Help > Support > Package Current Profile..) and then upload it here

59
Mach4 General Discussion / Re: mach4 video screen element
« on: May 08, 2022, 02:43:13 PM »
When you're in the screen editor you can just go to Screen>Manage Images when you want to add new images

60
Mach4 General Discussion / Re: Screen element overlay control
« on: May 08, 2022, 04:18:07 AM »
Unfortunately it is not possible to overlay screen controls on top of each other. You can hide/unhide controls if you want to swap the visibility of two controls that are on top of each other, but you can't have both at the same time and be functional

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 »