My problem is that the ButtonCommand=[!SetClip "#Var1#[\x0D]#Var2#"] copies the predefined value and not the changed value of Var1 & Var2. Please be noob friendly with me
Ok, so in the Command line change !SetVariable to !WriteKeyValue? That did copied the user entered text to the clipboard but it also changed the predefined variable which doesn't help in my situation. Thanks tho!
balala wrote: ↑May 19th, 2021, 9:52 am
Add a DynamicVariables=1 option to the [CopyButton] meter.
Bro, no lie, I did as you suggested in this thread but it was confusing to me. I can't believe all I needed was DynamicVariables=1 to the button meter. I feel dumb. Anyways, thank you good sir!
Also, I want to thank you for this
balala wrote: ↑May 22nd, 2020, 8:09 am
Something like this: [!SetClip "#Mystring#[\x09]#Mystring#"]. Note the [\x09] character variable between the two #MyString# variables, which is the character for TAB.
I googled [\x09] and found out it was hex for tab. So I looked up hex for the new line, or enter, or return or whatever you call it, and applied to my case scenario
PacBreezy wrote: ↑May 19th, 2021, 3:24 pm
Ok, so in the Command line change !SetVariable to !WriteKeyValue? That did copied the user entered text to the clipboard but it also changed the predefined variable which doesn't help in my situation. Thanks tho!
Yes, because death.crafter replaced your !SetVariable bangs with !WriteKeyValue, which permanently and phisically rewrites the variables.
PacBreezy wrote: ↑May 19th, 2021, 3:24 pm
Bro, no lie, I did as you suggested in this thread but it was confusing to me. I can't believe all I needed was DynamicVariables=1 to the button meter. I feel dumb. Anyways, thank you good sir!
No, no, don't feel dumb at all. The !SetVariable bang sets the variable, but the DynamicVariables=1 option is needed in the measure or meter where you want to use the variable. without it the measure or meter uses the original, phisically set value. This has happend in your case and this is why you can't use a variable set with !SetVariable in, for instance, the [Rainmeter] section, this section not accepting the dynamic variables.
PacBreezy wrote: ↑May 19th, 2021, 3:24 pm
Also, I want to thank you for this
I googled [\x09] and found out it was hex for tab. So I looked up hex for the new line, or enter, or return or whatever you call it, and applied to my case scenario