ahkdll
ahkdll copied to clipboard
WinActivate significantly slower in ahkdll v2 compared to AHK_L
While porting some AHK_L scripts to ahkdll v2, I noticed the WinActivate function is 3x slower than AHK_L, which is already rather slow. This is a bit of a pain point for me because I often run scripts in parallel, so almost every ahk input event (mouse click, keyboard button, etc) must be preceded with re-activating the appropriate window.
In AHK_L v1.1.30.00, I measure the time for WinActivate around 1/10 of a second.
In the current ahkdll v2 release, I measure it at 1/3 of a second.
Is it possible to optimize this?
Thanks
Can you test it in AutoHotkey_H.exe, is it also slower? Can you show your test script?