'Compatibility' in regards to Notepad++ and Notepad (Windows)

Discussion, questions and support.
Post Reply
User avatar
Oblomov
Posts: 99
Joined: Mar 4th, ’19, 19:44

Post by Oblomov » Jun 15th, ’20, 12:34

Hello,

I'm having a bit of a 'compatibility' issue, in regards to Notepad++ and Notepad (Windows), where when I put 'Notepad++' or 'ahk_class Notepad++' inside of the Window field of a command for Notepad++, the command reacts for both Notepad (Windows) and Notepad++.

Kind regards,
...
User avatar
Marko
Posts: 1186
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Jun 17th, ’20, 17:57

Special characters need to be escaped, try
Notepad\+\+
User avatar
Oblomov
Posts: 99
Joined: Mar 4th, ’19, 19:44

Post by Oblomov » Jun 18th, ’20, 15:44

Marko wrote:
Jun 17th, ’20, 17:57
Special characters need to be escaped, try
Notepad\+\+
Why of course! Thanks for pointing this out
User avatar
Oblomov
Posts: 99
Joined: Mar 4th, ’19, 19:44

Post by Oblomov » Jun 18th, ’20, 20:54

Marko wrote:
Jun 17th, ’20, 17:57
Special characters need to be escaped, try
Notepad\+\+
Using this opportunity, could I perhaps also ask how one would go about pasting a special character, for a text-expanding command?

I'm having trouble with:

Code: Select all

Sendraw, Send, {LButton}
Which upon execution, it only pastes 'Send, LButton', without the curly brackets

However when applying backslashes as done earlier:

Code: Select all

Sendraw, Send, {\LButton\}
I still get 'Send, LButton' + it executes some other, smaller command, along with it

EDIT: actually, it seems that all curly brackets of within my text expanders, are no longer pasting (Send raw text checked)
User avatar
Marko
Posts: 1186
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Jun 19th, ’20, 14:14

Both examples give the same result: {Text}

Type: Send with Send raw text option enabled

Code: Select all

{Text}
Type: Command

Code: Select all

SendRaw, {Text}
User avatar
Oblomov
Posts: 99
Joined: Mar 4th, ’19, 19:44

Post by Oblomov » Jun 19th, ’20, 16:04

Marko wrote:
Jun 19th, ’20, 14:14
Both examples give the same result: {Text}

Type: Send with Send raw text option enabled

Code: Select all

{Text}
Type: Command

Code: Select all

SendRaw, {Text}
Thanks. But yeah, today it seems that things went back to normal, for some reason (i.e. after I resumed the PC from sleep today), which is pretty anomalous I guess
Post Reply