PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Keep the current window active when using Advanced Paste, similar to the windows built-in clipboard management software.

Open brokensword2018 opened this issue 1 year ago • 2 comments

Description of the new feature / enhancement

Image the gif demonstrates the operation of the windows built-in clipboard management software in a text editor. when I type in clipboard management software, the text editor window is still active and the cursor is blinking. so I can know exactly where the text will be inserted

Scenario when this would be used?

when i use Advanced Paste to paste text, I can know exactly where the text will be inserted.

Supporting information

No response

brokensword2018 avatar Dec 07 '24 14:12 brokensword2018

This is a better experience, but I'm curious if this is possible. Do you know of any existing apps that work this way or is it just the Windows Clipboard?

TheJoeFin avatar Dec 19 '24 01:12 TheJoeFin

up to now, I only find the windows built-in clipboard management software. I am not good at windows development, do not know whether this is possible on windows. This is easy to implement on macos.

brokensword2018 avatar Dec 20 '24 07:12 brokensword2018

<conjecture> I'm guessing what's going on here is that the clipboard history popup is preventing a WM_KILLFOCUS from going to the foreground app. So the app retains "focus", but it loses foreground to the clipboard history.

I don't know how that works off the top of my head. I bet something similar could be achieved with a low-level hook to intercept the WM_KILLFOCUS sent right as we're opening our window. Wouldn't work for admin windows, but 🤷

zadjii-msft avatar Jun 19 '25 14:06 zadjii-msft