Deprecated: These control flow statements are not recommended for use in new scripts. Use the WinExist function instead.
Search found 1446 matches
- 39 minutes ago
- Forum: Ask for Help (v1)
- Topic: Why does this script sometimes does nothing?
- Replies: 2
- Views: 42
Re: Why does this script sometimes does nothing?
- Yesterday, 18:00
- Forum: Ask for Help (v1)
- Topic: How to retain variables between runs
- Replies: 2
- Views: 188
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
My personal favorite: https://github.com/Chunjee/json.ahk
- 15 May 2024, 17:36
- Forum: Ask for Help (v1)
- Topic: Trying to simulate laptop 'fn' key
- Replies: 3
- Views: 454
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
Russ
- 14 May 2024, 21:19
- Forum: Ask for Help (v1)
- Topic: Can't edit script
- Replies: 3
- Views: 407
Re: Can't edit script
Remember to save and re-run the script. Ahk won't watch for changes generally speaking
- 12 May 2024, 23:31
- Forum: Ask for Help (v1)
- Topic: Parse openweathermap.org data into variables
- Replies: 10
- Views: 890
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...
- 12 May 2024, 08:27
- Forum: Ask for Help (v1)
- Topic: Parse openweathermap.org data into variables
- Replies: 10
- Views: 890
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...
- 11 May 2024, 23:42
- Forum: Ask for Help (v1)
- Topic: Need Advice on Finding My Missing { bracket
- Replies: 10
- Views: 807
Re: Need Advice on Finding My Missing { bracket
That's incredible.
- 11 May 2024, 18:00
- Forum: Ask for Help (v1)
- Topic: Need Advice on Finding My Missing { bracket
- Replies: 10
- Views: 807
Re: Need Advice on Finding My Missing { bracket
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
- 11 May 2024, 09:13
- Forum: Ask for Help (v1)
- Topic: Need Advice on Finding My Missing { bracket
- Replies: 10
- Views: 807
Re: Need Advice on Finding My Missing { bracket
Bet I could find it if the code was posted
- 11 May 2024, 09:13
- Forum: Ask for Help (v1)
- Topic: Need Advice on Finding My Missing { bracket
- Replies: 10
- Views: 807
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
- 10 May 2024, 16:14
- Forum: Ask for Help (v1)
- Topic: Parse openweathermap.org data into variables
- Replies: 10
- Views: 890
Re: Parse openweathermap.org data into variables
Welcome to the world of ahk objects. A lot of users never get this far
- 06 May 2024, 21:53
- Forum: Wish List
- Topic: A wishlist 15 years in the making.
- Replies: 2
- Views: 541
Re: A wishlist 15 years in the making.
Respect
I think ahk-jk has some of these
I think ahk-jk has some of these
- 06 May 2024, 18:49
- Forum: Ask for Help (v1)
- Topic: Basic lvl 1 Help ?
- Replies: 2
- Views: 430
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
- 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...
- 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: 310
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}})
Cool project I think
- 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: 310
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...
- 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: 310
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}})
- 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
https://www.autohotkey.com/docs/v1/lib/FileRead.htm
- 02 May 2024, 20:22
- Forum: Scripts and Functions (v1)
- Topic: [Class] expect.ahk (rapid unit testing)
- Replies: 23
- Views: 4042
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...
- 02 May 2024, 12:15
- Forum: Ask for Help (v1)
- Topic: Need help with a project
- Replies: 4
- Views: 474