Search found 1161 matches

by kczx3
09 Jul 2020, 14:49
Forum: AutoGUI
Topic: Customize Editor.ahk custom/comment folding
Replies: 2
Views: 936

Re: Customize Editor.ahk custom/comment folding

No idea. Maybe try "fold.ahk.explicit.start" and "fold.ahk.explicit.end"? I think this may be dependent on the lexer code though and not configurable from script unless the lexer supports it.
by kczx3
08 Jul 2020, 20:42
Forum: AutoHotkey v2 Scripts and Functions
Topic: YEJP - Yet Another Json Parser - AHK v1/2 - 2020/10/10 - a122
Replies: 12
Views: 4253

Re: YEJP - Yet Another Json Parser - AHK v1/2 - 2020/07/01 - a113

Separate out your keys to both be in brackets. Or just use dot notation.
by kczx3
07 Jul 2020, 08:34
Forum: AutoHotkey v2 Development
Topic: GuiCtrl.GetPos()
Replies: 20
Views: 7422

Re: GuiCtrl.GetPos()

lexikos I don't know that continuing this conversation is helping. Its obvious that we have differing ways of discussion and the levels at which you and I comprehend concepts are vastly different. I really don't care of negligible performance. The only reason I brought up performancr was due to som...
by kczx3
06 Jul 2020, 09:43
Forum: AutoHotkey v2 Scripts and Functions
Topic: MsgBox Creator for AHK v2 - a115
Replies: 10
Views: 3621

Re: MsgBox Creator for AHK v2 - a115

Cool, thanks! I love continuing to see more v2 stuff created! Keep it coming as this is what is needed to create momentum and encourage others to use v2 as well.
by kczx3
06 Jul 2020, 09:36
Forum: AutoHotkey v2 Development
Topic: GuiCtrl.GetPos()
Replies: 20
Views: 7422

Re: GuiCtrl.GetPos()

I echo some of nnnik 's comments, though I can't speak to "the general consensus in the AHK community regarding ByRef parameters". I am not fond of them personally. Doesn't the AHK source retrieve all four of XYWH even if the users only passes one ByRef parameter to GetPos()? If you wanted to limit ...
by kczx3
02 Jul 2020, 08:02
Forum: AutoHotkey v2 Development
Topic: GuiCtrl.GetPos()
Replies: 20
Views: 7422

Re: GuiCtrl.GetPos()

I like that getpos() and wingetpos() etc are consistent. But I always guessed (since getpos() ) returning an object would be the norm. I would never return four values byref with my own udf for something which isn't performance critical, such as for a math function. I can easily see myself doing a ...
by kczx3
02 Jul 2020, 08:01
Forum: Bug Reports
Topic: #Warn giving incorrect warnings in AutoHotkey 1.1.33.00
Replies: 13
Views: 5612

Re: #Warn giving incorrect warnings in AutoHotkey 1.1.33.00

lexikos wrote:
01 Jul 2020, 23:28
If it's re-read from file, we'd need to guard against changes to the script file while it is running. (Possibly just avoid showing code if the file has been modified.)
Isn't this also a concern when using a debugger?

I just think seeing the programmers own code would be less cryptic.
by kczx3
01 Jul 2020, 20:43
Forum: AutoHotkey v2 Help
Topic: Warning: This variable has not been assigned a value Topic is solved
Replies: 5
Views: 2106

Re: Warning: This variable has not been assigned a value Topic is solved

In this case, your fix is correct to initially define the variable to an empty string.
by kczx3
01 Jul 2020, 20:20
Forum: Bug Reports
Topic: #Warn giving incorrect warnings in AutoHotkey 1.1.33.00
Replies: 13
Views: 5612

Re: #Warn giving incorrect warnings in AutoHotkey 1.1.33.00

I think one of the confusing things with the messages that show code and line numbers is that the code doesn't exactly reflect what the user wrote since it shows all statements "inserted" by the parser (or whatever). I think these types of warnings/errors would be much easier for the programmer to u...
by kczx3
01 Jul 2020, 20:13
Forum: Bug Reports
Topic: v2: Fail to create Tab control Topic is solved
Replies: 4
Views: 1822

Re: v2: Fail to create Tab control Topic is solved

I am seeing the same thing as Ragnar
by kczx3
01 Jul 2020, 19:54
Forum: AutoHotkey v2 Development
Topic: GuiCtrl.GetPos()
Replies: 20
Views: 7422

Re: GuiCtrl.GetPos()

Also, I forgot to mention that I quite enjoy your "experiment"! Will the GuiCtrl class be exposed directly like Gui in the future? Or would you have to create a control and retrieve gc.base.base as you did?
by kczx3
01 Jul 2020, 19:48
Forum: AutoHotkey v2 Development
Topic: GuiCtrl.GetPos()
Replies: 20
Views: 7422

Re: GuiCtrl.GetPos()

Why via properties? Uh, that was your suggestion. My point is in regards to using GetPos() when you have to do it on many controls on a gui. With the ByRef params, I have to prefix each needed variable with something that uniquely identifies it among the other controls position properties. Forget t...
by kczx3
01 Jul 2020, 09:18
Forum: Ask For Help
Topic: The preferred way to handle the errors Topic is solved
Replies: 4
Views: 1633

Re: The preferred way to handle the errors Topic is solved

There's not many times where you'd really want to throw in a non-library type situation. If you are writing your own app then you don't really need to throw very often, and you'd better make sure you catch it. You don't want an end user seeing a throw error dialog. Typically, throw is to provide inf...
by kczx3
01 Jul 2020, 06:34
Forum: AutoHotkey v2 Development
Topic: GuiCtrl.GetPos()
Replies: 20
Views: 7422

Re: GuiCtrl.GetPos()

[Edit: Perhaps separate properties would be faster, more convenient and less problematic? For a Gui object, they might not match if queried in order while the window is being moved, but that's not an issue if you're only using one at a time.] This seems interesting. Is there no way to atomically ge...
by kczx3
01 Jul 2020, 06:32
Forum: AutoHotkey v2 Development
Topic: GuiCtrl.GetPos()
Replies: 20
Views: 7422

Re: GuiCtrl.GetPos()

You have deduced correctly that its quite infrequent that I am operating on windows or controls not owned by my AHK scripts. When it came to moving a gui or control that I created, I didn't have to worry about parameter order at least due to the options parsing. Just each of the prefixes (X, Y, W, a...
by kczx3
30 Jun 2020, 20:18
Forum: AutoHotkey v2 Development
Topic: GuiCtrl.GetPos()
Replies: 20
Views: 7422

GuiCtrl.GetPos()

Looking through my GUI code, I'm finding that the changes from GuiCtrl.Pos to GuiCtrl.GetPos() is a huge dissatisfier for my coding style. At the end is a sample of a program I have been working on. I use the coordinates of prior controls A LOT for positioning subsequent controls just right. By movi...
by kczx3
30 Jun 2020, 11:32
Forum: Bug Reports
Topic: Unable to install AutoHotkey_1.1.33.00_setup.exe
Replies: 4
Views: 731

Re: Unable to install AutoHotkey_1.1.33.00_setup.exe

I just upgraded via the setup option from the Start menu and it installed smoothly.
by kczx3
26 Jun 2020, 09:31
Forum: Ask For Help
Topic: Drag and drop in listbox
Replies: 18
Views: 6084

Re: Drag and drop in listbox

I think it’s just a matter of preference and complexity. I think the built-in notification is sufficient enough and I prefer to use methods provided by Microsoft whenever possible. I think changing the cursor at BEGINDRAG would help to convey a drag operation is possible
by kczx3
25 Jun 2020, 20:03
Forum: AHK Studio
Topic: AHK Studio
Replies: 1139
Views: 423493

Re: AHK Studio

@maestrith
Thank you very much!
by kczx3
25 Jun 2020, 19:59
Forum: Ask For Help
Topic: Drag and drop in listbox
Replies: 18
Views: 6084

Re: Drag and drop in listbox

teadrinker wrote:
25 Jun 2020, 19:54
It's defined in commctrl.h.
[/quote]

Excellent. Thanks!

Go to advanced search