Search found 49 matches

by Raccoon
14 Mar 2019, 03:31
Forum: Offtopic
Topic: Test post, please reply. Topic is solved
Replies: 3
Views: 537

Test post, please reply. Topic is solved

Testing the notifications. Someone reply to this message. Thanks.
by Raccoon
04 Mar 2019, 13:48
Forum: Wish List
Topic: One Line If Statements
Replies: 36
Views: 4106

Re: One Line If Statements

Any precedent for adding a rare-risk of a breaking change, and issuing a Request For Complaints to receive input for outrage? And explaining how to fix the break by wrapping parens around the entire if-expression (as it always has been recommended in the documentation)
by Raccoon
04 Mar 2019, 13:29
Forum: Wish List
Topic: One Line If Statements
Replies: 36
Views: 4106

Re: One Line If Statements

You keep SAYING it's a breaking change, but I require some sort of mental intellectual exchange to comprehend where you're coming from. Allow me to conclude that it's a breaking change for myself. parser scans through lines. parser finds "if" statement. parser looks for opening paren. parser waits f...
by Raccoon
04 Mar 2019, 13:23
Forum: Wish List
Topic: One Line If Statements
Replies: 36
Views: 4106

Re: One Line If Statements

What happens when we put the comma after the closing parenthesis? As in:

Code: Select all

if (true, false), msgbox true
making the parenthesis mandatory.
by Raccoon
04 Mar 2019, 12:21
Forum: Wish List
Topic: One Line If Statements
Replies: 36
Views: 4106

Re: One Line If Statements

nnnik wrote:
04 Mar 2019, 11:51

Code: Select all

if true,false {
	Msgbox Test
}
Is valid code in v1.
Can you explain what this does?
by Raccoon
03 Mar 2019, 14:54
Forum: Wish List
Topic: Remove block jumping restrictions on Goto and GoSub
Replies: 6
Views: 738

Re: Remove block jumping restrictions on Goto and GoSub

I'm not saying that anything needs to be changed to how AHK interprets these things. It's WAAY better if break or continue behave in strange and sexy ways when you introduce a jump point, the same way you discover strange and sexy coding strategies in basic and assembly and a myriad of other languag...
by Raccoon
03 Mar 2019, 14:50
Forum: Wish List
Topic: One Line If Statements
Replies: 36
Views: 4106

Re: One Line If Statements

Can you give me a demonstration of how a person might use commas in the expression of an If? I never knew this worked
by Raccoon
03 Mar 2019, 07:24
Forum: Wish List
Topic: One Line If Statements
Replies: 36
Views: 4106

Re: One Line If Statements

No, it doesn't say it can be used like this, it's just confusing to me that it can't be. You're telling me that the parser is confused by how ifs work within proximity to expressions, even though this rendition of IF was written at the advent of expressions for the use with expressions, so it's full...
by Raccoon
03 Mar 2019, 07:05
Forum: Wish List
Topic: One Line If Statements
Replies: 36
Views: 4106

Re: One Line If Statements

So why would this work? And how is the parer confused by the if statement "for something other than it seems"? foo:=5, function(foo), bar:="baz", function(bar) As far as the help documentation goes, "if (1 = 1)" is known as an "expression if". So it's an expression just like any function or variable...
by Raccoon
03 Mar 2019, 06:55
Forum: Wish List
Topic: Remove block jumping restrictions on Goto and GoSub
Replies: 6
Views: 738

Re: Remove block jumping restrictions on Goto and GoSub

Here's a simplified example; Sure there are other approaches for this example. I'm not saying there aren't. Not tested, so if I make an obvious bug, forgive it. #If GetKeyState("ScrollLock","T") Up:: Down:: Left:: Right:: hotkey_RapidFireMacro() { Static delay := 100, stop := false Loop { Send % A_T...
by Raccoon
03 Mar 2019, 06:45
Forum: Wish List
Topic: One Line If Statements
Replies: 36
Views: 4106

Re: One Line If Statements

You say none of that will work with the current v1 parser, but don't go into any detail. Why wouldn't it? if (1 = 1), bar:=foo, baz:=bar, quux:=baz if (1 = 1) { bar:=foo, baz:=bar, quux:=baz } At the very least, these two styles should work. We already use the comma as a hard delimiter in classic an...
by Raccoon
02 Mar 2019, 23:20
Forum: Wish List
Topic: One Line If Statements
Replies: 36
Views: 4106

One Line If Statements

The limitations of If-condition formatting has bothered me for a very long time. Currently allowed: if (1 = 1) msgbox true if (1 = 1) { msgbox true } Please add support for some-or-all of the following: If (1 = 1) msgbox true If (1 = 1), msgbox true If (1 = 1) { msgbox true } If (1 = 1) then msgbox ...
by Raccoon
02 Mar 2019, 21:08
Forum: Wish List
Topic: Remove block jumping restrictions on Goto and GoSub
Replies: 6
Views: 738

Re: Remove block jumping restrictions on Goto and GoSub

swagfag: In your example code, the expected behavior would be to Msgbox an undefined A_LoopField, fall through the closing brace, and then Goto Target again. Unless A_LoopField stays defined after the final iteration of Loop Parse's first round. Actually, I would extend my original request not only ...
by Raccoon
02 Mar 2019, 08:16
Forum: Wish List
Topic: Remove block jumping restrictions on Goto and GoSub
Replies: 6
Views: 738

Remove block jumping restrictions on Goto and GoSub

So I know this sounds weird and the style of coding will upset anybody with an inkling proper top-down coding, but, what I'm requesting isn't entirely unuseful or without merit and precedence. Presently the commands Goto and GoSub prohibit jumping in and out of functions to labels that exist inside ...
by Raccoon
01 Mar 2019, 10:19
Forum: Ask For Help
Topic: Atan2 in code but not documented nor exposed? Topic is solved
Replies: 9
Views: 947

Re: Atan2 in code but not documented nor exposed? Topic is solved

Here's a slow version for anyone who needs it. atan2(y,x) { ; y then x if (x > 0) return atan(y/x) if (x < 0) ; && (y <> 0) return atan(y/x) + 3.1415926535898 * ((y >= 0) ? 1.0 : -1.0) if (y <> 0) ; && (x = 0) return 1.5707963267949 * ((y >= 0) ? 1.0 : -1.0) return 0.0 } ; by Raccoon 2019
by Raccoon
01 Mar 2019, 09:24
Forum: Wish List
Topic: Allow AutoHotkey to Handle Binary Data
Replies: 47
Views: 5393

Re: Allow AutoHotkey to Handle Binary Data

Sticking to v1, and politely asking that v2 only be treated as a test-bed for new features to be introduced for v1, such as pointers and unicode support. Even if there's an off-chance it might break some things for someone somewhere long forgotten about. AHK v2 isn't like switching from Python 2 to ...
by Raccoon
01 Mar 2019, 09:06
Forum: Wish List
Topic: Allow AutoHotkey to Handle Binary Data
Replies: 47
Views: 5393

Re: Allow AutoHotkey to Handle Binary Data

For example AHK_Basic didn't have an actual ptr type and was incompatible with 64 bit. Yet we moved to 64 bit and those old scripts broke. Same goes for Ansi/Unicode and similar. There's a distinct difference between script breakage due to pointers and other platform changes, versus simply deciding...
by Raccoon
01 Mar 2019, 08:57
Forum: Ask For Help
Topic: Atan2 in code but not documented nor exposed? Topic is solved
Replies: 9
Views: 947

Atan2 in code but not documented nor exposed? Topic is solved

I notice that the function ATAN2() does not appear in documentation, but it's declared in code. Is there a particular reason this function is missing, or am I misunderstanding the source?

https://github.com/Lexikos/AutoHotkey_L/blob/master/source/qmath.h#L568
by Raccoon
23 Feb 2019, 18:44
Forum: Wish List
Topic: Request adding TreeListView GUI control
Replies: 2
Views: 460

Re: Request adding TreeListView GUI control

Ah thanks, that's handy. I debated such a method (faux +/- expansion within a ListView control) but seeing as he already put together a package I'll give it a try.

Ultimately, I think it'd still be kind of neat to see some more modernized controls added, if that fits in the scope of the project.

Go to advanced search