Hi,
Is it possible to create a custom button and switch a variable value between 2 values xhen I click on that button?
And if it's possible, can I display the current value in the button label?
Thank you
Hi,
Is it possible to create a custom button and switch a variable value between 2 values xhen I click on that button?
And if it's possible, can I display the current value in the button label?
Thank you
What are you aiming to do with the variable?
I have an entire toolbar with some custom buttons wich launch a vbscript with a DO variable like:
[quote]@set MyVar="val1"
D:\MyScript.vbs {$MyVar}[/quote]
MyVar is used in every button so I would like to be able to change its value just by clicking on a button
If you're calling vbscripts, I'd make the scripts use an environment variable (or maybe a file somewhere if it's easier) to store the variable, and the script (with different arguments) could toggle the variable itself.
Yes OK I can do that. But is there a way to create a Directory Opus internal variable and use it in many buttons?
Not really, since user defined variables only exist within their own buttons. Opus doesn't have user-defined global variables.
You could kludge it by tying things to some Opus setting that gets toggled on and off, but only if you can find a setting where you don't care which way round it is. That probably wouldn't work well.