Annoying login window that doesn't allow you to paste your 128-char long password?
dfwp
to the rescue!
dfwp
uses keyboard.write()
to simulate pasting.
CleanShot-2024-07-20T11-35-29-converted.mp4
Demo: using dfwp
to deal with trading software's unpastable login text fields.
Requires Python>=3.10, <4.0.
This is the recommended installation method.
$ pipx install dont-fuck-with-paste
$ pip install dont-fuck-with-paste
Either dfwp
or dont-fuck-with-paste
works.
$ dfwp -h
usage: dfwp [-h] [-t TEXT] [-S] [-V]
Uses keyboard.write() to simulate pasting
options:
-h, --help show this help message and exit
-t TEXT, --text TEXT Text to simulate pasting, uses copied text if not provided (default: None)
-S, --no-strip Do not strip leading/trailing whitespace (default: False)
-V, --version show program's version number and exit
You can install the tool using pipx install dont-fuck-with-paste
and use software like Alfred / Keyboard Maestro / Raycast to invoke the simulated pasting by running dfwp
or ~/.local/bin/dfwp
with a keyboard shortcut or keyword.
$ git clone https://github.com/tddschn/dont-fuck-with-paste.git
$ cd dont-fuck-with-paste
$ poetry install
The naming was inspired by a browser extension with a similar name.