Launch LightBurn and Load Files into LightBurn using Command Line Interface

LightBurn has a fairly minimal command line interface through UDP commands to do things like launch the program and launch the program + load a file.

The attached file is Python, not text. LightBurnLoad.txt (674 Bytes)

All commands will send back “OK” if they received and handled. You can also send “PING” just to see if LightBurn is running. If it’s not, you won’t get an “OK”.

There’s also a small helper application with the Windows version of LightBurn that will take care of either running the app or passing a file to it, if that’s what you want it for.

Calling C:\Program Files\LightBurn\SendUDP.exe “” will load LightBurn with that file if it isn’t already running, or tell the running instance of it to load that file.

SendUDP returns a status of:

  • 0 if LightBurn was not running and was launched.
  • 1 if no file argument was given, but LightBurn was running already
  • 2 if LightBurn was running and was sent the filename to load

This was made to simplify writing export tools like the Corel macro.