[SOLVED] List of all global variables

Is there a way to create a macro that grabs all global macros visible in the variables pane and saves that list to the clipboard/variable/file?

I know I can go to the variables pane, select the first and last, and copy, but I was wondering if I can automate that?

The Variables is a collection, so you can do all sorts of stuff with it :).

-rob.

3 Likes

Works like a charm. Awesome!
I sometimes choose that option by accident instead of picking the Lines in Collection, but never explored what it was. I understand it now.
Thanks!

I was trying to filter out some variables, but it doesn't seem to be working.
I think when we use "Matches" or "Does Not Match", it's using RegEx, right?
And the pipe means OR, right?

image

It was working the way you shared, but this one is not.
Am I missing something here?

Ended up using the Search and Replace instead, because I wasn't able to make the IF THEN work. I wonder what the issue is...?
I'm pretty sure I used the pipe in IF THEN before, so I don't know what's going on now.

image

Yea, that should work. A simple two-variable test worked here:

You can see it skipped the first two vars:

image

Without seeing your macro in full, hard to say why it didn't work—it should.

-rob.

1 Like

Well, I don't know what happened, but I tried it again and it's working...
Go figure. I moved the macro to a different group and all that.
I guess sometimes KM acts weird. It's not the first time that something isn't working and without making any changes to the macro itself, it starts working. Go figure...

Thanks for testing