Search found 1455 matches

by iseahound
27 Jan 2024, 23:15
Forum: Bug Reports
Topic: [v2.1-alpha] Critical error thrown when missing statement after if
Replies: 0
Views: 922

[v2.1-alpha] Critical error thrown when missing statement after if

Code: Select all

fn()
fn() {
  if true
}
Should be an unmatched "}" error?
by iseahound
27 Jan 2024, 23:00
Forum: Ask for Help (v2)
Topic: Is concatenation of integers as strings intended? Topic is solved
Replies: 2
Views: 274

Re: Is concatenation of integers as strings intended? Topic is solved

Okay, that second line is very interesting behavior. Thanks!
by iseahound
27 Jan 2024, 22:34
Forum: Ask for Help (v2)
Topic: Is concatenation of integers as strings intended? Topic is solved
Replies: 2
Views: 274

Is concatenation of integers as strings intended? Topic is solved

Such as

Code: Select all

MsgBox 12 34
returning "1234"?

I'm wondering if this behavior can be relied on in the future.
by iseahound
26 Jan 2024, 18:03
Forum: Scripts and Functions (v1)
Topic: ImagePut - A core library for images in AutoHotkey (Now supports HEIC & WEBP)
Replies: 52
Views: 17446

Re: ImagePut - Image library for converting to files, streams, windows, base64, urls, cursors, screen coordinates, clipb

I added a new wiki page that shows how to integrate ImagePut to the AutoHotkey GUI. Note: The GUI code posted earlier in this forum is for AutoHotkey v2. Likewise, the following code will only address AutoHotkey v2.

https://github.com/iseahound/ImagePut/wiki/Add-Image-to-AutoHotkey-GUI
by iseahound
25 Jan 2024, 17:17
Forum: Scripts and Functions (v2)
Topic: ImagePut - A core library for images in AutoHotkey (Now supports HEIC & WEBP)
Replies: 82
Views: 29875

Re: ImagePut - Image library for converting to files, streams, windows, base64, urls, cursors, screen coordinates, clipb

@Descolada Latest version should work now. Let me know if you run into any bugs, these types of changes are hard to test. Also, this may be controversial, but I changed the logic to use gotos.

EDIT: Fixed a bug where Notepad changed my unicode characters into "?"
by iseahound
25 Jan 2024, 12:08
Forum: Wish List
Topic: Enable while & until?
Replies: 8
Views: 1853

Re: Enable while & until?

I'm not really sure about the examples you posted, but my original suggestion is a zero-cost solution, assuming while/for/loop all share the same underlying code. I'm not looking to extend the language beyond it's existing merits.
by iseahound
25 Jan 2024, 12:03
Forum: Scripts and Functions (v2)
Topic: WinRT/UWP Media
Replies: 5
Views: 787

Re: WinRT/UWP Media

Could this solve situations when there are multiple media players? Such as YouTube when Spotify is open. I assume that's what is meant by GetCurrentSessions
by iseahound
23 Jan 2024, 22:30
Forum: Bug Reports
Topic: Exploit PoCs
Replies: 36
Views: 2602

Re: Exploit PoCs

It’s like saying that somebody’s home windows are insecure because a burglar could get into the house by merely unlocking and opening the windows from the inside. (But if the burglar has to get inside in order to unlock the windows…) https://devblogs.microsoft.com/oldnewthing/20060508-22/?p=31283
by iseahound
23 Jan 2024, 20:29
Forum: Wish List
Topic: Enable while & until?
Replies: 8
Views: 1853

Re: Enable while & until?

lmstearn It seems strange to ask for a while - until construction at first, but I started thinking in terms of head and tail. Generally, the head is the first few elements of some iterable like a list or a string, and the tail stands for "the rest". For example, in this function which makes aesthet...
by iseahound
22 Jan 2024, 17:22
Forum: Wish List
Topic: Enable while & until?
Replies: 8
Views: 1853

Enable while & until?

@lexikos Have you considered enabling until for use with while loops, or is that too confusing?
by iseahound
21 Jan 2024, 23:03
Forum: Wish List
Topic: A more precise sleep()
Replies: 12
Views: 1202

Re: A more precise sleep()

You need to run tests without any applications in the background and unplug your laptop and enable every power-saving feature possible. Programs like VSCode and Spotify and Chrome/Firefox/Edge are setting the global timer resolution via timeBeginPeriod to 1. See: https://news.ycombinator.com/item?id...
by iseahound
21 Jan 2024, 17:48
Forum: Tutorials (v2)
Topic: How to use CapsLock as a modifier key in ahk v2
Replies: 1
Views: 2137

How to use CapsLock as a modifier key in ahk v2

There's a few variants of this code posted on this forum. Just wanted to make it easier to find for everyone. The goal is to turn CapsLock into a proper modifying key, and not do simple combos like CapsLock & q:: MsgBox . The good part about this is that the CapsLock functionality is preserved. Just...
by iseahound
20 Jan 2024, 09:52
Forum: Wish List
Topic: [Suggestion:] v in RegExMatch('x','y',&v) should return 0 or false
Replies: 5
Views: 822

Re: [Suggestion:] v in RegExMatch('x','y',&v) should return 0 or false

Completely agree at how frustrating this is. I'm just using type(c) == RegExMatchInfo for now, but in my opinion an empty array with a default of "" should fix most errors like v[1]. Also Lexikos might make it unset because that should be the default return value for v2.1
by iseahound
19 Jan 2024, 22:53
Forum: Scripts and Functions (v2)
Topic: [FUNCTION][Modified from v1.1] Base64 encode/decode a string
Replies: 8
Views: 2216

Re: [FUNCTION][Modified from v1.1] Base64 encode/decode a string

For posterity, I'll leave a copy of my Base64Encode / Base64Decode for AutoHotkey v2 (ahk v2) here: jNizM I managed to solve the issues related to determining the size of the output. Note that the Crypt functions really suck and are slow (why Microsoft?), so calling them twice doesn't do any favors....
by iseahound
19 Jan 2024, 22:45
Forum: Scripts and Functions (v2)
Topic: Collection of useful AutoHotkey v2 scripts and functions
Replies: 8
Views: 11213

Re: Collection of useful AutoHotkey v2 scripts and functions

Why did I write my own version of Base64 encode / decode when you already had one... Google search didn't manage to find your page for AutoHotkey v2.

and I noticed I commented on the thread that led me here... viewtopic.php?t=112821
by iseahound
18 Jan 2024, 12:23
Forum: Scripts and Functions (v2)
Topic: Noise.ahk by Skrommel - Prevents Sleep, Jiggler, Stay Awake
Replies: 0
Views: 609

Noise.ahk by Skrommel - Prevents Sleep, Jiggler, Stay Awake

I made some changes to Skrommel’s old Noise.ahk script. The main change was to use ControlSendText which is newer in AHK v2, and to wait for the release of modifier keys (to prevent user held modifiers from being cancelled by SendText). This class of keep my computer awake programs falls under the t...
by iseahound
17 Jan 2024, 17:35
Forum: AutoHotkey Development
Topic: What to do when "A" getting the current active window misses?
Replies: 11
Views: 1818

Re: What to do when "A" getting the current active window misses?

The main problem is that it's a categorization error. It's easy to write logic for when ahk_class notepad isn't found, but it's harder to deal with "A" . Especially since it fails very rarely, but still non-zero. Suggestions It could just fail silently, but this probably isn't the v2 way of doing th...
by iseahound
15 Jan 2024, 20:53
Forum: Scripts and Functions (v2)
Topic: Pangrams
Replies: 1
Views: 462

Re: Pangrams

Anyways feel free to add more pangrams to this list. NOTE: Similar pangrams have been selected against. So you'll find 200 UNIQUE pangrams here.
by iseahound
15 Jan 2024, 20:41
Forum: Scripts and Functions (v2)
Topic: Pangrams
Replies: 1
Views: 462

Pangrams

I happen to love pangrams, mostly because they're the best way to view all the letters of a font. Well, I don't know why myfonts.com stopped using quicky and panache pangrams in a desultory manner, but here's an equally quixotic list of pangrams d: Note the last time I searched the web for pangrams ...

Go to advanced search