Snurre
Well-known member
Got it allDoes it mean you also got the other mentioned macros?
I downloaded this morningDid you download the newest versions I uploaded yesterday
I'll try to play around a bit, to see what happens
Take care
Got it allDoes it mean you also got the other mentioned macros?
I downloaded this morningDid you download the newest versions I uploaded yesterday
It's a drama!Got it all
@MacroDroidDev I know you are really busy but we discover something very strange and awkward (you could read our last posts here from this one)......Anyway there's something very strange I'm discovering: the global dictionary ProtectedVARs contains some of my old test variables. Does it mean it came with the macros when you downloaded them?
Sorry, I forgot you also need 2 other functions (Action blocks): fβΏVerCheck (to check minimum MD version required depending on features used) and RemVARs (to physically remove key variables, which is not yet possible even manually).Does it mean you also got the other mentioned macros? You only should have the macro UpdtVARs and the Action block GetVAR. Nothing else! The other ones were copies while testing the main ones (as you probably understood) and the BOOL boolean variable doesn't exist anymore.
I think there's a problem with exporting Action blocks...
Did you download the newest versions I uploaded yesterday. As I have a doubt, I wanted to upload them now but something goes wrong: both uploads fail today!
Anyway I just improved them a bit yesterday, adding a new functionality, but didn't change the logic that should work correctly. I remember that when I was making my tests, MD sometimes crashed or gave me odd results (as yours). Without changing anything, I sometimes restarted my device (not only MD) and then everything was clean...
When you have time to check (and, maybe, reboot your device) please tell me how it works.It's all here
Just rebooted, changed var to day(as you suggested), same resultWhen you have time to check (and, maybe, reboot your device) please tell me how it works.
I'm really sorry. I checked again and again on my side: deleted dictionary, keys, recreated everything and everything workedcand still workd as intended...Just rebooted, changed var to day(as you suggested), same result
Hurrah! It's obvious: you didn't use the UpdtVARs macro to create and update protected variables and the one you created was created manually! Its name is not in UPPERCASE so "Day" is not "reachable".Just rebooted, changed var to day(as you suggested), same result
You must not change your internal variable "nr" to "Day". It's just a suggestion to facilitate maintenance and readability or your macrosJust rebooted, changed var to day(as you suggested), same result
I've not got the time right now to test the macro's, but I don't know what's happeningLast but not least: I just realized that the update I made yesterday to the GetVAR Action block failed and the bug about unknown protected variables wasn't fixed.
At last it is ok now (July 14 @ 18:45 UTC): an unknown name will return and empty string and/or a value to 0.
Sorry again, but it was not really my own fault...
Never give up my friendIf you're fed up (as I am) with all these problems, of course you can give up.
Here we are! (hope so...)Never give up my friend
It's not in my genes
Strange, getting exactly the same as before, even after another rebootHere we are! (hope so...)
1- link to TSTGetVAR macro you should try first to check if it works (without changing anything) : just have a look to the content of the 3 local variables before and after running the macro ;
2- link to UpdtVARs macro you should try then to visualize the content of the test variables already stored. I suggest not to go further at this step (do not create, update or remove yet).
3- you should only get the 3 action blocks (light bue) + RemVARS and 2 macros (white) shown below:View attachment 3057View attachment 3056
(sorry I forgot to swap to English before screenshoting)
4- you should only get the global variable (dictionary) and nothing else with the content shown below:
View attachment 3058
View attachment 3059
Hope now everything will be ok for you.
Have a nice day.
Did you really delete all the previous garbage before downloading again?Strange, getting exactly the same as before, even after another reboot
Let's take a little break and try thinking about what's going on
In my opinion, I think it's something in the template store that f**k's up, don't know
I think the UpdtVARs macro is a bit more "tricky" than the GetVAR action block because it has many other functions (instead of simply retrieving a content/value). The GetVAR action block is very simple if you exclude the MD version check and the control of the presence of the empty global dictionary, at the beginning. I had to add these controls to distribute these modules and make sure they would work anywhere and anytime.Hey my friend
I have used some time to read (and understand ) your work
I think it got a little tricky, so I gone another way, inspired by it
I have made a global var (dictionary) named Constants, with all of these var's I'm using in different macro's
When I need to use them, I read the value of that specific one into a local var first and use that instead of the global one's
I know it don't make the global var read only but I think it's somehow safer and maybe prevents accidental faults, when using a copy, for me anyway
But thank you for taking the time to help me, you have done a great job, really appreciate that
Take care