About The Contest

The first ever Olympiad of Misguided Geeks contest at Worse Than Failure (or OMGWTF for short) is a new kind of programming contest. Readers are invited to be creative with devising a calculator with the craziest code they can write. One lucky and potentially insane winner will get either a brand new MacBook Pro or comparable Sony VAIO laptop.

Navigation

Advertisements

Entry #100061: Outsourcing Calculator

by John McCloskey
If you can't beat windows calculator, why not use it? My app shells out to the windows calculator, sends key presses, copies the result to the clipboard and displays that result.

**NOTE** Like any good WTF code, there are some side effects. Whatever is in the windows clipboard will be overwritten. I'm sending an alt-F4 keypress to close the windows calculator, so if things don't go quite right then something else is getting closed (hope you saved!).

Download0 Comments