UCCNC argument for title

Here is where you can request new features or special features.

UCCNC argument for title

Postby Fabien » Sun Feb 09, 2020 10:15 am

Hello,
Is that possible to add a command argument to set UCCNC windows title (useful with multiple instances of UCCNC)
Fabien
 
Posts: 8
Joined: Fri Jun 21, 2019 8:04 am

Re: UCCNC argument for title

Postby dezsoe » Mon Feb 10, 2020 10:32 am

Hello Fabien,

I use this macro as a macroloop with autostart to show the version, profile name, controller type and the opened file name in the title:

title.png
title.png (3.61 KiB) Viewed 4582 times

Code: Select all
// ================================================================================================
// System Info v1.1
// ================================================================================================

string header = "UCCNC - ";
string version = AS3.Getfield(902);
string profile = AS3.Getfield(900);
string device = AS3.Getfield(907);
string filename = exec.Getgcodefilename(); // AS3.Getfield(895);

profile = profile.Replace(":", ": ");

if (filename == "-") filename = "";

header += version + " - " + profile + " - " + device + " - File: " + filename;

if (++counter == 20)
{
  counter = 0;
  if (exec.mainform.Text != header)
    exec.mainform.Text = header;
}

// ================================================================================================

#Events

// ================================================================================================

int counter = 0;

// ================================================================================================
dezsoe
 
Posts: 1037
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: UCCNC argument for title

Postby Robertspark » Mon Feb 10, 2020 10:57 am

nice macro :D
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2110, Neuron Lite
UCCNC v1.2110 Macro Manual
Robertspark
 
Posts: 1566
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England


Return to Feature Request

Who is online

Users browsing this forum: No registered users and 1 guest