I wrote this after seeing Jerome Herr's post on Tumblr and looking at the code here. A few Google searches later, I came up with these.
#include <GDIPlus.au3>
#include <Math.au3>
;~ #AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w- 7
Opt("GUIOnEventMode", 1)
Global Const $...