Torology Web Development



Finally A New Post!

By Blake Hancock, July 2nd, 2010

I have been neglecting this blaawwwwwwg pretty badly so I decided to make a new post. I'm not sure what to cover so I'll just display some text and images of a quest to make my life easier.

I, like many, prefer my hex codes to be upper case. Photoshop's colour picker however, seems to prefer lower case. This is problematic as when I copy said hex colour code to a CSS document, I then have to covert it to upper case or suffer every time I look at it.

Photoshop Colour Picker Hex Input

How could I solve this very serious problem I thought to myself. After doing a bit of research, I found there exists a Windows API to monitor the clipboard. I then created a clipboard command trigger plugin for my open source Executioner program that executes a command when the text copied to the clipboard matches a regular expression.

Executioner Clipboard Trigger

The command that gets executed is just a simple Lua script that grabs the clipboard contents, makes it upper case, and then sets the clipboard to the new value.

Upper Case Clipboard Lua Script

Problem solved!