I understand and appreciate the idea, but it doesn't solve it. It's not just about finding a word. It turns out that when generating a variable, I am forced to go through 300 entries looking one by one. And even if you know approximately where the text is, it's still a lot of work, since several names are very similar in the dictionary.workaround: you write the entrys in a file and use the search function there.
do you mean to sort or to filter dictionary/array?I understand and appreciate the idea, but it doesn't solve it. It's not just about finding a word. It turns out that when generating a variable, I am forced to go through 300 entries looking one by one. And even if you know approximately where the text is, it's still a lot of work, since several names are very similar in the dictionary.
remembering that a dictionary is made up of key and value. A file does not
I am not going. I just need to read the screen and assign values to keys, but they constantly change positions, which forces me to do it this way.do you mean to sort or to filter dictionary/array?
I'll take a look at this, thanksI guess you could run iterate dictionary/array action to show iterator's value and/or iterator's key when iterator's key = key you are looking for. Still not the best but at least macro will find it for you![]()
ok, the problem is that you aren't able to work with the dictonary and not only to find a value. the idea is that you use a dict., find a key, change the value and use the value to execute.I understand and appreciate the idea, but it doesn't solve it. It's not just about finding a word. It turns out that when generating a variable, I am forced to go through 300 entries looking one by one. And even if you know approximately where the text is, it's still a lot of work, since several names are very similar in the dictionary.
remembering that a dictionary is made up of key and value. A file does not
In case you didn't manage to create macro I suggested I created it for you.
It asks you what key are you looking for and then it finds its value, shows it in pop up message or you can find it in local variables at the bottom if you need to copy it.
Note that what you wrote in prompt has to matches the key. You could change compare value action so it was contains instead = for exemple but if you have multiple keys that contain the word it will only show the last one. That would require remaking the macro so it was creating another array with results. There might be macros like that in templates/somewhere here on forum.
Remember to configure iterate action to change it for your array/dictionary
Edit. When setting up actions instead looking for a key on the list you can just use define manually and write the key there in correct format
I understood what you explained. But my question still remains: why use 9 lines of programming when I can only use 2, simply add a find button?
I read the screen, generate 228 entries and manually choose a variable that has the find button inside it.
I think it would be an extremely interesting and useful role
But don't worry, the macro in question was created and working 100% before I even posted the first topic. The suggestion was for future reference
Thank you to everyone who collaborated. This shows a strong and united community. I love macrodroid and all its members