ahkdll icon indicating copy to clipboard operation
ahkdll copied to clipboard

WinActivate significantly slower in ahkdll v2 compared to AHK_L

Open jayquonmarton opened this issue 6 years ago • 1 comments

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

jayquonmarton avatar Oct 11 '18 16:10 jayquonmarton

Can you test it in AutoHotkey_H.exe, is it also slower? Can you show your test script?

HotKeyIt avatar Nov 11 '18 18:11 HotKeyIt