The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Entry #100061 - Outsourcing Calculator

Last post 06-11-2007 12:09 PM by Alex Papadimoulis. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-11-2007 12:09 PM

    Entry #100061 - Outsourcing Calculator

    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!).
Page 1 of 1 (1 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems