Monthly Archives: April 2016

AutoHotkey Hacks for Lazy Nerds Who Like Webcomics

I am beginning to seriously groove on AutoHotkey. It’s a free open-source program that lets you automate things on your computer. A pretty common application appears to be making up your own keyboard shortcuts and/or autoreplace rules.

I initially found it early in my vim kick–a kick which, for the record, is gamely stumbling on as I continue to insist to myself that one day I will learn enough to make vim so magically, brilliantly super-efficient that it will…well, make up for the dozens to hundreds of hours I will have spent learning stuff about vim, I guess.

Anyway, I was getting all excited about vim and learned that many power users remap their keyboards so that CapsLock becomes Esc and vice versa, because vim involves hitting Esc a lot and the CapsLock key is closer and easier, and so I charged ahead and found a little program (the aforementioned AHK) that would let me remap the keys in a fairly straightforward, untechnical way, and I did, and I thought little more of it except for putting in a mental pin to remind me to look more into AHK’s capabilities at some point.

That point was a couple days ago, and boy are my arms tired! Wait, different joke.

Anyway, I started reading up on AutoHotkey a little more and it’s amazing what it can do! It’s really a full-blown scripting…thing. (Application? Tool? Sorry, The Giver. No precision of language here.)

I once jokingly told a colleague that I wasn’t satisfied with the fact that I’d semi-automated a report to where I could run one query, paste the results into one spot in Excel, hit refresh, and send it out. I wanted a single button that would run the query, paste the results, and send the report for me. And then I wanted a machine that would push that button for me every day.

It appears that AutoHotkey is that button. And maybe also that machine. Time will tell.

For now one of my favorite uses I’ve put it to is creating keyboard shortcuts that pull up ‘dashboards’ of all the websites and/or files and/or folders I need to monitor or work on a particular project, task, or topic. It cuts out the friction that slows me down from getting to work (on, say, writing) because I’d have to open the story and the planning document and my music and my tracker and whatever. Or whatever.

I’m sure there will be more on this later, but just as an appetizer, install AutoHotkey and run a script containing the following code, then hit Ctrl-Shift-A. You’re welcome.

;;;;;;;;;;;;;;;;;;;
;Fun Dashboard Ctrl-Shift-A
;;;;;;;;;;;;;;;;;;;
^+A::
navOpenInNewTab := 0x800
navOpenInBackgroundTab := 0x1000

sites:=”www.reddit.com|www.xkcd.com|

www.smbc-comics.com|www.penny-

arcade.com/comic”

ie := comobjcreate

(“InternetExplorer.Application”)
ie.visible := true

Loop, Parse, sites, |
if A_Index = 1
ie.navigate(A_LoopField)
else
ie.navigate(A_LoopField,

navOpenInNewTab)

return

Life Changes and a Usefully Motivational Writing Doomsday Device

Let’s see. I started a new day job yesterday – still an analyst, but analyzing new things. So that’s exciting. I’m loving the work and the people and the space, and, while I’m exhausted between the tons of learning and the raising two young girls, I’m already feeling a whole new level of calm.

We moved some good friends into their new house over the weekend, and that’s exciting as well. They’re part of our little cabal of friends who share meals and watch each other’s kids and ponder deep questions together and such, and it’s really been time for a new house for them so their kids can run around without worrying about downstairs neighbors and they can host dinner without cramming everyone into a tiny apartment dining room. The new place has an open floor plan and an awesome basement den and a room for every kid and a potato in every chicken–wait, not that last one. But it’s great. Still a lot of unpacking, but it’s all downhill (i.e. easier, not worse) from here and I think it will be a big relief for all of us, and especially them, and it’s been way too long coming.

As for book stuff, after a surge of 10,000+ words of Hubris Towers Ep. 7 in a few days last week I haven’t written any more as I adjust to the new job. Should probably knock that out, though. I expect the whole thing will be 12-14k, so if I can squeeze in a little time we can get started on edits. And it’s going to need more edits than usual. Trade-off for relatively rapid writing.

On which note, check out themostdangerouswritingapp.com. Finally a tool that gives me real-time word count, rate in words per minute, and a timer. And a motivational doomsday countdown to boot!

I can’t believe how hard it’s been to find a live words-per-minute writing tool. I’d think that would be built into Scrivener and available as a Google Docs plugin and a thousand free apps. But I’m happy now.

Writing Mission Generator: My Latest Motivation Tool

This isn’t very polished, but it’s fun and it nearly doubled my writing speed on the spot and I wanted to share it with any authors out there who get into this kind of thing. It’s a writing mission generator. You give it an amount of time, and it will give you a word count target, and you see if you can beat the target.

The clever bit is that it will slowly nudge you faster and faster while adjusting to your actual performance. The target words per minute (WPM) it picks is a random number between 80% and 130% of your average WPM so far. So sometimes you get a break and sometimes it really pushes you, but on average it’s making your target pace 5% faster than last round.

Here’s the Microsoft Excel file: Writing Mission Generator

Writing Mission Generator

It’s simple to use, though, as I warned above, I made it in about 4 minutes and it’s not very polished. I didn’t put in any protections, so I recommend storing a blank backup copy just in case you write over the wrong cell accidentally.

The blue cells are the only ones you should enter values in. Enter the amount of time for your next writing burst under Min and Seconds – I usually use the length of the next song on my playlist. It will generate a target WPM, and you’ll need to enter the same number in the same cell so that it doesn’t keep regenerating new numbers and screw up your stats. This also gives you a chance to manually tweak your target if you want to. So if it puts a 22 under target WPM, go to the cell that says 22 and type 22. (Like I said, not polished. Sorry.)

Then get writing! Write as quickly as you can, and when your time is up enter your total word count under Actual Total. Note that this is a cumulative total, not the number of words you wrote in the latest burst. (If you find it easier to think in single-burst word counts, you can use the Target Session and Actual Session columns.) Day Start is just for reference, so I can see my starting word count for the day.

Once you enter your new total, it will show your session stats, your actual WPM for that session, and how far above or below target WPM you were. Then move down a line and repeat. Since I use songs, I do this in 3-5 minute increments and it really gets rather addictive. Here’s the workflow I’ve settled on as my favorite – Spotify at the bottom so I can immediately see how much time I have left and how much to enter for each session, Excel at the far right–I duplicated the Actual Total column at the far right for easy reference–and Scrivener front and center. (Forgot to include it in the screenshot, but I’ll also hit Ctrl-Comma in Scrivener to show my project stats, including overall word count.)

Writing Mission Generator - Sample Workflow

At the end of the session I flip to Excel (Alt-Tab), enter my new total word count, go to the next line and enter the length of the next song and confirm the WPM target, and flip back to Scrivener to keep writing. It takes me about three seconds so I don’t lose much momentum, and it’s one of the most reliable ways I’ve discovered yet of getting into the groove.

Final note: I’ve found I actually don’t do much stat-tracking with this. I just use it as an ephemeral tool. I don’t save it, and I just open a fresh copy each day. If you want to use it to actually track your writing stats over time it will probably need some modifications to optimize it.

If there’s enough interest I’m definitely up for making a tidier or otherwise improved version of this. Just let me know how it works for you and what would make it better.

Cheers!

—Ben