Having trouble following the logic in your post but I have a made a file browser that works quickly. Here is what i found along the way.
1. Any array or even large variable functions should always be done on a local array or variable, it is much faster to convert to a local then back to a global if necessary than perform these functions on a global array or variable.
2. Always try to use the comma separated variable instead of a array for your menu in the scene.
So I would recommend starting with list files / %fbrowser and do every thing you can in the one task if possible then at the end set the set the global variable for your menu with a file variable join /,/
Hope this helps, Rich..
> Hmm are we talking about the same kind of menu in a scene?
Yes..
Because the Menu scene element doesn't have a source option for comma separated values as I can see,
Just select -variable- under -source-
and the source cannot be a local variable.
Correct
What slows this down is populating and repopulating the menu element.
Yup... I was having trouble with speed and the menus not updating when the array was set and when I changed to a comma separated variable all my troubles went away.. ( The variable join is very fast even with large arrays but again be sure to use local variables until yo need to set the global variable for the menu....)
" Try it you'll like it...." :)
Rich...
Oops, I just check and at the end I do not use a variable join I use..
Variable set %Globalmenuevariable to %arr(:)
Rich....
On Oct 21, 2012 5:04 PM, "Cptnodegard" <andreas...@gmail.com> wrote:
>
> I get you now, that does work much faster, thank you! What system do you use for moving between folders?
I will have to get back to you on that one. I had it set up to move between folders and it was working fine then I changed the entire thing and only use one folder now. But I think my original work is here some place.
>
> Also, is single selection in menu working for you? It isn't for me.
Yes.. I saw your other post. I have mine set to single and use the tap option and go from there.. do you use the tap option??
>
> Yep I use the tap option, but when I use single selection it doesn't populate %select_indices
>
I only use the %tap_label. I am a little short on time now but I will test the %select_indices for you later and get back to you...
Rich...
Been there... done that... :)
> I "feared" that my todo list was now way too complicated because I was under the impression that %select_indices is everything. I've been matching the %select_indices numbers (plus one since they don't both start at 0) to array element numbers, essentially getting the label by matching the index number to the element number. "Luckily" my todo list system is quite different than a file browser, so that method is actually better I think. I store my todo list items in a text file and an array, and delete items by allowing multiple selections in the menu, then using the numbers from %select_indices to simply Variable Pop stuff out of the array.
>
Hmmmm, It sounds like a good way to go if there is no speed issues. I have not used the multi select on the menu yet but I would assume I would get a comma separated variable from %tap_label then with the new and improved variable search and replace about to hit the floor(which of course was not available when you wrote your profile) I think you could use that for the delete items. I believe that if you can find a way to process data with a comma separated variable using variable split, join,search and replace it is faster than using an array even if it means more actions to accomplish it.. Just my humble opinion ...
>
> As for speed, Rich's help made a folder refresh in the file browser drop from 30 seconds to about 2 on large folders. Decently fast device too, galaxy s ii
>
Pent, I believe there is a bug When updating a scene menu With an array.
It is extremely slow and %tap_label will not always get updated when the array is set. I'm not sure if you saw this post.
Rich...
Pent, I just wanted to bump this up to make sure you saw this additional bug with scene / menu while your fixing the %select_indices
Thanks, Rich..
Great... thanks for the reply and speed tips.. I haven't had a chance to get the beta but will give it a test drive soon....
> Your speedup trick is doing wonders for my todo list, rich, which I find myself redoing once again. V2 vs V3 alpha:
> http://www.youtube.com/watch?v=8IT0H8m3dQ4
Looks nice... :)
I also came up with a work around for the lagging text edit box and was going to post it on your other thread but forgot.. it is here
Although this might not be necessary any more, I think pent did some tinkering with the text edit box on the new beta. I am going to take out my work around and test it when I get a chance...
Rich..
Lol..... I just realized you were the other poster on that thread.... sorry...
Rich...
>
> Thanks. This is V3, V1 lacked features and was very slow, V2 was slow.
Great news on the text edit box it looks like Pent fixed her good... :)
I took out my work around And now it's quicker and better than ever.
I can type as fast as I want And the 'Text Changed' option get every character... thank you very much Pent....... :)
> V1-3 wasn't referring to Tasker, but to my todo list. I never had typing speed issues
Ah yes, sorry for posting off topic.. guess I got a little exited. It was more of a fyi because you had said in your other post you had a work around for the text edit box and I noticed you referenced a issue with the text edit box it in your guide as well..
Rich...
:) I would definitely recommend more sleep then ... actually after more testing I think i need to take it out of "fixed her good" category and put it in "a definite improvement " category .. some times it is very responsive but other times it is still lagging however before any qued up text was lost but now no matter how much text gets qued it seems to get it all..
Rich..