Live data from Hacker News

In Praise of AutoHotKey

hillelwayne.com

131–140 of 220 posts

Re: In Praise of AutoHotKey

#131
post #126

Earlier quoted context omitted.

Spoken like someone who's never caused a prod outage at a real company, I guess. I'd say that - outside of some startup or small company that has few (or no?) users - the cautious approach is right. The IT guy knew that he was a podunk pissant warden of a very, very small portion of very, very large organization (an org of a few hundred people is basically nothing compared to the vastness of many oil companies) and t…

It's a data entry script. If it fails they just do their job the old way until the guy fixes it. It's typing text into forms. Just make everyone do things the "old way" once a week so they still know how to do it if the script ever fails.

Okay, but after a week (or two or whatever), how do you rectify the issue you found? It's easy to say get those people back and have them start entering again. What about the customers whose information was inaccurate, the resources that were misallocated, etc? Do you think data entry is done for fun? At AWS we use massive metrics and piles of data to decide what's right; why would an oil company be different, just because their metrics are collated by hand from smaller oil wells into larger spreadsheets or whatever? "By Hand" doesn't mean "totally without value", that's completely wild. Does your super low opinion of data entry people cloud your vision of their value?

There's not been a response to my question of how you reconcile things after this script messes up for the first time; how does that happen? What's the DR plan? if you have real business and real clients working on this data, tell me what the plan is; it shouldn't be that hard.

Re: In Praise of AutoHotKey

#132

I learned programming with AutoHotkey when I was 15. I first used it to automate grinding gold and items in a simple flash-based RPG for me and my younger siblings around ~2005. At first it just clicked certain locations that buttons would be on a fixed schedule to advance a quest to the end and repeat. But then, being a flash game after all, sometimes it would take a second to load the next screen which throws off t…

> I ended up being more interested in the programming than the game

I’ve been a swe for years, but this is how I felt about Pokémon go before they started blocking the apis people had developed. My only goal was to catch all 151 Pokémon. Because of where I live, I had a very hard time finding pokestops so I looked into and found the apis.

I was able to grind out lvls and catch Pokémon, spin stops, etc. I won’t go into all the things I did, but it sure was fun. I suppose I was harming the game because I wasn’t spending real money on in-game items, but besides that I don’t think I was harming any of the other players.

APIs got shut down, haven’t touched it since.

Re: In Praise of AutoHotKey

#133
I used to play online poker - 17 tables spread over 2 30" monitors. I used auto-hotkey, combined with my MX Revolution mouse - to automate all kinds of things to allow me to play that many tables - raise, fold, go all in, rearrange the tables. It was great.

Re: In Praise of AutoHotKey

#134

Earlier quoted context omitted.

Would they get in trouble when someone used an automation tool that submitted hundreds of thousands of empty or even worse completely incorrect records, with no reconciliation plan? If so, then they're completely right to stop some novice programmer from bringing their scripts to bear. There's no reason to take that risk if they have the funding for the current human solution. Bring it up to the superiors and pitch i…

> Would they get in trouble when someone used an automation tool that submitted hundreds of thousands of empty or even worse completely incorrect records, with no reconciliation plan? As I said in my comments above, it's a question of who owns the data. In general, other than things like financial information and HR records, IT does not own the data in our company. They provide lots of services (version control, Jira…

> As I said in my comments above, it's a question of who owns the data. In general, other than things like financial information and HR records, IT does not own the data in our company. They provide lots of services (version control, Jira boards, etc). They often are responsible for backing them up at a specified interval (daily, etc). And they are responsible for configuring them to be secure (which may involve shutting off APIs). But they don't own whether someone can write a script to automate clicking on fields, etc.

I don't understand what that means. With noted exceptions, nobody owns specific data in any of the many companies where I've worked or consulted. You own data stores, get restricted access to other data stores... that's services, even if it's SOA/P. Standard for many many years.

> If IT was responsible for every database, Jira board, etc in the company beyond their regular backup, little work would be done. It's a huge company, and we cannot have one org be a bottleneck.

Not sure what this has to do with the situation at hand, where a user who was a part of a human data entry team dealing with metrics around oil rigs and live oil pipeline data decided to automate their data entry dayjob. No data stores or backups were touched beyond their contribution.

> No one has answered my question that I brought up several times: If I can write my own program to do it, should they ban compilers as well? I'm sorry but whatever damage a VB script can do can also be done by C#. Should we ban Visual Studio?

I don't understand your insistence that a language is meaningful. Why would the IT guy sign off on a haskell program, or a java program, or a python or awk or bash pipeline? He doesn't have the expertise to verify that it does what your job is to do. He doesn't know the guy's job, doesn't see testing, can't verify if it's right or not. With no verification of correctness, he's completely right to block it, no? I almost feel like I'm missing something here.

Sure, my employer allows me to run whatever I want on my laptop. They don't let me pump piles of data into prod environments from that laptop even if it's done in AHK, F#, ... whatever. Why would they? That's a crazy requirement to have.

If you have over 50k employees and each person is allowed to script prod data, let me know the name and some prod endpoints for your company. I'll give you a hundred bucks on the spot :)

Re: In Praise of AutoHotKey

#135
post #17

I've started[1] to do similar things on macOS using Hammerspoon[2]. So far I've set it up to let me: 1. Use shift when pasting something to simulate typing in the text instead, getting around websites that block pasting. 2. Use ";" as a hyper key. By holding it down and pressing another key, I can switch between specific programs without cycling. I can also use hjkl as arrow keys. 3. Automatically switch audio input…

> getting around websites that block pasting. This one really drives me mad. Is there really any legit reason to this? By the way my hack is I paste it in the address bar, then just drag-drop into the field. Works 50% of the time or more (fails when a lot of these stupid websites don't use placeholder attribute but rather use some sort of Javascript for the placeholder text)

I use one site that completely unreasonably blocks paste with Ctrl+V. The Paste context menu item works, though, so I use `Menu P` instead of Ctrl+V.

Re: In Praise of AutoHotKey

#136

Earlier quoted context omitted.

There's no "prod outage" here. It was a data entry script.

What happens with that data, though? Is this a non production data entry job?

Same that would happen with the manual typing process. The workflow either includes a process for auditing data quality or it doesn't, regardless of how it was entered in.

Re: In Praise of AutoHotKey

#137
post #22

The hotstrings feature is also present in Linux, where they are known as compose sequences. The default compose sequences can be found in the Compose files under /usr/share/X11/locale and you can also have custom compose sequences in ~/.XCompose. Some of the compose sequences make use of a special Compose key (written in the rules). You may need to go to the keyboard settings to enable the compose key. https://en.wik…

And on Windows you can use WinCompose to get all the normal compose key sequences and more, plus you can add your own in with ~/.XCompose.

I love my Compose key. When I looked into purchasing a Surface Book (and switching to Windows) some four years ago based purely on its specs, the two critical factors were WSL and WinCompose—without either one of those two, I couldn’t have, wouldn’t have switched.

(I also use an AutoHotkey script for a few other things like remapping Win+F to maximise/restore, and disabling the horrifically slow Win+Tab which was too easily triggered by accident.)

Re: In Praise of AutoHotKey

#138
post #29

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 and later (yes, it was that long ago). I had some nifty ones with logic for adding s (looking for @…

For #1 (just as an alternative) I've had good luck with this extension: https://addons.mozilla.org/en-US/firefox/addon/don-t-fuck-wi... Thankfully I've never had to deal with #2

I have that extension, too!

Re: In Praise of AutoHotKey

#139
post #79

Earlier quoted context omitted.

What are all these websites that prevent pasting? I noticed a few people are using tools to get around these.

It'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]

Re: In Praise of AutoHotKey

#140
post #29

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 and later (yes, it was that long ago). I had some nifty ones with logic for adding s (looking for @…

What are all these websites that prevent pasting? I noticed a few people are using tools to get around these.

The 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!
Post reply on HN