Search found 1444 matches

by Chunjee
Yesterday, 17:36
Forum: Ask for Help (v1)
Topic: Trying to simulate laptop 'fn' key
Replies: 3
Views: 365

Re: Trying to simulate laptop 'fn' key

Fn takes place at the hardware level and ahk is limited to the software level. Sadly it can't be used in ahk scripts generally speaking

Russ
by Chunjee
14 May 2024, 21:19
Forum: Ask for Help (v1)
Topic: Can't edit script
Replies: 3
Views: 374

Re: Can't edit script

Remember to save and re-run the script. Ahk won't watch for changes generally speaking
by Chunjee
12 May 2024, 23:31
Forum: Ask for Help (v1)
Topic: Parse openweathermap.org data into variables
Replies: 10
Views: 879

Re: Parse openweathermap.org data into variables

unixTime. This hasn't received robust testing or anything but jsonVal := "1715345600" currentTime := "1715599151" msgbox, % UnixTimestampDifference(currentTime, jsonVal) ; => 2.934618 ; ie 2.9 days difference ; assumes Unix Epoch in seconds! NOT milliseconds UnixTimestampDifference(utcDate1, utcDat...
by Chunjee
12 May 2024, 08:27
Forum: Ask for Help (v1)
Topic: Parse openweathermap.org data into variables
Replies: 10
Views: 879

Re: Parse openweathermap.org data into variables

I believe that would square bracket notation: loop, 8 { msgbox, % obj.daily[A_Index]temp.max *9/5-459.67 } https://www.autohotkey.com/docs/v1/Objects.htm#Usage_Objects All types of objects support both array syntax (brackets) and object syntax (dots) If you prefer your own count variable it might lo...
by Chunjee
11 May 2024, 23:42
Forum: Ask for Help (v1)
Topic: Need Advice on Finding My Missing { bracket
Replies: 10
Views: 800

Re: Need Advice on Finding My Missing { bracket

That's incredible.
by Chunjee
11 May 2024, 18:00
Forum: Ask for Help (v1)
Topic: Need Advice on Finding My Missing { bracket
Replies: 10
Views: 800

Re: Need Advice on Finding My Missing { bracket

andymbody wrote:
11 May 2024, 13:37
Chunjee wrote:
11 May 2024, 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
11 May 2024, 09:13
Forum: Ask for Help (v1)
Topic: Need Advice on Finding My Missing { bracket
Replies: 10
Views: 800

Re: Need Advice on Finding My Missing { bracket

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

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: 10
Views: 879

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

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

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

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

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

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

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

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

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

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

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

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...

Go to advanced search