StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Roland  
#1 Posted : Wednesday, June 26, 2019 2:30:36 AM(UTC)
Roland

Rank: Member

Reputation:

Groups: Translators, Approved
Joined: 11/7/2018(UTC)
Posts: 12
Germany

Thanks: 1 times
In a text extension (is that the english name? I just have the german UI) I'd like to replace a short text with a longer one.

Examples:
ch -> Cheers,
br -> Best regards,

After some of these texts I'd like a newline and I just enter one - but that doesn't seem to work that simple.
- in Outlook I get a newline PLUS a little "?" in a box.
- in Evernote, Firefox there's no trace of the newline.
- Notepad++ works fine

Is there a better way to get a newline?

Rob  
#2 Posted : Wednesday, June 26, 2019 7:44:51 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 208
United States

Thanks: 4 times
Was thanked: 39 time(s) in 32 post(s)
So it's called "Text Expansion", since that's what it's doing, though I'm not sure if the previous German translator converted that correctly..?

Anyway, yes something is odd about sending newline sequences. I don't know exactly where the issue is, but it seems to be somewhere in the InputSimulator since I can see "\r\n" in the string about to be sent.

Either way, I've changed my code to split the string on newline sequences and send them in a loop, using SendKeys("~") to send the enter key after each line (except for the last line, of course).

That seems to be working for me. I was able to reproduce your inconsistencies, then confirm they work as expected after the code change, so it should be fine now in version 0.3.1.8.
Roland  
#3 Posted : Thursday, June 27, 2019 1:16:57 AM(UTC)
Roland

Rank: Member

Reputation:

Groups: Translators, Approved
Joined: 11/7/2018(UTC)
Posts: 12
Germany

Thanks: 1 times
The problem is fixed in 0.3.1.8
Thank you :)

BTW: The german translation is correct. The word "Erweiterung" stands for both expansion and extension.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.