Search found 1435 matches

by Chunjee
06 May 2024, 21:53
Forum: Wish List
Topic: A wishlist 15 years in the making.
Replies: 2
Views: 460

Re: A wishlist 15 years in the making.

Respect 🍪 🍪


I think ahk-jk has some of these
by Chunjee
06 May 2024, 18:49
Forum: Ask for Help (v1)
Topic: Basic lvl 1 Help ?
Replies: 2
Views: 344

Re: Basic lvl 1 Help ?

I would make the number bigger. I don't know much about twitch streams but a tiny tooltip seems way too small. Needs to be at least font size 30
by Chunjee
05 May 2024, 11:12
Forum: Ask for Help (v1)
Topic: Function only working when called from gui
Replies: 3
Views: 371

Re: Function only working when called from gui

If your GUI exists in the global scope I think you can fix this code by the following: guiToOptions := {"ItemSearchCheckbox":"ItemSearch" ,"CraftCheckbox":"Craft"} updateOptions() { global for i, v in guiToOptions { GuiControlGet, val,,%i% MsgBox % v ", " . val options[v] := val } } I would avoid su...
by Chunjee
05 May 2024, 09:24
Forum: Ask for Help (v1)
Topic: Is it possible to create this kind of data in AutoHoktey?
Replies: 5
Views: 260

Re: Is it possible to create this kind of data in AutoHoktey?

Code: Select all

history := []
history.push({"hwnd": {"x": winX, "y": winY, "w": winW, "h": winH}})
This is functionally the same and the forum highlighting agrees with it a bit better :thumbup:

Cool project I think
by Chunjee
05 May 2024, 09:07
Forum: Ask for Help (v1)
Topic: Is it possible to create this kind of data in AutoHoktey?
Replies: 5
Views: 260

Re: Is it possible to create this kind of data in AutoHoktey?

I decided to have the data in this structure, because I am thinking I can query history and return a matching handle in a list of handles it has, doing arrayMatch(history, hwnd) should return a array element find all matches: https://biga-ahk.github.io/biga.ahk/#/?id=filter find just the first matc...
by Chunjee
05 May 2024, 09:03
Forum: Ask for Help (v1)
Topic: Is it possible to create this kind of data in AutoHoktey?
Replies: 5
Views: 260

Re: Is it possible to create this kind of data in AutoHoktey?

Code: Select all

history := []
history.push({hwnd: {x: winX, y: winY, w: winW, h: winH}})
Should work but I haven't WinGetPos() to test with
by Chunjee
03 May 2024, 22:48
Forum: Ask for Help (v1)
Topic: Cannot pickup data from a file
Replies: 2
Views: 290

Re: Cannot pickup data from a file

I prefer fileRead, OutputVar, Filename just read the whole file as one long string. Skip the Text := middleman

https://www.autohotkey.com/docs/v1/lib/FileRead.htm
by Chunjee
02 May 2024, 20:22
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 23
Views: 3888

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

That's fantastic, well done :thumbup: Would be great to post in the v2 scripts and functions A short blurb like "Inspired in part by expect.ahk (v1)" would be appreciated but not required. If you would like a more visual link this could be cool: https://img.shields.io/badge/inspired_by-expect.ahk-g...
by Chunjee
02 May 2024, 12:15
Forum: Ask for Help (v1)
Topic: Need help with a project
Replies: 4
Views: 414

Re: Need help with a project

vvdee wrote:
02 May 2024, 09:57
I would use one array otherwise you may end up juggling 300+ variables 😱🙅🚫


Additionally you can shuffle an array, and pull from the end. If a random non-repeating order is ever desired
by Chunjee
01 May 2024, 07:51
Forum: Ask for Help (v1)
Topic: Call a function whose name is stored in an associative array
Replies: 4
Views: 401

Re: Call a function whose name is stored in an associative array

autohotkey has these things called function objects, you can also put those in an array and call them like so: funcObj := func("myCoolFunc") myArray := {"func1": funcObj, "func2": funcObj, "func3": funcObj} myArray["func2"].call(10) ; => 20 myCoolFunc(parameter) { msgbox, % parameter * 2 } You may f...
by Chunjee
30 Apr 2024, 09:44
Forum: Ask for Help (v1)
Topic: Get longest line's character count in multiline string Topic is solved
Replies: 5
Views: 585

Re: Get longest line's character count in multiline string Topic is solved

Hopefully this is obvious but if you just want the character count you can fit it in one line simply enough: myMultiLineStr := "hello`nworld`nfoobar" msgbox, % A.size(A.maxBy(strSplit(myMultiLineStr, "`n"), A.size)) ; => 6 https://biga-ahk.github.io/biga.ahk/#/?id=map https://biga-ahk.github.io/biga...
by Chunjee
30 Apr 2024, 09:36
Forum: Ask for Help (v1)
Topic: Get longest line's character count in multiline string Topic is solved
Replies: 5
Views: 585

Re: Get longest line's character count in multiline string Topic is solved

Just for fun:

Code: Select all

A := new biga() ; requires https://github.com/biga-ahk/biga.ahk

longestString := A.maxBy(["string1", "string12", "string123"], A.size)
msgbox, % longestString
; => "string123"

msgbox, % A.size(longestString)
; => 9
I find this very readable and portable
by Chunjee
28 Apr 2024, 23:05
Forum: Ask for Help (v1)
Topic: POST to unsigned HTTPS
Replies: 1
Views: 316

Re: POST to unsigned HTTPS

Your title says POST but the code posted is sending "GET"
by Chunjee
23 Apr 2024, 07:37
Forum: Ask for Help (v1)
Topic: Translation hotkey
Replies: 6
Views: 236

Re: Translation hotkey

I like the DeepL API. it is free if you keep your translations under {{x}} per month.


Here is a simple one I saw once for looking up singular words on Jisho.org

Code: Select all

!j::
run, %comspec% /c start https://jisho.org/search/%clipboard%
return
by Chunjee
22 Apr 2024, 15:41
Forum: Ask for Help (v1)
Topic: Easy licensing script
Replies: 3
Views: 154

Re: Easy licensing script

I'm also interested in this
by Chunjee
19 Apr 2024, 13:33
Forum: Ask for Help (v1)
Topic: How to make this script automatically activate in every 20 second? Topic is solved
Replies: 5
Views: 291

Re: How to make this script automatically activate in every 20 second? Topic is solved

zerox wrote:
17 Apr 2024, 05:15
How to make this script automatically activate in every 20 second?
A timer could be cool
by Chunjee
18 Apr 2024, 15:20
Forum: Ask for Help (v1)
Topic: V1: Reload script when Dropbox finishes syncing
Replies: 4
Views: 174

Re: V1: Reload script when Dropbox finishes syncing

One other idea is you can reload when a change is detected and static for over {{x}} seconds. It sounds like there may be more than one file involved in the sync. If not you can just reload after any file change is detected.
by Chunjee
16 Apr 2024, 11:00
Forum: Ask for Help (v1)
Topic: Trim sentences
Replies: 2
Views: 56

Re: Trim sentences

Just for fun: A := new biga() ; requires https://github.com/biga-ahk/biga.ahk str := " This is the first sentence. `n This is the second. `n Here comes the the third sentence. " str2 := A.join(A.map(strSplit(str, "`n"), A.trim), "`n") ; => "This is the first sentence.`nThis is the second.`nHere come...
by Chunjee
13 Apr 2024, 12:21
Forum: Gaming Help (v1)
Topic: click on image text
Replies: 11
Views: 448

Re: click on image text

For games you can post here: viewforum.php?f=18
by Chunjee
13 Apr 2024, 12:19
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 23
Views: 3888

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

v1 has if var contains as standard syntax, but this has been removed in v2 - which is a shame imho. Huh did not know that was removed in v2. Obviously since it is not a function in v1 it does not fit comfortably in one line expect.true(UserInput not in yes,no) or whatever it would be. My current pl...

Go to advanced search