Search found 1447 matches

by Chunjee
17 May 2024, 17:28
Forum: Ask for Help (v1)
Topic: Scroll through open windows issue when Task Manager or Services.msc windows active
Replies: 10
Views: 741

Re: Scroll through open windows issue when Task Manager or Services.msc windows active

If I remember correctly the task manager runs at a different permission level. You might try running your script as administrator as a quick test
by Chunjee
17 May 2024, 12:14
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 12
Views: 728

Re: Why does this script sometimes does nothing?

Deprecated: These control flow statements are not recommended for use in new scripts. Use the WinExist function instead.
by Chunjee
16 May 2024, 18:00
Forum: Ask for Help (v1)
Topic: How to retain variables between runs
Replies: 2
Views: 284

Re: How to retain variables between runs

Read variables from a json file when the script first starts. Remember to write thr updated json file when the script saves or closes or it won't be able to load them next runtime.

My personal favorite: https://github.com/Chunjee/json.ahk
by Chunjee
15 May 2024, 17:36
Forum: Ask for Help (v1)
Topic: Trying to simulate laptop 'fn' key
Replies: 3
Views: 518

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

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

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

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, 18:00
Forum: Ask for Help (v1)
Topic: Need Advice on Finding My Missing { bracket
Replies: 10
Views: 841

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

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

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

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

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

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

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

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

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

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

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

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

Go to advanced search