Automate Unicode character encoding for HTML

Unicode character encoding

Our CMS does not support Unicode text thus when we need to search-replace for characters like the and © symbols. This takes a fair amount of time and is easy to miss so I wrote a script in AutoHotKey to automatically handle the Unicode character encoding.

Now I can highlight the word and click a button and  Whamo!  Instant replacement with HTML equivalents!  No more trying to scan text and find illegal characters.

replace unicode characters with HTML equivalent

Unicode character encoding

Here is the AutoHotKey code I use.  My code first grabs the highlighted text and copies it to the clipboard, where it manipulates it, then sends it back to the active program I was working in. No more need for Unicode character encoding!



Easily create & update GUI controls in AutoHotKey

Easily create & update GUI controls

This video discusses how to use some of the build in functionality to Easily create & update GUI controls in AutoHotKey. Specifically I discuss the use of Margins, Sections and Previous controls. After watching this video you’ll see GUIs are not nearly as hard in AutoHotKey as you had thought.

Script used in video:

Gui, +AlwaysOnTop +resize
Gui, color,aqua ;keep on top & allow resize
Gui, Add, Text,        , my text1
Gui, Add, Text,        , my text2
Gui, Add, Text,        , my text3
Gui, Add, Text,section , my text4
Gui, Add, Text,ys      , my text5
Gui, Add, Text,        , my text6
Gui, Add, Text,        , my text7
Gui, Add, Text,        , my text8
Gui, Show, w600 h400
#SingleInstance, Force


AutoHotKey script for automatically calculating X days out

Calculating X days out

Calculating X days out

A friend of mine works in manufacturing and is constantly having to determine the future date (e.g. 22 , 36, or 69 days out) and can be tedious if looking at a calendar (especially if it goes across months.)

I wrote a simple AutoHotKey script which returns the date for a given projected calculating X days out.  After saving the below as an AutoHotKey script, run it and an input box will come up asking how far you would like to project.  After you enter a number it will send the date that day falls on to the active editor window.  Now projecting x days out is a breeze!

Here is the AHK code:

And this is a quick video demonstrating Calculating X days out:

Calculating X days out


Debugging Python- Have your best debug code at the tip of your fingers

debugging pythonDebugging Python

I’m learning how to program in Python and have put together some decent gui code which can be very helpful when trouble-shooting your code.

Trying to solve issues by just looking at your code can be done but it isn’t nearly as fast as using some real debugging python code.


Helpful Python Debugging Code

AutoHotKey Debugging Python code

There are other tools for debugging Python but this is a good starting place.