Help with variables please

I have tried to google to see if anybody else had similar ideas. I have checked the excellent documentation but i either could not find any help or i did not understand or notice what i was looking for.

For my zettle system, i would like to implement a different numbering system for the beginning of file name. A file name beginning with zz196- is lot easier for me than one consisting of year month day and time.

So what i would like to do is to be able to type ,yy and to set the beginning of the filename as yy1-
The next time i type ,yy i would have yy2-, and the next time - yy3-
I have managed to get this to work within Typinator ( zz{{zz=#zz+1}}{{zz}}- )

But what i would like to do is to use keyboard maestro for all of my snippets and expansions

Bonus points would be to be able to set a starting point.

Hi tuloc

The macros below should do the trick.
The first is for setting the start-number.
The other for doing the expansion.

They should be pretty self explanatory.

Set yy-start number Macro (v9.0)

Set yy-start number.kmmacros (1.7 KB)

yy-number textexpansion Macro (v9.0)

yy-number textexpansion.kmmacros (1.6 KB)

For the set value macro, I'd do something like this which allows you to set the number inline using capital Y's instead of lowercase ones:

yy Set Variable.kmmacros (1.9 KB)