Search found 190 matches

by SAbboushi
08 Jul 2020, 22:44
Forum: Wish List
Topic: [a115] FileDelete "completed successfully" for non-existent file
Replies: 1
Views: 860

[a115] FileDelete "completed successfully" for non-existent file

Code: Select all

FileDelete( "LogFile1234.txt" )
Results in message:
Error: (0) The operation completed successfully.
Would prefer something like "File not found"
by SAbboushi
28 Jun 2020, 07:54
Forum: Bug Reports
Topic: V2: #Warn giving incorrect warnings in AutoHotkey_2.0-a099-ca386dc? Topic is solved
Replies: 7
Views: 2703

Re: V2: #Warn giving incorrect warnings in AutoHotkey_2.0-a099-ca386dc? Topic is solved

Been trying to think of a way to give you a shout out for awhile now: I'm often awestruck at the amount of work it must take for you to continue improving ahk as you have -- and at such a high quality level -- and keeping the doc updated with the changes. Amazing and Thanks!
by SAbboushi
20 Jun 2020, 18:38
Forum: Editors
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 16
Views: 3614

Re: new vscode extension allows advanced AHK V1/V2 debugging

Very Nice: VARIABLES Pane variables and values are relative to the selected stack frame in the CALL STACK section Gotcha: Data Inspection Hover over variable names is case sensitive: the first used variable name wins: Var1 := 0 var1 := 1 VAR1 := 2 Hover over Var1 will display the current value; hove...
by SAbboushi
20 Jun 2020, 17:07
Forum: Editors
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 16
Views: 3614

Re: new vscode extension allows advanced AHK V1/V2 debugging

I like the vertical lines in the Variables pane: after years and years, I still get confused without having to collapse a hierarchy: these vertical lines make it more intuitive for me: vscode_variablesPaneVerticalLines.png Other features I like (they save a couple mouse clicks/keystrokes each time):...
by SAbboushi
19 Jun 2020, 17:59
Forum: AutoHotkey v2 Help
Topic: Confused about "value properties" Topic is solved
Replies: 13
Views: 3878

Re: Confused about "value properties" Topic is solved

Thanks guys - much appreciated
by SAbboushi
19 Jun 2020, 13:52
Forum: AutoHotkey v2 Help
Topic: Confused about "value properties" Topic is solved
Replies: 13
Views: 3878

Re: Confused about "value properties" Topic is solved

swagfag wrote:
19 Jun 2020, 13:38
a112 has already been released, check github
Thanks - I'm also a noob with github and wasn't able to find update notes for a112 and
lexikos hasn't yet posted them
by SAbboushi
19 Jun 2020, 13:43
Forum: AutoHotkey v2 Help
Topic: Confused about "value properties" Topic is solved
Replies: 13
Views: 3878

Re: Confused about "value properties" Topic is solved

swagfag wrote:
19 Jun 2020, 13:38
property descriptors have always been plain Objects
Sorry - not seeing your point re: my question...?
by SAbboushi
19 Jun 2020, 13:41
Forum: AutoHotkey v2 Help
Topic: Confused about "value properties" Topic is solved
Replies: 13
Views: 3878

Re: Confused about "value properties" Topic is solved

SAbboushi wrote:
19 Jun 2020, 12:57
Are you saying that C_instance_OwnPropDesc and OwnPropDesc will both be objects in a112?
It seems to me the answer is "yes" according to this:
For a value property ...

Code: Select all

Obj.GetOwnPropDesc(Name).Value == Obj.%Name%
[/url]
by SAbboushi
19 Jun 2020, 12:57
Forum: AutoHotkey v2 Help
Topic: Confused about "value properties" Topic is solved
Replies: 13
Views: 3878

Re: Confused about "value properties" Topic is solved

the docs is pretty clear about this dude. Sorry -- seems I'm a little "slow" -- and unable to test how this might be different per lexikos' post above since a112 isn't released yet ; a111 class C { valueProp := '' dynamicProp[] { get => '' set => value } } C_instance := C.new() C_instance_OwnPropDe...
by SAbboushi
19 Jun 2020, 12:16
Forum: AutoHotkey v2 Help
Topic: Confused about "value properties" Topic is solved
Replies: 13
Views: 3878

Re: Confused about "value properties" Topic is solved

https://lexikos.github.io/v2/docs/objects/Object.htm There are value properties and dynamic properties. Value properties simply contain a value. Dynamic properties do not contain a value, but instead call a getter or setter function when accessed. .GetOwnPropDesc() For a value property , the return...
by SAbboushi
19 Jun 2020, 11:16
Forum: Editors
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 16
Views: 3614

Re: new vscode extension allows advanced AHK V1/V2 debugging

I'm able to run/debug multiple v1 .ahk and multiple v2 .ahk all at the same time.
by SAbboushi
19 Jun 2020, 11:14
Forum: Editors
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 16
Views: 3614

Re: new vscode extension allows advanced AHK V1/V2 debugging

Nope. I use .ahk extension for all versions
by SAbboushi
19 Jun 2020, 10:47
Forum: Editors
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 16
Views: 3614

Re: new vscode extension allows advanced AHK V1/V2 debugging

I'm using dudelmoser's language extension for V2 and slevesque's for V1.

dudelmoser's extension provides autocomplete and parameter hints (but looks like it hasn't been updated for 5 months...).

Typing #S:
dudelmoser_autocomplete.png
dudelmoser_autocomplete.png (40.78 KiB) Viewed 1868 times
by SAbboushi
19 Jun 2020, 10:22
Forum: Editors
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 16
Views: 3614

Re: new vscode extension allows advanced AHK V1/V2 debugging

Some screen shots:
vscodeAHKV2.png
vscodeAHKV2.png (301.51 KiB) Viewed 2003 times
vscodeAHKV2_folders.png
vscodeAHKV2_folders.png (18.71 KiB) Viewed 1851 times
by SAbboushi
19 Jun 2020, 10:17
Forum: Editors
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 16
Views: 3614

Re: new vscode extension allows advanced AHK V1/V2 debugging

Sweet! Can easily run/debug (concurrently) multiple AHK versions (e.g. a108, a111...) with scripts associated with those versions (e.g. LibV2, LibV2_a108). I'm finding that very useful when I need to update scripts to make them compatible with new V2 updates like v2.0-a111-06d0a13b that has "numerou...
by SAbboushi
18 Jun 2020, 10:59
Forum: Editors
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 16
Views: 3614

Re: new vscode extension allows advanced AHK V1/V2 debugging

I posted in Editors with link to this thread. I agree it might make more sense if moderator moved this thread to Editors
by SAbboushi
18 Jun 2020, 05:26
Forum: Bug Reports
Topic: [a111] "catch" and DBGp not playing nice? Topic is solved
Replies: 2
Views: 1554

Re: [a111] "catch" and DBGp not playing nice? Topic is solved

Thanks - I downloaded v2.0-a111 again and now works fine. Wish I'd done that before reporting... sorry
by SAbboushi
17 Jun 2020, 22:47
Forum: Bug Reports
Topic: [a111] "catch" and DBGp not playing nice? Topic is solved
Replies: 2
Views: 1554

[a111] "catch" and DBGp not playing nice? Topic is solved

Single stepping through a catch statement terminates the debug session without any error message. Worked fine in prior versions (e.g. 108) and I don't see anything in version update notes that might apply.

Code: Select all

try
    throw Exception("oops", 3)
catch e
    msgbox e.what
by SAbboushi
17 Jun 2020, 22:01
Forum: AutoHotkey v2 Help
Topic: Confused about "value properties" Topic is solved
Replies: 13
Views: 3878

Re: Confused about "value properties" Topic is solved

Thanks - still confused though: is it that GetOwnPropDesc() and DefineProp() are only applicable to special objects that are related to getters/setters?

Go to advanced search