In KeyPass X, what is the specification of the clipboard that is temporarily pasted clipboard?

Asked 2 years ago, Updated 2 years ago, 36 views

If you use KeepPass X on Windows, you can see that it behaves like "copy to the clipboard so that you can paste it only once."specifically:

  • Select
  • Copy Password to allow you to "paste" passwords
  • After entering the password, the last copy/cut should have been this password, but if you try to paste it too much, nothing will be pasted
  • However, if you enter a password twice for verification, it will be pasted without any problems

The clipboard is managed by the operating system, so I'm wondering if the Windows operating system has a built-in specification to handle this behavior, but I can't imagine what the implementation is like.

ASK:

  • What is the API specification for the Windows operating system for "Copy to Clipboard as if it were pasted only once" as used by KeePassX?Specifically, what triggers the clipboard to be cleared?

windows

2022-09-29 22:51

1 Answers

KeepassX uses C++'s Qt5 to create a graphic interface and uses the Qt's Clipboard.
I think Windows has expanded this part of github.

https://github.com/keepassx/keepassx/blob/b654fde9cd43202903c0e9e08b2043315335759b/src/gui/Clipboard.cpp

Copy the password as a trial, exit KeePassX immediately, and paste it into a text editor. I don't think I can paste it anymore.


2022-09-29 22:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.