%new_val of textedit element doesn’t refresh well.

103 views
Skip to first unread message

Noel

unread,
Mar 15, 2017, 8:37:18 AM3/15/17
to Tasker
I’m making a textedit scene which updated based on text.

But %new_val sometimes can’t catch new text.

Collision handling is “abort new task”.

Because other settings make tasker crash by fast typing.

So, this is my solution.

First in the task,
Variable Set %stored_val to %new_val

And, last in the task,
Goto action number 1 (if %stored_val !~ %new_val)

but sometimes %new_val doesn't catch new character, so task is done.

How can I solve this?

Alexander Graetz

unread,
Mar 15, 2017, 8:48:17 AM3/15/17
to Tasker
Make a dedicated "save" button and use "Test Element" on the textedit-element.

To do things with "new_val" in realtime can lag a lot cause new_val changes with every new key entered.

Pent

unread,
Mar 15, 2017, 9:52:45 AM3/15/17
to Tasker
Hmm, maybe I could add a buffer (doesn't create an event until user has paused for
a small time) to handle fast typing, but some users might be relying on seeing every
single change individually. Will see if I can add a Buffer option (defaulted off) to the
Text Changed event without too much work.

Pent

Noel

unread,
Mar 15, 2017, 10:06:10 AM3/15/17
to Tasker
Oh, I'll waiting... Thanks!
Message has been deleted

Rich D

unread,
Mar 15, 2017, 10:16:47 AM3/15/17
to Tasker Google Groups Post

> Oh, I'll waiting... Thanks!

I had same issue a long while back. A work around I found to work with fast typing is - From the task linked to the 'text changed' option do a preform task with a return variable.  Then in the child task do a action / test element (of the text edit element) and the return that value the the parent.   And use the returned value instead is %new-val

Rich D

unread,
Mar 15, 2017, 10:28:37 AM3/15/17
to Tasker Google Groups Post

That would be a nice option for a long standing issue...

For those who want every individual character I think they could just test against %old_val to see if there is more then one character.  Thank goodness someone had the for site to include a %old_val variable. Now I might have a use for that one.... :)

Message has been deleted

Noel

unread,
Mar 15, 2017, 6:00:10 PM3/15/17
to Tasker
Oh, and more accurate %new_val please, if you can.
I think that is a fundamental problem.

If %new_val doesn't refresh well when buffer is on, that is same repetition.

Thanks! :)

Rich D

unread,
Mar 15, 2017, 6:16:55 PM3/15/17
to Tasker Google Groups Post

Oh, and more accurate %new_val please, if you can.
I think that is a fundamental problem.

If %new_val doesn't refresh well when buffer is on, that is same repetition.

Not sure what you are sayin there ?

Did you try the work around I posted? It fixed this issue for me. 

Noel

unread,
Mar 15, 2017, 6:21:45 PM3/15/17
to Tasker
Sorry, I posted to pent.

Is this reply post send alarm to you?

I can't anticipate it.

and I did test element function, it takes better results.
but takes a little more delay...hohoho :)

Thank you :)

Pent

unread,
Mar 16, 2017, 3:25:57 AM3/16/17
to Tasker
I put the buffering in, works quite well I think.

Whenever a new character is pressed initially, or after a significant delay, it goes through immediately,
so I hope it will be still compatible with most previous setups looking for a single keypress
even without a config option.

Pent

Rich D

unread,
Mar 16, 2017, 5:25:49 AM3/16/17
to Tasker Google Groups Post



I put the buffering in, works quite well I think.


That's great....  Thank you Pent......  :)

Reply all
Reply to author
Forward
0 new messages