Mar 22, 2015

Alt-Cat

I decided I was tired of alt-tabbing while trying to write... so I spent two hours writing a program to stop that. Efficiency! It registered when you control-T or alt-tab, and instead pops up a message box with an inspiration/berating quote.

Then I realized I could do this with kittens and dog gifs instead, and wrote the best six lines of code ever.


^t::
Run, http://theoldreader.com/kittens/600/400/
return

!TAB::
Run, http://omfgdogs.com/
return

--

If you want to use the code, feel free. I used AutoHotkey, which is a pretty simple coding language. We used it in QA for setting up console command macros, auto-clickers, etc. It's simple enough that even a liberal arts major like me, with only one semester of C++, could use it.

Notes:

  • OMFGdogs was made by @eataudio.
  • The random cats javascript was set by knyar (http://knyar.net/), with cat pics posted to Flickr under Creative Commons licenses.
  • You can find the file as a .exe at https://drive.google.com/file/d/0B9ZXbwoBXipdekpVSjRXRkx5Q1U/view?usp=sharing

No comments:

Post a Comment