3 ms·
I use Hammerspoon for Mac, have a shortcut set up for Cmd+Shift+V to actually type the letters rather than use the paste function. Works every time someone pull
by 2024throwaway 3y ago
I use Hammerspoon for Mac, have a shortcut set up for Cmd+Shift+V to actually type the letters rather than use the paste function. Works every time someone pulls this stunt.
> hs.hotkey.bind({"cmd", "shift"}, "V", function() hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end)
- brushfoot 3y agoI do the same with AutoHotkey for Windows. It's also come in handy in remote connection GUIs that default to the remote clipboard and legacy desktop applications with controls that don't support pasting.
- reaperman 3y agoI also do this with AHK on Windows, even using the same keystroke. Though I add a small 10-50ms delay between each keystroke, otherwise the input can get mangled sometimes.
- naltroc 3y agoYessss this also solves for Google Sheet's overkill hijack
- danlugo92 3y ago> have a shortcut set up for Cmd+Shift+V to actually type the letters Seems like this would be hard to "google"... can you provide a guide or a link to a guide on how to accomplish this?
- ihumanable 3y agoMaybe try googling the very easy to google for "Hammerspoon" and the guide would literally just be the comment you are replying to.
- rattray 3y agoThank you. I added this myself, but with option instead of shift (because cmd+shift+v already does "paste without formatting" iirc) like so: -- https://news.ycombinator.com/item?id=39640745 hs.hotkey.bind({"cmd", "alt"}, "V", function() hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end)
- 5ol 3y agoIs there any way to do this using a Javascript bookmarklet? I'm on Linux (Wayland), and can't use Hammerspoon or Autokey / Autohotkey. On one banking website (https://yesonline.yesbank.co.in/ https://yesonline.yesbank.co.in/) that blocks pasting, even if I enable paste, pasted passwords don't work whereas typed passwords do.
- bobbylarrybobby 3y agoKeyboard Maestro is also a fantastic app for this kind of stuff, and even adds a reasonable delay between keystrokes (something like 0.05 seconds) to prevent any weirdness.