The script, working as PhraseExpress

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
SashaChernykh
Posts: 32
Joined: 01 Sep 2016, 04:04
Contact:

The script, working as PhraseExpress

11 Sep 2016, 23:48

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.
User avatar
Blackholyman
Posts: 1293
Joined: 29 Sep 2013, 22:57
Location: Denmark
Contact:

Re: The script, working as PhraseExpress

12 Sep 2016, 01:23

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 »
Also check out:
Courses on AutoHotkey

My Autohotkey Blog
:dance:
SashaChernykh
Posts: 32
Joined: 01 Sep 2016, 04:04
Contact:

Re: The script, working as PhraseExpress

12 Sep 2016, 02:43

@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.
User avatar
Blackholyman
Posts: 1293
Joined: 29 Sep 2013, 22:57
Location: Denmark
Contact:

Re: The script, working as PhraseExpress

12 Sep 2016, 03:26

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::Саша изумительна!
Also check out:
Courses on AutoHotkey

My Autohotkey Blog
:dance:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], docterry, Google [Bot], Spawnova, Xeilous and 186 guests