Search found 10 matches

by jj4156
22 Dec 2020, 01:12
Forum: AutoHotkey v2 Development
Topic: [WISH] formatted string literals
Replies: 4
Views: 707

Re: [WISH] formatted string literals

In my opinion template literals in ECMAScript is the best. Variables are enclosed in left and right brackets like ${var}, making the string much more readable than %% Since %% is already used as deref symbol in ahk in some situtations, I think %% deref where it could be used can make ahk more consi...
by jj4156
19 Dec 2020, 11:14
Forum: Scripts and Functions
Topic: [Class] AEE-simple event emitter
Replies: 0
Views: 172

[Class] AEE-simple event emitter

A poor coded, barely tested, crude minimal event emitter framework. Simple Example: #Persistent ; Ensure script keeps running until our timmer is fired #include <AEE> Hello(words) { Msgbox, % "Hello " words "!" ; we need exit script by ourselves, ; when use #Persistent ExitApp } emitter := new AEEmi...
by jj4156
30 Nov 2020, 11:08
Forum: Scripts and Functions
Topic: [Fuction] Something interesting, fake enumerated type
Replies: 4
Views: 636

Re: [Fuction] Something interesting, fake enumerated type

kczx3 wrote:
25 Nov 2020, 11:57
Why not return the array? Why use ByRef?
Because I want it to be something that likes a defination. ByRef makes it liking a defination of type enum class.
by jj4156
21 Nov 2020, 13:10
Forum: Scripts and Functions
Topic: [Fuction] Something interesting, fake enumerated type
Replies: 4
Views: 636

[Fuction] Something interesting, fake enumerated type

A very simple fake typescript-style enum. enum(byref name, items*) { local name := {} for index, item in items --index, name[name[index . ""] := item] := index+0 } Example: enum( Boolean , "false" , "true" , "unknown") ; Generate an associative array named Boolean: {"false": 0, "true": 1, "unknown":...
by jj4156
10 Sep 2020, 09:34
Forum: AutoHotkey v2 Development
Topic: [WISH] formatted string literals
Replies: 4
Views: 707

[WISH] formatted string literals

While it's easy to done somehow by Implicit connection or continuation section in v1. But, something like f-string in python maybe more easier to use. And %% deref in continuation section may be a good way for ahk formatted string literals. Suggestion Example var := 123 ; single line string := f"som...
by jj4156
20 Aug 2020, 08:50
Forum: Ask For Help
Topic: How to asynchronously use stdio?
Replies: 0
Views: 63

How to asynchronously use stdio?

I found it may be possible by iocp in this win32-impossible-to-use-iocp-with-stdin-handle . If AllocConsole first, it seems no problem. But, my script works like a server which communicates with other program , in here node.js, through stdio. So, stdio is already connect to node.js. I even can not c...
by jj4156
15 Apr 2020, 21:13
Forum: Editors
Topic: [Vscode Extension]AutoHotKey Debug Adapter
Replies: 6
Views: 1525

Re: [Vscode Extension]AutoHotKey Debug Adapter

swagfag wrote:
15 Apr 2020, 13:07
hitting breakpoints works, but it cant show object contents(expanded down arrow does nothing)
Getting object contents needs another inspection. I hadn't finish it yet, but it will be fixed soon.
by jj4156
15 Apr 2020, 21:04
Forum: Editors
Topic: [Vscode Extension]AutoHotKey Debug Adapter
Replies: 6
Views: 1525

Re: [Vscode Extension]AutoHotKey Debug Adapter

Thanks for posting this. You may want to post it in the Editors sub-forum , where you’ll find other support for VS Code as well (including a recent extension that includes a debugger). I search for debugger but no solution for it. Then I make it. And for moving this post to Editors sub-forum, what ...
by jj4156
15 Apr 2020, 09:42
Forum: Editors
Topic: [Vscode Extension]AutoHotKey Debug Adapter
Replies: 6
Views: 1525

[Vscode Extension]AutoHotKey Debug Adapter

I love coding in vscode. Scite4AutoHotKey is a little bit lacking of elegant. There are some of extensions of highlight, but debugger absents. So, I make this, a AutoHotKey debug adapter written by AutoHotKey. Not bad, isn't it? :dance: Get it from here: Download or install from vscode extension mar...

Go to advanced search