Search found 220 matches

by SAbboushi
22 Aug 2020, 22:50
Forum: Ask For Help
Topic: autoclicker control
Replies: 2
Views: 226

Re: autoclicker control

See #MaxThreadsperHotkey

Try adding #MaxThreadsperHotkey 2 at the top of your script.
by SAbboushi
22 Aug 2020, 21:51
Forum: AutoHotkey v2 Help
Topic: [a122] ComObjValue() and ComCall() Topic is solved
Replies: 3
Views: 1129

[a122] ComObjValue() and ComCall() Topic is solved

Wondering why an exception is thrown when I uncomment out the ComObjValue() statement? The pointer value can be passed directly or encapsulated within an object with the Ptr property, such as a ComObj with variant type VT_UNKNOWN. I'm trying to pass the pointer value directly (not working). When enc...
by SAbboushi
15 Aug 2020, 20:23
Forum: Bug Reports
Topic: [a118] assigning integer properties
Replies: 4
Views: 2019

Re: [a118] assigning integer properties

Thanks: much appreciate that you tracked down the code change too.
by SAbboushi
08 Aug 2020, 09:57
Forum: Ask For Help
Topic: Get members of COM object like in PowerShell
Replies: 1
Views: 674

Get members of COM object like in PowerShell

Per this article , PowerShell exposes the Get-Member cmdlet that can be used to list methods and properties on an object easily Object Members Is there a way to do this in AHK once I have an interface pointer? Background in case you can suggest helpful resources: Right now, I'm trying to get more f...
by SAbboushi
06 Aug 2020, 14:54
Forum: Bug Reports
Topic: [a118] assigning integer properties
Replies: 4
Views: 2019

[a118] assigning integer properties

1..2 or 1.0.2 is the number 1.0 followed by the property 2... obj1.DefineProp( 1, {value: 12}) ; this work I've scoured through the documentation, v2-changes and alpha (UPDATES) but not finding why error is thrown when I try to set an integer property name like this: obj1a := { 1: 12 } ; Invalid pr...
by SAbboushi
23 Jul 2020, 13:02
Forum: AutoHotkey v2 Help
Topic: [a118] __Set examples and recursion
Replies: 1
Views: 232

[a118] __Set examples and recursion

I've reviewed Helgef 's examples of how to avoid infinite recursion in property getters/setters by using a backing field. But I can't for the life of me (2 days later) figure out how to avoid infinite recusion in Meta-Functions... #SingleInstance global xxx:=0 class c1 { __Set( name, args, value ){ ...
by SAbboushi
21 Jul 2020, 10:09
Forum: Bug Reports
Topic: [a118] Gui GetPos() warning for output params Topic is solved
Replies: 11
Views: 3900

Re: [a118] Gui GetPos() warning for output params Topic is solved

@Tigerlily
Thanks for your help. You said exactly what lexikos did:
You can avoid it by initializing the variable before passing it ByRef
by SAbboushi
21 Jul 2020, 09:19
Forum: Bug Reports
Topic: [a118] Gui GetPos() warning for output params Topic is solved
Replies: 11
Views: 3900

Re: [a118] Gui GetPos() warning for output params Topic is solved

Thanks - appreciate the clarifications/education.
by SAbboushi
21 Jul 2020, 09:16
Forum: Suggestions on documentation improvements
Topic: [a118] #Warn
Replies: 2
Views: 872

Re: [a118] #Warn

Ah!
... there are plans to remove the option and replace the warning with an error.
by SAbboushi
20 Jul 2020, 17:05
Forum: Bug Reports
Topic: [a118] Gui GetPos() warning for output params Topic is solved
Replies: 11
Views: 3900

Re: [a118] Gui GetPos() warning for output params Topic is solved

@aseiot wrote about this earlier https://www.autohotkey.com/boards/viewtopic.php?p=342939#p342939 Thanks - missed that. If I'm understanding the thread correctly, lexikos believed [a118] "fixed" that. And if I'm understanding the documentation correctly, I believe the variables in GetPos() are [ref...
by SAbboushi
20 Jul 2020, 16:17
Forum: Bug Reports
Topic: [a118] Gui GetPos() warning for output params Topic is solved
Replies: 11
Views: 3900

Re: [a118] Gui GetPos() warning for output params Topic is solved

I'm not aware of a V2 requirement to initialize output variables. If you're aware of supporting documentation, can you please provide a link?
by SAbboushi
20 Jul 2020, 15:46
Forum: Suggestions on documentation improvements
Topic: [a118] OnError Example #2
Replies: 1
Views: 489

[a118] OnError Example #2

ExAccumulator

Code: Select all

WinMove 0, 0, width, height, "non-existent window"
Uninitialized width and height cause "unassigned" warnings (which is not the point of the example).
Suggest

Code: Select all

WinMove 0, 0, width := 0, height := 0, "non-existent window"
by SAbboushi
20 Jul 2020, 12:46
Forum: Bug Reports
Topic: [a118] Gui GetPos() warning for output params Topic is solved
Replies: 11
Views: 3900

[a118] Gui GetPos() warning for output params Topic is solved

Code: Select all

MyGui := Gui.New()
MyGui.GetPos( X, Y, Width, Height )

/*
Warning:  This variable appears to never be assigned a value.

Specifically: global X

	Line#
	001: MyGui := Gui.New()
--->	002: MyGui.GetPos( X, Y, Width, Height )
by SAbboushi
20 Jul 2020, 12:41
Forum: Suggestions on documentation improvements
Topic: [a118] #Warn
Replies: 2
Views: 872

[a118] #Warn

Remarks
By default, all warnings are off.
Suggest that this is changed to reflect
Parameters
Note: The UseUnset warnings are enabled by default.
by SAbboushi
17 Jul 2020, 11:59
Forum: Wish List
Topic: [v2] and debugger / file path information
Replies: 5
Views: 3026

Re: [v2] and debugger / file path information

Thanks - I'll forward to the developer.

Go to advanced search