Search found 18 matches

by OpalMonkey
26 Nov 2022, 02:54
Forum: AutoHotkey Development
Topic: Functions returning unset by default (and divergent topics)
Replies: 19
Views: 5395

Re: Functions returning unset by default (and divergent topics)

Ah, right. I missed that one when I was reading over the previous posts. Thanks for pointing it out again.
by OpalMonkey
25 Nov 2022, 00:03
Forum: AutoHotkey Development
Topic: Potential priorities for v2.1
Replies: 13
Views: 4315

Re: Potential priorities for v2.1

Neat stuff! Thanks for giving us an overview of your current priorities and thoughts. I look forward to trying out the v2.1-alpha branch when it comes time.
by OpalMonkey
24 Nov 2022, 23:46
Forum: AutoHotkey Development
Topic: Functions returning unset by default (and divergent topics)
Replies: 19
Views: 5395

Re: Functions returning unset by default (and divergent topics)

It would have to be done in conjunction with fn(1)? , obj.method()? , as I don't see any way around it. regarding if value? as a substitute for isset(): Nullable types (the union of unset and value ) should be avoided, and and I think isset() is ugly enough to make that clear, but would support it....
by OpalMonkey
22 Nov 2022, 06:41
Forum: AutoHotkey Development
Topic: Functions returning unset by default (and divergent topics)
Replies: 19
Views: 5395

Re: Arrays mistaken as strings?

The two whats? Explicit and implicit return unset ? They would be equivalent. I suspected that would be the case. The wording of "if functions had no return value by default" just made me wonder if it would be defaulting to unset or if this would be handled in some other way. Thanks for confirming....
by OpalMonkey
21 Nov 2022, 05:09
Forum: AutoHotkey Development
Topic: Functions returning unset by default (and divergent topics)
Replies: 19
Views: 5395

Re: Arrays mistaken as strings?

I think it would be better if functions had no return value by default, and any attempt to use the non-existent return value raised an error - just like if you try to read a variable which has no value (or invoke a method or property on the variable). I, for one, would absolutely love that. If the ...
by OpalMonkey
01 Sep 2022, 04:24
Forum: Wish List
Topic: Win functions for virtual desktop on Windows 10+
Replies: 2
Views: 1088

Re: Win functions for virtual desktop on Windows 10+

Something that might be useful for you, entr0pia. Here is a stripped-down version of something I adapted from jpginc/windows10DesktopManager: An autohotkey desktop manager a long time ago. I have only tested it on Windows 10, but it works well to easily identify when a window is or isn't on the curr...
by OpalMonkey
30 Jul 2022, 17:24
Forum: Bug Reports
Topic: [v2.0-beta.7] Reserved words as properties. No error on first declaration. Topic is solved
Replies: 3
Views: 702

Re: [v2.0-beta.7] Reserved words as properties. No error on first declaration. Topic is solved

Makes sense. I didn't see what reason there would be to reserve them here. Thanks for confirming.
by OpalMonkey
29 Jul 2022, 08:17
Forum: Bug Reports
Topic: [v2.0-beta.7] Reserved words as properties. No error on first declaration. Topic is solved
Replies: 3
Views: 702

[v2.0-beta.7] Reserved words as properties. No error on first declaration. Topic is solved

I'm not entirely sure what to think of this one but assume it's a bug. When using a property named IsSet an error is thrown, but only when it is not the first property definition. I don't see why it would be reserved when used as a property, but can't be sure which is the bug. After a little more te...
by OpalMonkey
24 Apr 2022, 08:07
Forum: Visual Studio Code
Topic: Quick tutorial for setting up VSCode for AHK
Replies: 16
Views: 22244

Re: Quick tutorial for setting up VSCode for AHK

It might be worth noting that if using thqby's AutoHotkey2 Language Support, I believe debugging requires it's own extension. I use vscode-autohotkey-debug. Whereas it looks like AutoHotkey Plus Plus can handle debugging on its own, but I could be mistaken since I haven't used it much.
by OpalMonkey
11 Jun 2021, 20:48
Forum: Off-topic Discussion
Topic: One small add banner to support community
Replies: 8
Views: 3512

Re: One small add banner to support community

joedf wrote:
11 Jun 2021, 10:51
As side note, I see that patreon can be used for non-profits too
I wouldn't mind there being a Patreon. I so rarely think of donating otherwise and Patreon makes it easier to just give that little bit of consistent support. Even if it was just $1-2 a month.
by OpalMonkey
22 May 2021, 03:07
Forum: Bug Reports
Topic: [a135] Possible bug with line continuation and ternary operators Topic is solved
Replies: 4
Views: 1971

Re: [a135] Possible bug with line continuation and ternary operators Topic is solved

lexikos Just glad to help by catching a bug, and nice that it isn't difficult to work around till the next release. Though I did just realize that this affects all line continuations, I just haven't had the same need of multiple line continuations much in v2. Thanks for the explanation, too. I very...
by OpalMonkey
22 May 2021, 01:18
Forum: Bug Reports
Topic: [a135] Possible bug with line continuation and ternary operators Topic is solved
Replies: 4
Views: 1971

[a135] Possible bug with line continuation and ternary operators Topic is solved

Just tried moving to a135 (from a134) and the only thing that needed changing was where I was splitting ternary operators over multiple lines, like so: Test1(value) { Return value ? True : False } Every other combination of this I try seems to work, which is what's making me think it's a bug. All of...
by OpalMonkey
19 Apr 2021, 09:59
Forum: Ask for Help (v2)
Topic: obj.%prop% dynamic access no longer works?
Replies: 4
Views: 529

Re: obj.%prop% dynamic access no longer works?

Exactly what I came here to ask. I've been over the a132 changes several times and don't see anything that alludes to this. Though admittedly, I don't fully understand some of the changes.
by OpalMonkey
02 Apr 2021, 16:04
Forum: Announcements
Topic: AutoHotkey v3.0-alpha.1 - Switching to JavaScript (not really)
Replies: 32
Views: 16602

Re: AutoHotkey v3.0-alpha.1 - Switching to JavaScript (not really)

This is more than just an elaborate prank [...] There is truth to everything I wrote, except the topic title... maybe even the topic title (only time will tell). ;) Well played, lexikos! That's kind of what I started to expect after thinking it through yesterday. The best pranks/lies/deceptions are...
by OpalMonkey
01 Apr 2021, 04:24
Forum: Announcements
Topic: AutoHotkey v3.0-alpha.1 - Switching to JavaScript (not really)
Replies: 32
Views: 16602

Re: AutoHotkey v3.0-alpha.1 - Switching to JavaScript

The only thing I'm unsure of is whether this is actually an elaborate April Fool's joke or not :HeHe: If it is a joke, it's so elaborate and deadpan. And if it's true, it seems like a sudden change of course. But the fact that it's functional and actually feels like it could make sense is really me...
by OpalMonkey
11 Sep 2020, 03:05
Forum: Ask for Help (v1)
Topic: Winactivate is good. but is there a Tabactivate thing?
Replies: 3
Views: 356

Re: Winactivate is good. but is there a Tabactivate thing?

Just a thought, but maybe launching the file using command line parameters for Akelpad could work? I haven't tested this with AkelPad, just Notepad++, so take it for what it's worth. !a:: run C:\PathToAkelPad\AkelPad.exe "C:\Users\Westlife\Downloads\autohotkey\text.txt", , max return Changing PathTo...
by OpalMonkey
28 Mar 2014, 05:11
Forum: Bug Reports
Topic: Possible bug, extended class properties and __get()
Replies: 2
Views: 1862

Re: Possible bug, extended class properties and __get()

Hmm, alright. Thanks fincs. That makes sense. Guess I still don't fully understand how objects work in AHK.

So I'm guessing the only way to get around that would be to add the same __Get method to extend2 so it would take priority?
by OpalMonkey
28 Mar 2014, 03:40
Forum: Bug Reports
Topic: Possible bug, extended class properties and __get()
Replies: 2
Views: 1862

Possible bug, extended class properties and __get()

Okay, so not quite sure what to call this. Also not 100% sure it's a bug, but it sure feels like one. Here's the code in question. vObj1 := new progen() vObj2 := new extend1() vObj3 := new extend2() MsgBox, % "progen: [" vObj1.Test "]`nextend1: [" vObj2.Test "]`nextend2: [" vObj3.Test "]" Return cla...

Go to advanced search