Search found 122 matches

by Cerberus
09 Apr 2019, 19:14
Forum: Ask For Help
Topic: Stand-alone syntax validator?
Replies: 13
Views: 796

Re: Stand-alone syntax validator?

I did not read the thread correctly. I was running the OP without problem. When I run your code, I get the same unexpected result of ¾ ? é ? Û . I have no idea what is causing this problem. I tried encoding with: UTF-16 Big Endian, UTF-16 Little Endian, UTF-8 with BOM, and UTF-8. All the encoding o...
by Cerberus
09 Apr 2019, 08:40
Forum: Ask For Help
Topic: Stand-alone syntax validator?
Replies: 13
Views: 796

Re: Stand-alone syntax validator?

may I ask what this means in ahk (in your opinion) : ¾ ž é ō Û Hubert It means nothing; it's just a test for Unicode characters. I am using this in a linter: when you type text in an editor, it automatically shows you errors. The problem is that it won't show the error correctly if there are certai...
by Cerberus
08 Apr 2019, 21:15
Forum: Ask For Help
Topic: Stand-alone syntax validator?
Replies: 13
Views: 796

Re: Stand-alone syntax validator?

I ran on AHK v1.1.30.01 U64 with Windows 10 Home. USA system with no international stuff going on. It ran fine with the expected error identificaion. FG Thanks for testing! Gosh, how odd. The second message box gives ¾ ? é ? Û for me. My system is set to American English, using the American standar...
by Cerberus
08 Apr 2019, 19:11
Forum: Ask For Help
Topic: Stand-alone syntax validator?
Replies: 13
Views: 796

Re: Stand-alone syntax validator?

I am running AHK v1.1.30.01 U32. Hey, thanks for testing! So you got yet another error! Now we have two completely different outputs, yours and mine, but both incorrect. Did the first message box display the correct symbols for you? You're running 32-bit Autohotkey; I'm running 64-bit. We're runnin...
by Cerberus
08 Apr 2019, 15:10
Forum: Ask For Help
Topic: Stand-alone syntax validator?
Replies: 13
Views: 796

Re: Stand-alone syntax validator?

If you use /ErrorStdOut, any load-time error that occurs will be written to StdErr. If you use /iLib, the script won't be executed even if there are no errors. ... /iLib normally creates a file listing any stdlib auto-includes that your script uses. Using nul prevents this. ( nul is a feature of th...
by Cerberus
07 Apr 2019, 20:11
Forum: Editors
Topic: Sublime Text Resources - [plugins, lang files, etc.]
Replies: 17
Views: 16229

Re: Sublime Text Resources - [plugins, lang files, etc.]

Inserio wrote:
29 Jul 2018, 14:54
...
I imagine that could be written better but I know nothing about python coding and just adapted stuff from elsewhere until something worked.
Thanks for the tip! Added.
by Cerberus
07 Apr 2019, 09:18
Forum: Ask For Help
Topic: [Making an AHK linter, encoding issue] Unicode characters like € are shown as â?¬ : convert them back somehow?
Replies: 8
Views: 281

Re: [Making an AHK linter, encoding issue] Unicode characters like € are shown as â?¬ : convert them back somehow?

You can see here that the UTF-8 bytes for the euro symbol contain a comma, so you could end up with a comma there, and hence an extra argument for FileAppend, if you save the script as UTF-8 with no BOM. ... Another consideration is whether the script you're running that contains the FileAppend lin...
by Cerberus
06 Apr 2019, 23:16
Forum: Ask For Help
Topic: [Making an AHK linter, encoding issue] Unicode characters like € are shown as â?¬ : convert them back somehow?
Replies: 8
Views: 281

Re: [Making an AHK linter, encoding issue] Unicode characters like € are shown as â?¬ : convert them back somehow?

Maybe you need to save the files as UTF-8 with BOM. Or UTF-16 with BOM. Thanks for your advice; I think saving as UTF-8 with BOM may have helped somewhat. I get most Unicode characters correctly now, using your script to decode the gibberish. But I think there is a different issue here. This minima...
by Cerberus
02 Apr 2019, 00:15
Forum: AHK Studio
Topic: MS Visual Studio / AHK Studio - for AHK-script
Replies: 7
Views: 1073

Re: MS Visual Studio / AHK Studio - for AHK-script

VS Code is intuitive and easy to use. It has significantly less startup time and uses less resources than most other IDEs I have worked with. (Its about 300MB) It provides a lot of plugins that are easy to find and navigate and often offers one plugin per language that can be seen as standard. This...
by Cerberus
28 Mar 2019, 15:24
Forum: Ask For Help
Topic: [Making an AHK linter, encoding issue] Unicode characters like € are shown as â?¬ : convert them back somehow?
Replies: 8
Views: 281

Re: [Making an AHK linter, encoding issue] Unicode characters like € are shown as â?¬ : convert them back somehow?

jeeswg wrote:
28 Mar 2019, 00:56
I get this for the euro symbol: €, not �.
Oh, dear. I hadn't noticed. So the problem is even worse than I thought, and it cannot be easily solved by back-conversion. I wonder what I could do.
by Cerberus
28 Mar 2019, 00:51
Forum: Ask For Help
Topic: [Making an AHK linter, encoding issue] Unicode characters like € are shown as â?¬ : convert them back somehow?
Replies: 8
Views: 281

Re: [Making an AHK linter, encoding issue] Unicode characters like € are shown as â?¬ : convert them back somehow?

You can use StrPut to convert UTF-8 bytes to Unicode characters. Cheers. ü ä ö ... getCorrectedStringUAOSS - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=44955&p=203507#p203507 Thank you for your help! But I'm afraid it didn't work. I've added your functions to the bottom ...
by Cerberus
27 Mar 2019, 23:53
Forum: Ask For Help
Topic: [Making an AHK linter, encoding issue] Unicode characters like € are shown as â?¬ : convert them back somehow?
Replies: 8
Views: 281

[Making an AHK linter, encoding issue] Unicode characters like € are shown as â?¬ : convert them back somehow?

I'm writing a code linter for Autohotkey, which is a programme that automatically marks errors in your code. Demonstration in Sublime Text: AHKLint_Demonstration.gif My linter uses, amongst other sources, the error messages that the Autohotkey compiler (I think?) itself puts out. Everything works pe...
by Cerberus
22 Mar 2019, 10:49
Forum: Ask For Help
Topic: Adaptable functions
Replies: 7
Views: 239

Re: Adaptable functions

Using If statements in functions the way you do is a normal way to approach the issue. The If s will have a negligible effect on performance, unless you're adding millions of them. Based on my testing, it takes about 1 millisecond to do maybe three thousand If tests against a simple variable, on my ...
by Cerberus
22 Mar 2019, 09:58
Forum: Scripts and Functions
Topic: SystemProcessInformation
Replies: 2
Views: 180

Re: SystemProcessInformation

Impressive. This will be quite useful.
by Cerberus
18 Mar 2019, 21:25
Forum: Editors
Topic: Visual studio Vs Sublime Vs Scite. Fight!
Replies: 9
Views: 1142

Re: Visual studio Vs Sublime Vs Scite. Fight!

Sublime Text is very touchy when it comes to the syntax highlighting and overall work put into just using it. Hey, now I'm curious: what did you mean by this remark, exactly? I've tried to make some improvements to the syntax highlighting myself as well, such as marking the stuff after Msgbox as a ...
by Cerberus
18 Mar 2019, 20:32
Forum: Scripts and Functions
Topic: [SCRIPT] Rebind LWin to APPSKEY with win shortcut pass through
Replies: 1
Views: 196

Re: [SCRIPT] Rebind LWin to APPSKEY with win shortcut pass through

Congratulations on your first script! This could be useful for people in a similar situation.
by Cerberus
17 Mar 2019, 22:00
Forum: Scripts and Functions
Topic: [Function] FFToolTip: Flicker-Free ToolTip
Replies: 15
Views: 839

Re: [Function] FFToolTip: Flicker-Free ToolTip

This looks interesting, I'll try it when next I use tooltips!

P.S. Even after so many years, I continue to be astounded by how courteous and helpful everyone is at the Autohotkey fora.
by Cerberus
17 Mar 2019, 21:40
Forum: Scripts and Functions
Topic: [GAME] REGEX FROGGER
Replies: 11
Views: 1108

Re: [GAME] REGEX FROGGER

Highly impressive. I was hungry for a bug but couldn't find any.
by Cerberus
17 Mar 2019, 21:33
Forum: Scripts and Functions
Topic: My first script, open 2 windows same time
Replies: 1
Views: 245

Re: My first script, open 2 windows same time

Looks effective for a first script. Do keep going!
by Cerberus
17 Mar 2019, 21:30
Forum: Scripts and Functions
Topic: ToggleWindows10DefaultAppMode()
Replies: 2
Views: 243

Re: ToggleWindows10DefaultAppMode()

Looks interesting; what does this do, exactly, in laymen's terms? I am frequently annoyed by the way Windows 10 handles choosing what programme to open which files with, so I would be interested in any options in this regard.

Go to advanced search