replaces doesnt with doesn’t

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
gyro2222
Posts: 15
Joined: 06 Sep 2017, 11:12

replaces doesnt with doesn’t

Post by gyro2222 » 12 Dec 2020, 12:16

this just started today.
I looked through the script and there is nothing like this in there. when I suspend the script it doesn't happen.
any suggestions? I'm using us -English keyboard only and as I said it only happens when AHK is running
Thanks,
Hal

gregster
Posts: 9114
Joined: 30 Sep 2013, 06:48

Re: replaces doesnt with doesn’t

Post by gregster » 12 Dec 2020, 12:55

Sounds like an encoding issue. Make sure that you save your script in UTF-8 with BOM encoding.
https://www.autohotkey.com/docs/FAQ.htm#nonascii

But if you are using AHK v2, UTF-8 (without BOM) might work as well, if I understand the docs correctly.

Edit:
Or are you saying, you don't have any hostring in your script that would try to replace the string doesnt ? That would be strange.
At least it sounds like you are using some kind of autocorrect script.
But without seeing your code, I don't know how to reproduce that... you should also clarify which AHK version you are using.

Calling ListLines after the problem occurs, or selecting the "View->Lines most recently executed" menu item in the script's main window (double-click the script's systray icon to show it, or click Show in its context menu), can also help to pinpoint which code (and linenumber) actually gets executed when doesnt gets replaced.

Post Reply

Return to “Ask for Help (v2)”