Search found 1440 matches

by Chunjee
Yesterday, 18:00
Forum: Ask for Help (v1)
Topic: Need Advice on Finding My Missing { bracket
Replies: 10
Views: 496

Re: Need Advice on Finding My Missing { bracket

andymbody wrote:
Yesterday, 13:37
Chunjee wrote:
Yesterday, 09:13
Bet I could find it if the code was posted
lol... would definitely help others participate in the search...

No only I have been specifically trained for this. In fact my entire programming career has lead to this exact point. To find this exact missing curly boi
by Chunjee
Yesterday, 09:13
Forum: Ask for Help (v1)
Topic: Need Advice on Finding My Missing { bracket
Replies: 10
Views: 496

Re: Need Advice on Finding My Missing { bracket

Bet I could find it if the code was posted
by Chunjee
Yesterday, 09:13
Forum: Ask for Help (v1)
Topic: Need Advice on Finding My Missing { bracket
Replies: 10
Views: 496

Re: Need Advice on Finding My Missing { bracket

Haven't had that problem since starting with VSC. Here is an interesting blog I came across while searching bracket pair colorization
by Chunjee
10 May 2024, 16:14
Forum: Ask for Help (v1)
Topic: Parse openweathermap.org data into variables
Replies: 4
Views: 363

Re: Parse openweathermap.org data into variables

Welcome to the world of ahk objects. A lot of users never get this far :thumbup:
by Chunjee
06 May 2024, 21:53
Forum: Wish List
Topic: A wishlist 15 years in the making.
Replies: 2
Views: 478

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: 394

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: 410

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: 277

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: 277

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: 277

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: 295

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: 3935

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: 464

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: 406

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: 594

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: 594

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: 327

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: 239

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: 155

Re: Easy licensing script

I'm also interested in this

Go to advanced search