Hi,
Just got the following working:
text = getTextById("com.p1.chompsms:id/new_message_field");
text=replace(text, '“', '"');
setText2ById("com.p1.chompsms:id/new_message_field", text);
Normally I want the character " for scripting, in the case above typing SMS.
If the character “ appears, it should be replaced with ", hope you see the little difference.
It works with chomp SMS because I got the text id.
Could this be done global as well?
Package with *
Getting the textfield id which has focus, replacing the character and writing the new value back?
Thanks a lot,
UI text input char replace
Moderator: Martin
UI text input char replace
"You cannot know the meaning of your life until you are connected to the power that created you.”
Shri Mataji Nirmala Devi, founder of Sahaja Yoga
Shri Mataji Nirmala Devi, founder of Sahaja Yoga
Re: UI text input char replace
Hi,
You could try to get this working with trigger UI Event and Event Type Text changed.
I think there are some examples in the flow sharing forum that used this feature to replace some abbreviations to the longer form while typing.
Regards,
Martin
You could try to get this working with trigger UI Event and Event Type Text changed.
I think there are some examples in the flow sharing forum that used this feature to replace some abbreviations to the longer form while typing.
Regards,
Martin
Re: UI text input char replace
Hi Martin,
I found the flow text expansion and will have a deeper look at it,
Wie immer Danke
LG
I found the flow text expansion and will have a deeper look at it,
Wie immer Danke

LG
"You cannot know the meaning of your life until you are connected to the power that created you.”
Shri Mataji Nirmala Devi, founder of Sahaja Yoga
Shri Mataji Nirmala Devi, founder of Sahaja Yoga