Page 1 of 1

The script, working as PhraseExpress

Posted: 11 Sep 2016, 23:48
by SashaChernykh
Hello. Is there a ready AutoHotkey scripts that work as program PhraseExpress? PhraseExpress program paid and free version users creates big problems.

What features are necessary for me.
  1. Automatically insert text after I write a certain phrase, for example, I'm writing /Sasha, and inserted Sasha is amazing. Example:
Image

I use many programs, but they either paid or not supported Cyrillic symbols.
  • 2. Insert characters by pressing hotkeys. For example, I wrote Win+, insert symbol «, Win+]
    → insert symbol ». Example:
Image

You could show working examples of scripts for my case?

Thanks.

Re: The script, working as PhraseExpress

Posted: 12 Sep 2016, 01:23
by Blackholyman
In AutoHotkey it's build-in and called a hotstring and hotkey(s)

Hotstring Example:

Code: Select all

:*:/Sasha::Sasha is amazing
Hotkey example:

Code: Select all

#,::send «
#]::send »

Re: The script, working as PhraseExpress

Posted: 12 Sep 2016, 02:43
by SashaChernykh
@Blackholyman, thank you very much! But I have 2 problems.

1. Encoding

Code:

Code: Select all

:*:/Amazing::Саша изумительна!
Result:

Code: Select all

Саша изумительна
This code not working with Cyrillic symbols.

2. Unsuccessful display some characters

Code1:

Code: Select all

#]::send »
Result in Sublime Text Build 3114:

Code: Select all

В»
Result in Firefox 48.0.2 (for example, when I wrote this message) — nothing.

Code2:

Code: Select all

#n::send Sasha Princess!
Result:

Code: Select all

 Sasha Princess
No exclamation point.

Thanks.

Re: The script, working as PhraseExpress

Posted: 12 Sep 2016, 03:26
by Blackholyman
you will need the unicode version of AutoHotkey, and you need to save your .ahk files with BOM

for the exclamation make you can use the raw option

Code: Select all

:R*:/Amazing::Саша изумительна!