I bought a Packard bell remote from tekgems.
That brought me to WinLirc. I looked in the archives and saw the post about Autohotkeys and took a look around and thought it looked alot like autoit V2.
I didn't study it much but did see some interesting things.
Alas prior to coming here I knew enough about autoIt that I was intent on using that to expand upon winlirc.
I/you will  have to use the beta version of AutoIt to realize the power of what we want to achieve. It grows monthly.
In the \beta\examples folder is a script to toggle between beta and release versions.
Note: the SciTe editor will use the release version help file unless you move the beta help files to that directory.
Release version
Beta version: Needed for these scripts
SciTe editor/IDE
Help forum