Search found 4709 matches

by Helgef
21 Jan 2023, 05:15
Forum: General Discussion
Topic: Code Puzzle Thread
Replies: 145
Views: 83571

Re: Code Puzzle Thread

Hello @teadrinker, glad to see you participate :)

The oneliner part of the puzzle should utilise the * operator, which provides non-hackish ways to loop in an expression.

Cheers.
by Helgef
22 Dec 2022, 08:25
Forum: General Discussion
Topic: Window Trouble
Replies: 10
Views: 1829

Re: Window Trouble

that function might be a good candidate for my use case, thanks again

Cheers 🎄🎅
by Helgef
21 Dec 2022, 13:36
Forum: AutoHotkey Development
Topic: congrats
Replies: 13
Views: 3150

Re: congrats

Well done and thank you very much @lexikos and @Ragnar and others.

Happy holidays everybody, cheers :xmas:
by Helgef
21 Dec 2022, 13:31
Forum: General Discussion
Topic: Window Trouble
Replies: 10
Views: 1829

Re: Window Trouble

thank you for the information :thumbup:

Cheers.
by Helgef
17 Dec 2022, 13:37
Forum: General Discussion
Topic: Window Trouble
Replies: 10
Views: 1829

Re: Window Trouble

Issue demonstration, ; Script 1 gui(,'helgefffehfelfef').show('w200 h200') dllcall 'Sleep', 'uint', 15000 exitapp ; Script 2 +1::{ hwnd := winexist('helgefffehfelfef') tooltip IsHungAppWindow(hwnd) winhide hwnd tooltip IsHungAppWindow(hwnd) exitapp } esc::exitapp IsHungAppWindow(hwnd) => dllcall('Is...
by Helgef
17 Dec 2022, 10:31
Forum: General Discussion
Topic: Window Trouble
Replies: 10
Views: 1829

Re: Window Trouble

It seems like ahk skips ishung check for hide/show, // Seems safe to assume it's not hung in these cases, since I'm inclined to believe // (untested) that hiding and showing a hung window won't lock up our thread, and // there's a chance they may be effective even against hung windows, unlike the //...
by Helgef
17 Dec 2022, 10:22
Forum: General Discussion
Topic: Window Trouble
Replies: 10
Views: 1829

Re: Window Trouble

Thank you very much for your reply and efforts swagfag :) IsHungAppWindow() returns 1 :o. I thought AHK called IsHung, but maybe I've dreamt this. More fun from ms, on IsHung, Ghost windows always return TRUE. There is ofc no link or explanation on what this means. Sigh... :facepalm: I guess filteri...
by Helgef
17 Dec 2022, 04:53
Forum: General Discussion
Topic: Window Trouble
Replies: 10
Views: 1829

Window Trouble

On my PC there currently exist a window which causes some issues with ahk. About the window, which is visible, WinGetTitle: Setup ProcessGetName: CodeSetup-stable-6261075646f055b99068d3688932416f2346dd3b.tmp width: 0 height: 0 ProcessGetPath: \AppData\Local\Temp\is-JG9KB.tmp\CodeSetup-stable-6261075...
by Helgef
12 Dec 2022, 04:08
Forum: Bug Reports
Topic: [v2.0-rc.3] `#HotIf [string]` is always false Topic is solved
Replies: 6
Views: 1082

Re: [v2.0-rc.3] `#HotIf [string]` is always false Topic is solved

But it's still weird because in the v1 documentation, Hotkey, If, % FunctionObject also says it needs a non-zero number, but #If "some string" works fine. Well, v1 is filled with weirdness, so nothing weird with v2 being less weird, i.e., #hotif and hotif being consistent. Though, non-numbers being...
by Helgef
10 Dec 2022, 13:43
Forum: Bug Reports
Topic: [v2.0-rc.3] `#HotIf [string]` is always false Topic is solved
Replies: 6
Views: 1082

Re: [v2.0-rc.3] `#HotIf [string]` is always false Topic is solved

I don't think this is a bug, the expression probably needs to evaluate to a non-zero number to be true, like hotif(). In any case, #Hotif 'quoted string' is pretty silly. Edit, it might be an oversight in the documentation on #hotif though

Cheers.
by Helgef
09 Dec 2022, 13:22
Forum: Ask for Help (v2)
Topic: [2.0-rc1] Bug Report (Maybe)?
Replies: 4
Views: 544

Re: [2.0-rc1] Bug Report (Maybe)?

i cant use function that in myclass(MainClass) in my nested class No you can't, by using super. Alternatively you can create a property through which you can reference the enclosing class, if you do not mind the circular reference, class MyClass { static __new()=>this.MySubclass.outer := this ; Or ...
by Helgef
04 Dec 2022, 13:11
Forum: Ask for Help (v2)
Topic: [2.0-rc1] Bug Report (Maybe)?
Replies: 4
Views: 544

Re: [2.0-rc1] Bug Report (Maybe)?

A nested class is not what is meant by subclass. A subclass is a class which extends/inherits from another class, which is its super class,

Code: Select all

class mySubclass extends mySuperclass{
	static a()=>super.b()
}
class mySuperclass{
	static b()=>msgbox()
}
mySubclass.a
Cheers
by Helgef
04 Dec 2022, 05:55
Forum: Bug Reports
Topic: [v2.0-rc.1] Better error message for missing parentheses
Replies: 7
Views: 2117

Re: [v2.0-rc.1] Better error message for missing parentheses

the real error is that the EnvGet call is missing the parentheses. I think it would be great if the error message could be improved for the case of missing parentheses, in particular now that AHK 2 is new and many users converting their scripts will probably run into this kind of error. I disagree,...
by Helgef
20 Nov 2022, 09:54
Forum: General Discussion
Topic: Code Puzzle Thread
Replies: 145
Views: 83571

Re: Code Puzzle Thread

Emile HasKey har provided a complete solution for :arrow: puzzle 16 , please enjoy, ; for Puzzle 16 - The unliner (2nd attempt) ; link: https://www.autohotkey.com/boards/viewtopic.php?p=484863#p484863 ; by Emile HasKey ; when the Sort comparison function returns 0, the number of comparisons is appr...
by Helgef
04 Nov 2022, 11:41
Forum: Visual Studio Code
Topic: AutoHotkey v2 Language Support, used in any editor that supports lsp
Replies: 47
Views: 18977

Re: vscode language server for ahk v2

I tried it, very good. It helped me solve a problem (mastodontic shipwreck error a la helgef :headwall: :oops: :facepalm: )

Thanks for sharing, cheers.
by Helgef
04 Nov 2022, 11:31
Forum: Ask for Help (v2)
Topic: Class > __New() -- DefineProp() weirdness with Buffer() Topic is solved
Replies: 6
Views: 677

Re: Class > __New() -- DefineProp() weirdness with Buffer() Topic is solved

That is correct.

Also note that this.DefineProp("ptr", {Get:(o) => this.buf.ptr}) creates a circular reference, better to use o.buf.ptr.

Cheers
by Helgef
04 Nov 2022, 11:22
Forum: Ask for Help (v2)
Topic: Class > __New() -- DefineProp() weirdness with Buffer() Topic is solved
Replies: 6
Views: 677

Re: Class > __New() -- DefineProp() weirdness with Buffer() Topic is solved

a()=>b() will call b every time you call a, and only then.

Cheers.
by Helgef
29 Oct 2022, 03:46
Forum: Ask for Help (v1)
Topic: recreating AHK v2's ComCall function
Replies: 11
Views: 1662

Re: recreating AHK v2's ComCall function

jeeswg wrote: The documentation says 'Cdecl HRESULT' is invalid, that you can't have a prefix/suffix with HRESULT:
Cdecl isn't used as a prefix or suffix. Prefix/suffix refers to the U prefix and p/* suffixes. 'Cdecl HRESULT' is valid.

Cheers.
by Helgef
15 Oct 2022, 11:17
Forum: Ask for Help (v2)
Topic: _wcsrev problem Topic is solved
Replies: 9
Views: 819

Re: _wcsrev problem Topic is solved

Very good, my mistake :thumbup:

Cheers.

Go to advanced search