3 ms·
I absolutely love AutoHotKey. I've been using it for over 15 years. I used to use it to format my HTML back when i only used a Text Editor (similar to what this
by hateful 6y ago
I absolutely love AutoHotKey. I've been using it for over 15 years. I used to use it to format my HTML back when i only used a Text Editor (similar to what this link is using for Markdown. I never use my right-control key so I map a lot of stuff to it. I used to have macros on rightctrl+b = surround the selection with <b></b> and later <strong></strong> (yes, it was that long ago). I had some nifty ones with logic for adding <a>s (looking for @ and http:// http://).
These days I use it for fewer things, but still really useful. One of those is making chat applications that don't offer ctrl+enter to send a message - Like Google Hangouts (basically flopping the functionality):
#IfWinActive Google Hangouts ahk_class Chrome_WidgetWin_1
^enter::
Send {Enter}
Return
enter::
Send +{Enter}
Return
Another extremely useful is this one, which will type what's on the clipboard rather than pasting it:
>^v::
SendRaw %clipboard%
Return
And when I hit shift also, it does it slow (for input lag situations):
>^+v::
SetKeyDelay 500
SendRaw %clipboard%
Return
Extremely useful for two main reasons. 1 being input boxes on websites that prevent pasting and 2. certain remote sessions that prevent pasting (like Kesaya or any kind of Console remote application).
- themodelplumber 6y agoWhat are all these websites that prevent pasting? I noticed a few people are using tools to get around these.
- m0nty 6y agoIf you mean "why do they prevent pasting?" -- because their talented and conscientious devs think password managers are insecure. I've tried emailing several webmasters about this but it's a waste of time.
- CydeWeys 6y agoA common one I see is when you're entering in bank account information and they force you to retype the account and/or routing number, even though you never typed it in to begin with because you just copy-pasted it from your bank's website :/
- vxNsr 6y agoThe worst is the banks that don’t let you copy it... I don’t understand this insanity around bank account numbers... they should be treated as public info, they’re on every single check, anyone you’ve given a check to has your account number as does your employer...
- Forge36 6y agoIt's an easy way to feel smart? I had to put up a fuss about this and cite NIST. My bank tried to do this, but it only works on the username field in chrome?
- deleted 6y ago[deleted]
- zrobotics 6y agoFor a really stupid example, part of my job involves originating truck shipments. One carrier we use has a website that prevents pasting on their web form to generate a bill of lading. Because forcing me to type in an address is much less likely to cause errors than pasting in whatever address I had copied. Funnily enough (in a sad way), 40% of the JS load on that page appears to be anti-pasting logic & supporting libraries. It appears to be developed in-house, since the scripts aren't obfuscated and a quick search of duckduckgo didn't match any open-source libraries that I could find. If they weren't reliably the cheapest carrier with the fewest issues I would raise a stink, but it's not worth it. That, and I just bypassed this 'feature' with a very similar AHK script, and their website has a very nice UI besides that issue.
- hateful 6y agoThe irony of all this is that one time in the 00s, I signed up for a website and copied and pasted my email to the verify field and it was wrong!
- johnsoft 6y agoFor #1 (just as an alternative) I've had good luck with this extension: https://addons.mozilla.org/en-US/firefox/addon/don-t-fuck-with-paste/ https://addons.mozilla.org/en-US/firefox/addon/don-t-fuck-wi... Thankfully I've never had to deal with #2
- hateful 6y agoI have that extension, too!