Hi Dominik and KeePass contributors,
I'd like to point you towards a little bug regarding the APPACTIVATE Auto-Type placeholder.
this only works if the options "Cancel auto-type when the target window changes" and "Cancel auto-type when the target window title changes" are turned off (under Options > Advanced > Auto-Type Sending).
User MD004 described this behaviour in this forum post and I can confirm with KeePass 2.45 running on Win10. He suggests that this settings should be overridden by the APPACTIVATE placeholder.
This would also be my preferred solution. The easier alternative would probably be to document the dependency on this documentation page.
Thanks for your effort and this awesome tool. Keep up the great work, it helps a great deal to make IT a safer :-)
More specifically, StiEngineStd saves the window in focus at creation, and tests at every key input whether the current focus is identical. If not, it makes all key inputs from now on do nothing (but only key presses, some complex commands like AppActivate itself aren't affected as the auto-type itself isn't really terminated).
So, all there is to do is let AppActivate update the window in focus saved in the StiEngineStd when called.
Inversely, I think AppActivate should invalidate the state of StiEngineStd when it can't find the supposed window (as one can use it as a check to make sure that so far everything went as expected).
An added bonus of this change is that AppActivate can now be used to handle pop-up windows which automatically take the focus (e.g. some legal dialog poping up after logging in which has to be accepted)
I've implemented both these changes and put the changed files as attachment (the remaining files are identical to the source code published for 2.51.1)
I've implemented these two things now:
{APPACTIVATE ...}auto-type command now ignores the options 'Cancel auto-type when the target window changes' and 'Cancel auto-type when the target window title changes'.Here's the latest development snapshot for testing:
https://keepass.info/filepool/KeePass_220830.zip
Moving to closed feature requests.
Thanks and best regards,
Dominik
Ticket moved from /p/keepass/bugs/1984/