Search found 1400 matches

by Chunjee
21 Mar 2024, 12:09
Forum: Ask for Help (v1)
Topic: confused about #include
Replies: 10
Views: 182

Re: confused about #include

just thinking out loud. It might look like: { "name": "Joe's Custom Plugin", "tasks": [ "pressOne", "functionClose()", "pressEsc" ], "hotkey": "w" } The downside is you have to code it twice in a way. Once to parse it and understand the input, then again to translate that input into hotkeys/actually...
by Chunjee
21 Mar 2024, 09:36
Forum: Ask for Help (v1)
Topic: confused about #include
Replies: 10
Views: 182

Re: confused about #include

If you are just remapping buttons that would be pretty easy as a txt file or ini


I prefer json however
by Chunjee
21 Mar 2024, 09:18
Forum: Ask for Help (v1)
Topic: confused about #include
Replies: 10
Views: 182

Re: confused about #include

If their changes can be described in configuration files like .json that could work. But very hard to describe code in configuration I imagine
by Chunjee
15 Mar 2024, 19:04
Forum: Ask for Help (v1)
Topic: fastest way to access variables?
Replies: 6
Views: 172

Re: fastest way to access variables?

if you use https://www.autohotkey.com/docs/v1/lib/SetBatchLines.htm
60 variables or array elements should be nothing in terms of speed.
by Chunjee
15 Mar 2024, 18:58
Forum: Ask for Help (v1)
Topic: fastest way to access variables?
Replies: 6
Views: 172

Re: fastest way to access variables?

objects/arrays are notoriously slow in ahk

so my guess would be variables slightly faster

Code: Select all

loop, 60000 {
	myVar := "hello world"
}
; => 0.019977 seconds

loop, 60000 {
	myObj.myProperty := "hello world"
}
; => 0.053313 seconds
this is not a super serious test
by Chunjee
11 Mar 2024, 16:15
Forum: Scripts and Functions (v1)
Topic: [Class] biga.ahk (166 utility methods)
Replies: 130
Views: 42397

Re: [Class] biga.ahk (166 utility methods)

v0.57.1 fixes: .at .depthOf .get .maxBy .slice .toLength .without previously: object := {"a": [{ "b": {"c": 3} }, 4]} A.at(object, ["a[1].b", "a[2]"]) ; => ["", 4] Now .get and .at can retrieve object (clones) not just values: object := {"a": [{ "b": {"c": 3} }, 4]} A.at(object, ["a[1].b", "a[2]"]) ...
by Chunjee
10 Mar 2024, 19:20
Forum: Ask for Help (v1)
Topic: Repeatedly search for an image.
Replies: 6
Views: 140

Re: Repeatedly search for an image.

For readability I prefer not to check errorlevel. Kinda confusing to check the absense of an error number, map that in your mind to success

Maybe I am just simple and can't keep track of as many !mappings as you
by Chunjee
10 Mar 2024, 19:17
Forum: Ask for Help (v1)
Topic: Repeatedly search for an image.
Replies: 6
Views: 140

Re: Repeatedly search for an image.

a timer could be cool
by Chunjee
07 Mar 2024, 14:59
Forum: Scripts and Functions (v1)
Topic: [Class] biga.ahk (166 utility methods)
Replies: 130
Views: 42397

Re: [Class] biga.ahk (166 utility methods)

Expecting about 100 or 200 more tests to be added as I am going through each method one by one and adding more.

I did find one bug so far; in .depthOf
by Chunjee
07 Mar 2024, 14:40
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 12
Views: 3154

Re: [Class] expect.ahk (rapid unit testing)

Github repo contains most fixes. Documentation has not been fixed yet.

I noticed a TAP 14 spec which this may not be following completely. I would like to get that looked at as well
by Chunjee
07 Mar 2024, 13:39
Forum: Scripts and Functions (v1)
Topic: HTH: A Transpiler for AutoHotKey v1 Code into JavaScript
Replies: 1
Views: 101

Re: HTH: A Transpiler for AutoHotKey v1 Code into JavaScript

I saw this on Discord. Very cool need to give it a try :thumbup:
by Chunjee
06 Mar 2024, 01:13
Forum: Ask for Help (v2)
Topic: Somewhat silly question about V1 vs V2 Topic is solved
Replies: 12
Views: 395

Re: Somewhat silly question about V1 vs V2 Topic is solved

I visited the python docs and saw about 15 subversions listed


I have Windows 7 on some Laptops and lots and lots of ahkv1 scripts that wouldn't be moved to v2 without hours and hours of rewriting.
by Chunjee
04 Mar 2024, 01:12
Forum: Ask for Help (v1)
Topic: will a plain txt .ahk that perform delete C:/ but warned by anti virus?
Replies: 3
Views: 113

Re: will a plain txt .ahk that perform delete C:/ but warned by anti virus?

Sounds more like an anti-virus question. Ahk doesn't handle this
by Chunjee
29 Feb 2024, 12:35
Forum: Scripts and Functions (v2)
Topic: json copy of documentation
Replies: 1
Views: 911

Re: json copy of documentation

Fantastic! Well done

I may have a use for this
by Chunjee
29 Feb 2024, 12:25
Forum: Scripts and Functions (v2)
Topic: simple no-cost json storage API
Replies: 2
Views: 385

Re: simple no-cost json storage API

Very cool, thank you

I will be trying this soon
by Chunjee
29 Feb 2024, 10:44
Forum: Ask for Help (v1)
Topic: Sort Array Topic is solved
Replies: 2
Views: 128

Re: Sort Array Topic is solved

inseption86 wrote:
28 Feb 2024, 06:16
how to sort array2 according to array1?
Wasn't sure what this means but these may be of interest to you:
https://biga-ahk.github.io/biga.ahk/#/?id=sortby
https://chunjee.github.io/array.ahk/#/docs?id=sort
by Chunjee
29 Feb 2024, 01:15
Forum: Ask for Help (v1)
Topic: how to use winspy to get all displayed data from active app into array Topic is solved
Replies: 4
Views: 123

Re: how to use winspy to get all displayed data from active app into array Topic is solved

I will continue to waste time on it

But I don't have that app so I am stuck in a very fast loop







halp
by Chunjee
29 Feb 2024, 01:09
Forum: Ask for Help (v2)
Topic: which app to code it
Replies: 5
Views: 177

Re: which app to code it

I think SciTE fell of in 2019 or whenever atom/VSCode appeared
by Chunjee
28 Feb 2024, 17:04
Forum: Scripts and Functions (v1)
Topic: showcase of random Scripts
Replies: 2
Views: 214

Re: showcase of random Scripts

https://github.com/Chunjee/personal-log/raw/main/assets/header.jpeg https://img.shields.io/badge/source-code-red?style=for-the-badge&logo=github https://img.shields.io/badge/License-MIT-tan?style=for-the-badge thread: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=125007 A diary app that is ...
by Chunjee
28 Feb 2024, 16:45
Forum: Ask for Help (v1)
Topic: How Do I Sum the Values of a Specific Variable
Replies: 8
Views: 139

Re: How Do I Sum the Values of a Specific Variable

Just for fun: A := new biga() ; requires https://github.com/biga-ahk/biga.ahk myNumbers := ["$5,000", "$3,000"] msgbox, % A.sum(A.map(myNumbers, A.parseInt)) ; => 8000 msgbox, % A.sumBy(myNumbers, A.parseInt) ; => 8000 https://biga-ahk.github.io/biga.ahk/#/?id=parseint https://biga-ahk.github.io/big...

Go to advanced search