Hello Guest it is April 28, 2024, 09:51:42 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 - FocusPaul

Pages: « 1 2 3 4 5
41
Mach4 General Discussion / Re: Mach 4 Feature Request
« on: May 07, 2014, 01:31:02 AM »
Feature request: Create a new G code file from the main menu (menu "File")

42
Mach4 General Discussion / Re: Mach 4 Feature Request
« on: May 07, 2014, 01:16:25 AM »
os.execute('start "Docs" "Notepad.exe C:\\Mach4Hobby\\Docs\\M4Manual.txt" ')

Try that.  You may need to provide the fill path to Notepad.  But that should not block the script.

Steve



Hiya Steve I found this roaming the web.  The process OPENs Notepad fine AND Mach4 still runs OK. But it will not allow you to open the Txt file on load. It keeps telling me windows cannot find it for some reason I do not understand. YET

strProgram = '"Notepad.exe"'
strCmd = 'start "" '..strProgram
os.execute(strCmd)

Following works on my system (W7x64):

Code: [Select]
os.execute('start "Docs" "Notepad.exe" "C:\\Mach4Hobby\\Docs\\M4Manual.txt" ')
Please note the different use of quotation marks: Notepad.exe and your text file cannot be in the same quotation mark sequence.

43
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 06, 2014, 02:07:11 AM »
HIYA Steve,  I noticed that when you cut and paste from the gcode editor it does not always hold the CUT in the buffer and when you leave the Editor to paste it somewhere else the paste is EMPTY. Quirk ?? or made that way ??

Changing the settings in the config does not take effect until "Reset" is pressed.  So look at the modes string to be sure what you think is in effect is actually in effect.  Or, you can code it in your program.

Steve


Some defect in wxWidgets implementation, as reported here:
http://trac.wxwidgets.org/ticket/10515
http://trac.wxwidgets.org/ticket/4687

There seems to be a fix for that. I can confirm, that it works ... at least in my Lua scripted Wizard:
http://osdir.com/ml/lib.wxwidgets.wxlua.user/2008-05/msg00008.html


... snip ...
Code: [Select]


function
onCloseEventOccurred(
        event)
    
    --exit frame, if it exists
    if mainframe then
        mainframe:Destroy()
        mainframe = nil
    end

    local clipBoard = wx.wxClipboard.Get()
    if clipBoard and clipBoard:Open() then
      clipBoard:SetData(wx.wxTextDataObject('hello world'))
      clipBoard:Flush()
      clipBoard:Close()
    end
end

function
main()

        mainframe = wx.wxFrame(
wx.NULL,                      -- no parent
                            wx.wxID_ANY,                -- whatever for wxWindow ID
                            "Example", -- frame caption
                            wx.wxDefaultPosition,         -- place the frame in default position
                            wx.wxSize(591, 578),
                            wx.wxDEFAULT_FRAME_STYLE)           -- use default frame styles

      ..

     mainframe:Connect(wx.wxEVT_CLOSE_WINDOW,onCloseEventOccurred)
end



44
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 05, 2014, 04:08:55 AM »
Lua wizards opened during Mach4 session will kept open when closing Mach4.

(this may be a bug or a nice-to-have feature)

45
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 05, 2014, 04:05:39 AM »
Recent File entries not working with long strings

Description:
When loading G code files with filename length > 80 characters, the file will load successfully. Clicking Recent File button later will fail, if full path and filename is longer than 80 characters, because path is stripped after 80th character.

46
Mach4 General Discussion / Re: Comments about Mach4 in Demo
« on: April 24, 2014, 02:01:44 AM »
About Box: Copyright 2001-1013
The early bird ... ;D

The new version looks very promising. I also like the whole concept of decoupling Mach4 core from UI. Well done!

Pages: « 1 2 3 4 5