Raw Mode in StringReplace

Get help with using AutoHotkey and its commands and hotkeys
Guill
Posts: 84
Joined: 09 Jun 2016, 22:00

Raw Mode in StringReplace

Post by Guill » 20 Nov 2017, 22:07

Hello,
I need to use StringReplace in in Raw mode in the following script:

I have lots of sustitutions I want to replace, and for which I create a hotkey in this way:

F11::
Send,
(
StringReplace, clipboard, clipboard, %clipboard%, all
)
Return
____________

And I want to use it in this way:
I copy in the clipboard what I want to replace (A) with the new text (B) in this form:

A, B

But because it includes hotkey symbols, and accents (´), AHK omits some symbols.

I would like for example, that

^#ç::; DEFAULT (A)

Be replaced by this

^#'::; ON (B)

But when using it in this way,

Code: Select all

StringReplace, clipboard, clipboard, ^#ç:: ; DEFAULT, ^#':: ; ON

The result is this:

Code: Select all

StringReplace, clipboard, clipboard, ::; DEFAULT, ::; ON


Any idea?

Return to “Ask For Help”