Autohotkey questions

Is there anybody, who implements well the Autohotkey in LB?
I would like to read size information from a clipboard, open a file with proper size from art library.
Change texts based on clipboard information.
Fine position texts. (it needs to change the highlighted shape.
Offset the texts.
Weld shapes
Group shapes
Position to the laser head…etc
What is the capability of autohotkey?

Hi Peter,

I have never used automations that way, so I cannot comment and will let the mind hive to give their opinion.

However, have you tried to look at a LBRN file under a notepad or similar?
Some modifications you need might be possible - big might - by editing the core XML style format of the file.

Can be possible to do it.
I just want to reverse engineering the syntax.
I draw a minimal house number sign. A rectangle and 2 texts.
image

I found the width 250 and height 24 of the rectangle. Maybe the 125 and 12 is the middle point of that.
But in the text parameters I can’t find the position. String is OK, and height.
How can I generate the Vertlist again? I think this will be the a node points list, but If I change the text, it needs to be changed.
Would be helpful a little help in this.

In the file it looks like this:

1 0 0 1 125 12 1 0 0 1 11.032837 7.0361328 V42.131348 12.200195c0x1c1x1V40.234863 12.200195c0x1c1x1V38.043945 7.5615234c0x1c1x1V32.219238 7.5615234c0x1c1x1V30.014648 12.200195c0x1c1x1V28.166504 12.200195c0x1c1x1V34.813965 -2.2724609c0x1c1x1V35.40918 -2.2724609c0x1c1x1V18.549805 8.6152344c0x1c1x1V23.093262 -2.2724609c0x1c1x1V24.955566 -2.2724609c0x1c1x1V18.845703 12.200195c0x1c1x1V18.277344 12.200195c0x1c1x1V12.074707 -2.2724609c0x1c1x1V13.94043 -2.2724609c0x1c1x1V7.8813477 12.200195c0x1c1x1V-0.54638672 12.200195c0x1c1x1V-0.54638672 10.432617c0x1c1x1V6.074707 10.432617c0x1c1x1V6.074707 5.2861328c0x1c1x1V-0.54638672 5.2861328c0x1c1x1V-0.54638672 3.5185547c0x1c1x1V6.074707 3.5185547c0x1c1x1V6.074707 -0.50488281c0x1c1x1V-0.60498047 -0.50488281c0x1c1x1V-0.60498047 -2.2724609c0x1c1x1V7.8813477 -2.2724609c0x1c1x1V32.906738 5.8134766c0x1c1x1V37.328613 5.8134766c0x1c1x1V35.115723 1.0898438c0x1c1x1 L0 1L1 2L2 3L3 4L4 5L5 6L6 7L7 0L8 9L9 10L10 11L11 12L12 13L13 14L14 8L15 16L16 17L17 18L18 19L19 20L20 21L21 22L22 23L23 24L24 25L25 26L26 15L27 28L28 29L29 27 1 0 0 1 11.032837 7.0361328 1 0 0 1 14.683594 -74.979584 V58.912109 55.356934c0x1c1x1V17.134766 55.356934c0x1c1x1V17.134766 75.640137c0x1c1x1V5.9941406 75.640137c0x1c1x1V5.9941406 55.356934c0x1c1x1V-4.6015625 55.356934c0x1c1x1V-4.6015625 44.640137c0x1c1x1V5.9941406 44.640137c0x1c1x1V5.9941406 -16.27002c0x1c1x1V9.6630859 -16.27002c0x1c1x1V17.134766 44.640137c0x1c1x1V40.542969 44.640137c0x1c1x1V17.134766 10.245605c0x1c1x1 L0 1L1 2L2 3L3 4L4 5L5 6L6 7L7 8L8 9L9 0L10 11L11 12L12 10 1 0 0 1 14.683594 -74.979584

Before you go into the more complex route, couldn’t Variable text work for you as well?

The final goal will be a custom text (number and street name).
Aligned in good position. Left sides are aligned.
BUT after that I need to weld the outline,
Group the layers for easier positioning. This will be I think just a dream.

Good question which version is better?
csv based variable text, I need to fill the spreadsheet, load the csv file, use an array to see all the vectors. Bake the shape, THEN align, weld, group…

If I generate an XML file, there I also need to somehow create a list, maybe in xls. Then generate files with macro. Open it, align, weld, group…Not so quick

If I were trying to do something like what I believe you’re describing, I’d probably do it in the SVG space. It would be relatively trivial to generate an SVG from scratch with the text elements, a rectangle, and helpful groupings. If the SVG had things grouped and styled appropriately (i.e. colors), it should be pretty easy to drop it into an open LightBurn file with all the laser parameters set.

(Welding the big number to the rectangle and final positioning I’d do in LightBurn.)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.