Hello Guest it is April 29, 2024, 02:29:23 AM

Author Topic: noticed two problems with MACH4  (Read 270 times)

0 Members and 1 Guest are viewing this topic.

noticed two problems with MACH4
« on: July 15, 2023, 07:55:27 AM »
I have two computers:

Work computer with CNC machine:
Windows 10 x64, Integrated video card, Mach4 v5157, ESS v298

home laptop:
Windows 7 x64, integrated and optional graphics card, Mach4 v5157.

Settings and scripts on Mach4 are the same for both computers.

1) First problem:

In PLCScript,
this code
Code: [Select]
local ActiveWindowText , rc = scr.GetActiveWindowText()
mc.mcCntlLog(0, tostring(ActiveWindowText), "", -1 )

prints the name of the active window to the Log, and in Windows 7 this code works without problems.
But in Windows 10 it works with glitches. It looks like the scr.GetActiveWindowText function is not limiting the string length correctly, and writes after the correct text any rubbish. It would be nice if you fix this, or add a new function scr.GetActiveWindowTextLength()

2) Second problem:
On Mach4 on Windows 7, if you check the CheckBox "Use a frame to draw the tool path? (Restart required)"
then the ToolPath graphics window stops responding to the mouse wheel, that does not change the magnification.
On Windows 10, I don't remember if there is such a problem. If so, I'll write about it later.