Search found 19 matches

by jj4156
04 Feb 2024, 07:44
Forum: Editors
Topic: Scraping documentation for syntax definitions
Replies: 3
Views: 2327

Re: Scraping documentation for syntax definitions

This snippet scrapes the member of class. Instead of using IE which will execute javascript, htmlfile merely load html and everthing will remain the same. I think it is helpful. ; class infomation is put into a Map `objects` for item, uri in objects { html := FileRead('docs\' RegExReplace(uri, '#.*'...
by jj4156
20 Jan 2023, 13:26
Forum: Editors
Topic: Scraping documentation for syntax definitions
Replies: 3
Views: 2327

Re: Scraping documentation for syntax definitions

I think I have done a some part of this job. For the convenience of my own extension of vs code (focus on v1 for now, and plan to shift to v2), I collected most of v1 functions and command from the forum builtin.ts . It is basically a big json in a typescript file. And another file may be helpful. L...
by jj4156
01 Aug 2021, 08:36
Forum: Scripts and Functions (v1)
Topic: [Library] cJson.ahk (version 0.4.1 pre-release)
Replies: 66
Views: 20582

Re: [Library] cJson.ahk (version 0.2.0 pre-release)

Very cool script, impressive. But, why not load mcode at load-time by something like 'static __init := _init()' ? I think it will make libs easier to use.
by jj4156
25 Jul 2021, 06:47
Forum: General Discussion
Topic: Do you need a syntax parser based v1 language server
Replies: 0
Views: 1918

Do you need a syntax parser based v1 language server

Hi, I am developing an extension for autohotkey v1 support named Autohotkey Simple Support. I am going into writing parser for ahk, after finished almost all language features that regex can do and studied some knowledge of compiler. Now, I have an problem that v2 is on beta and v1 supporting may be...
by jj4156
06 May 2021, 13:01
Forum: KeySharp
Topic: Keysharp - the resurrection of IronAHK
Replies: 216
Views: 97615

Re: Keysharp - the resurrection of IronAHK

@jj4156 I am not sure what you mean by print. Do you mean something to write to the console? So in C++, it's printf() or cout, and in C# it's Console.WriteLine(). Something like that? I didn't know that AHK didn't have that. Are you sure? If ti doesn't, then yes, we can add it in Keysharp. In AHK, ...
by jj4156
06 May 2021, 12:55
Forum: KeySharp
Topic: Keysharp - the resurrection of IronAHK
Replies: 216
Views: 97615

Re: Keysharp - the resurrection of IronAHK

@jj4156 I am not sure what you mean by print. Do you mean something to write to the console? So in C++, it's printf() or cout, and in C# it's Console.WriteLine(). Something like that? I didn't know that AHK didn't have that. Are you sure? If ti doesn't, then yes, we can add it in Keysharp. @letacio...
by jj4156
21 Apr 2021, 15:12
Forum: KeySharp
Topic: Keysharp - the resurrection of IronAHK
Replies: 216
Views: 97615

Re: Keysharp - the resurrection of IronAHK

Is it possible to add a print function to keysharp? We will run Keysharp in linux and command line is prettey important in linux. Autohotkey is more like combination of an application and a program language, so ahk may never add print. But, keysharp, I thought, is a program language that is most one...
by jj4156
28 Mar 2021, 22:39
Forum: General Discussion
Topic: LSP for AutoHotkey
Replies: 2
Views: 3189

Re: LSP for AutoHotkey

There were some kind of LSP for AutoHotkey already. But, they are not as perfect as you wished.
For v1, check this Helsmy's github link.
For v2, check this thqby's gitee link.
by jj4156
12 Mar 2021, 07:55
Forum: Ask for Help (v1)
Topic: Assigning Mouse Button as Modifier Key Topic is solved
Replies: 3
Views: 1158

Re: Assigning Mouse Button as Modifier Key Topic is solved

'Key down' will switch 'key' to down statue and keep it. To switch key back, 'Key up' is needed to send after 'Key down'.
by jj4156
22 Dec 2020, 01:12
Forum: AutoHotkey Development
Topic: [WISH] formatted string literals
Replies: 4
Views: 2442

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 (v1)
Topic: [Class] AEE-simple event emitter
Replies: 0
Views: 456

[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 (v1)
Topic: [Fuction] Something interesting, fake enumerated type
Replies: 4
Views: 1176

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 (v1)
Topic: [Fuction] Something interesting, fake enumerated type
Replies: 4
Views: 1176

[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 Development
Topic: [WISH] formatted string literals
Replies: 4
Views: 2442

[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 (v1)
Topic: How to asynchronously use stdio?
Replies: 0
Views: 312

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: Visual Studio Code
Topic: [Vscode Extension]AutoHotKey Debug Adapter
Replies: 6
Views: 5065

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: Visual Studio Code
Topic: [Vscode Extension]AutoHotKey Debug Adapter
Replies: 6
Views: 5065

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: Visual Studio Code
Topic: [Vscode Extension]AutoHotKey Debug Adapter
Replies: 6
Views: 5065

[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