Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

include backtick symbol in text expansion output


  • Please log in to reply
4 replies to this topic
cynflux
  • Members
  • 59 posts
  • Last active: Nov 02 2015 05:34 PM
  • Joined: 01 Jul 2014

Hello,

I am trying to include the backtick (`) symbol as part of text expansion output.

The following script does not work.

 

:SI:zcb::
clipboard =
( ltrim
```
%clipboard%
```
)
Send ^{v} 
Return 
 
It would like the output to be as follows:
 
```
(clipboard contents would go here)
```
 
How do I make the script treat the backtick (`) symbol as a regular character?
Thank you in advance.


Oldman
  • Members
  • 2475 posts
  • Last active: Feb 18 2015 04:57 PM
  • Joined: 01 Dec 2013

Here is.

:SI:zcb::
clipboard =
( ` LTrim Join`r`n
```
%clipboard%
```
)
Send ^{v} 
Return 

Si ton labeur est dur et que tes résultats sont minces, souviens toi du grand chêne qui avant n'était qu'un gland....comme toi ! (anonyme) ;)

L'art de lire, c'est l'art de penser avec un peu d'aide. (É. Faguet)

Windows 3.1. Collector's Edition.     (www.avaaz.org)


cynflux
  • Members
  • 59 posts
  • Last active: Nov 02 2015 05:34 PM
  • Joined: 01 Jul 2014

Thank you.

 

This also works:

:SI:zcb::
#EscapeChar \
clipboard = 
( ltrim
``` 
%clipboard% 
```
)
Send ^{v} 
Return 


cynflux
  • Members
  • 59 posts
  • Last active: Nov 02 2015 05:34 PM
  • Joined: 01 Jul 2014

Correction:

 

Changed

#EscapeChar \

to 

#EscapeChar Insert

 

#EscapeChar \ broke my URL text expansions.

 

I hardly ever use the {Insert} key.



cynflux
  • Members
  • 59 posts
  • Last active: Nov 02 2015 05:34 PM
  • Joined: 01 Jul 2014

Oddly enough, 

#EscapeChar Insert

broke my text expansions that included captial I.

 

Picked random symbol (þ) from Character Map application.

Now it does not interfere with any of my scripts/expansions.