Search found 1249 matches

by kczx3
23 Feb 2021, 13:57
Forum: AutoHotkey v2 Help
Topic: Weird COM behavior - msgbox causes crash Topic is solved
Replies: 5
Views: 164

Re: Weird COM behavior - msgbox causes crash Topic is solved

Why are you manually releasing the pointer before destroying the object? If you stop doing that does it throw any errors?
by kczx3
22 Feb 2021, 19:24
Forum: Wish List
Topic: Built in Chromium Support
Replies: 8
Views: 222

Re: Built in Chromium Support

I wouldn’t count on this ever happening
by kczx3
21 Feb 2021, 09:26
Forum: Bug Reports
Topic: AHK v2 a124 - Radio value can't be set
Replies: 5
Views: 179

Re: AHK v2 a124 - Radio value can't be set

What’s the error say?
by kczx3
19 Feb 2021, 08:17
Forum: AutoHotkey v2 Development
Topic: Preview of changes: scope, function and variable references
Replies: 10
Views: 623

Re: Preview of changes: scope, function and variable references

Thank you! That definitely helps and I appreciate your time to step through that for me :thumbup: A language construct would certainly make validation easier. I work in both PHP and JavaScript a lot so I do have a sense of both types of languages that do and don't have such constructs. I prefer to k...
by kczx3
18 Feb 2021, 09:14
Forum: AutoHotkey v2 Development
Topic: Preview of changes: scope, function and variable references
Replies: 10
Views: 623

Re: Preview of changes: scope, function and variable references

Of course, you could just require the caller to pass an object in the first place That'd be nice if we could enforce that, wouldn't it :) Currently, we can only provide documentation for what to pass, and then validate the argument inside the function/method. So if I am expecting a callback to be p...
by kczx3
17 Feb 2021, 08:19
Forum: AutoHotkey v2 Development
Topic: Preview of changes: scope, function and variable references
Replies: 10
Views: 623

Re: Preview of changes: scope, function and variable references

I think this from your original post is what made me think that they needed to be checked for. IsFunc("name") has also been removed; Type can be used to check for "Func" or "Closure" instead (and class Func may be added in future to permit the use of is Func checks) Ultimately, the goal is just to e...
by kczx3
16 Feb 2021, 20:30
Forum: Bug Reports
Topic: Version 2.0-a124 Not Defined Topic is solved
Replies: 2
Views: 84

Re: Version 2.0-a124 Not Defined Topic is solved

I think you downloaded the wrong a124. There are two versions: the primary and then a preview build with a bunch of other changes.
by kczx3
16 Feb 2021, 09:26
Forum: AutoHotkey v2 Development
Topic: Preview of changes: scope, function and variable references
Replies: 10
Views: 623

Re: Preview of changes: scope, function and variable references

So to determine if something is callable we'd need to do:

Code: Select all

if (Type(myVar) ~= "Func|Closure" || HasMethod(myVar, "Call")) {
    myVar(true)
}
?
by kczx3
10 Feb 2021, 16:18
Forum: Wish List
Topic: [Request] Module Export
Replies: 25
Views: 6348

Re: [Request] Module Export

Again, I think that is a completely different topic than what this thread (your thread) is about. Package manager vs. Module/Namespaces
by kczx3
10 Feb 2021, 14:24
Forum: Wish List
Topic: [Request] Module Export
Replies: 25
Views: 6348

Re: [Request] Module Export

@Chunjee
I'm a bit confused by what you are wanting to point out on that page. It is quite large and frankly, I don't think package.json has anything to do with namespaces/modules. That is for declaring dependencies and managing them which I see as a totally separate topic.
by kczx3
02 Feb 2021, 20:26
Forum: Editors
Topic: Notepad++ styling language xml files
Replies: 5
Views: 572

Re: Notepad++ styling language xml files

It seems AutoGUI highlights the comments correctly but it highlights some of the other things strangely too. This is part of the problem when strings aren't required to be within delimeters like " and '.
by kczx3
02 Feb 2021, 20:18
Forum: Editors
Topic: Notepad++ styling language xml files
Replies: 5
Views: 572

Re: Notepad++ styling language xml files

Hmmm I see it too. I'm not sure though. I haven't used Notepad++ in a long time to edit AHK files. Technically, AHK comments must have white space before the semicolon OR start at the beginning of the line. I'm not sure how to force the space thing unfortunately. You might post this on the Notepad++...
by kczx3
01 Feb 2021, 10:15
Forum: Editors
Topic: Notepad++ styling language xml files
Replies: 5
Views: 572

Re: Notepad++ styling language xml files

Can you supply a code sample to reproduce?
by kczx3
31 Jan 2021, 11:56
Forum: AutoHotkey v2 Help
Topic: How to implement Gui.Destroy()? Topic is solved
Replies: 3
Views: 111

Re: How to implement Gui.Destroy()? Topic is solved

The first argument passed to your callback is the control that launched the event so I’d recommend renaming that parameter. I usually just name it ctrl
by kczx3
30 Jan 2021, 10:45
Forum: About This Community
Topic: Is lexikos still maintaining AHK?
Replies: 18
Views: 1526

Re: Is lexikos still maintaining AHK?

As long as it keeps churning out updates to v2 I think I'd be ok with that :D
by kczx3
30 Jan 2021, 09:27
Forum: Wish List
Topic: Allow built-in variables as default function parameters
Replies: 22
Views: 797

Re: Allow built-in variables as default function parameters

Would this possibly be due to how AHK “compiles” the code in the more complex scenarios? How the reported line number doesn’t actually match up with the actual line number
by kczx3
30 Jan 2021, 08:58
Forum: About This Community
Topic: Is lexikos still maintaining AHK?
Replies: 18
Views: 1526

Re: Is lexikos still maintaining AHK?

As usual, he’s back and has been working on significant changes locally for v2 😊
by kczx3
28 Jan 2021, 12:15
Forum: AutoHotkey v2 Development
Topic: menu.SetIcon too slow
Replies: 2
Views: 288

Re: menu.SetIcon too slow

This is quite crude but demonstrates my thinking using threads. global menuReady := false mainMenu := menu.new() cb := Func("cb") addItem := Func("addMenuItem").bind(mainMenu, 300, cb) SetTimer(addItem, 1) ToolTip("Script is executing!") #HotIf menuReady #F10::{ global mainMenu mainMenu.show() } cb(...
by kczx3
28 Jan 2021, 12:01
Forum: AutoHotkey v2 Development
Topic: menu.SetIcon too slow
Replies: 2
Views: 288

Re: menu.SetIcon too slow

Hmmmm. Well, I don't have that many diferent png files to use. Just using icons from a Dll doesn't seem to take nearly as long as you're reporting though. Maybe its the process of converting the png to an acceptable format to be used with a menu that takes a while. What if you populated the menu wit...
by kczx3
28 Jan 2021, 11:45
Forum: Bug Reports
Topic: ListView GetNext - first parameter validation
Replies: 0
Views: 243

ListView GetNext - first parameter validation

It seems like the ListView GetNext method doesn't do any sort of parameter validation on the first parameter. It doesn't matter what I pass as the first parameter. However, if I pass an incorrect parameter for the second one, it throws an error stating that "Parameter #1 is invalid"... main := gui.n...

Go to advanced search