how to escape curly braces / brackets

Here you are welcome to discuss items of general interest related to Push2Run
Post Reply
DeeEdx
Posts: 4
Joined: Sun Feb 06, 2022 3:49 am

how to escape curly braces / brackets

Post by DeeEdx »

I'm trying to receive a JSON from IFTTT but it seems P2R scrubs out all curly braces, including any content there may be in between an open and close bracket.
I see in the logs that P2R received the string correctly, but it just stops typing at the first curly bracket.
I went a little crazy trying to guess how to escape it but as you can see in the output P2R typed out, none of the characters I tried worked. ~ ! @ # $ % ^ '
Anyone got any idea how to get P2R to escape curly braces?

card:

Code: Select all

Descrption          : gym sign up test
ListenFor           : gym signup $
Open                : notepad
Parameters          :
StartIn             :
Admin               : False
StartingWindowState : 3
KeysToSend          : tap tap $
output:

Code: Select all

tap tap <>`\\\///''^^^###$$$@@@!!!~~~%%%
log:

Code: Select all

2022-03-17 19:46:07.438 - Incoming Pushbullet push ...
2022-03-17 19:46:07.440 - <Title>	My PC
2022-03-17 19:46:07.452 - <Body>	gym signup <{"WhoWhen":"Robert on Friday at", "Time":7}>`}\}\\}/}//}'}'}^}^^}#}##}$}$$}@}@@}!}!!}~}~~}%}%%}
2022-03-17 19:46:07.904 - Action completed successfully
In case you're curious, here's the IFTTT Message:

Code: Select all

gym signup <{"WhoWhen":"{{TextField}}", "Time":{{NumberField}}}>`}\}\\}/}//}'}'}^}^^}#}##}$}$$}@}@@}!}!!}~}~~}%}%%}
DeeEdx
Posts: 4
Joined: Sun Feb 06, 2022 3:49 am

Re: how to escape curly braces / brackets

Post by DeeEdx »

Also, just in case there isn't a way and Rob decides to make it doable.
I believe I'm noticing I can't get P2R to just type something out unless I have something in the Open field, in the card.
If I leave the Open field empty, P2R ignores the card as if I the ListenFor field didn't just perfectly match. :cry:
Which sounds like a bug to me.
Btw, sorry if this isn't the right forum again.
Last edited by DeeEdx on Thu Mar 17, 2022 11:20 pm, edited 1 time in total.
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: how to escape curly braces / brackets

Post by RobLatour »

in the keys to send field, try starting it off with

{TYPINGDELAY020}

i.e. in your example the keys to send field should look like this:

{TYPINGDELAY020}tap tap $

do you see anything being typed?

Also, the open field must have something in it or there is nothing for Push2Run to do with that card, so yes by design it will ignore it

you need the name of a program, or a file, or Desktop, or ActiveWindow, ... in the open field. For more info please see https://www.push2run.com/help/help_v4.3.0.0.html where it describes the uses of the 'Open' field.
DeeEdx
Posts: 4
Joined: Sun Feb 06, 2022 3:49 am

Re: how to escape curly braces / brackets

Post by DeeEdx »

No change. Output is still...

Code: Select all

tap tap <>`\\\///''^^^###$$$@@@!!!~~~%%%
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: how to escape curly braces / brackets

Post by RobLatour »

can you please send a copy of your session log to info@push2run.com so I can get a better idea of what's going on?
Post Reply