The following changes have been applied to the installer at
http://www.autohotkey.com/download/ :
Improved PixelGetColor and PixelSearch with an option to retrieve colors in RGB vs. BGR format.
Added sub-command "WinSet, Transparent, Off", which completely turns off transparency on a window that was previously transparent. This may help performance. [thanks dijiyd]
Added sub-command "WinSet, TransColor", which can make a window's background transparent on Windows 2000/XP+. This allows the creation of on-screen displays and other visual effects.
Here is an example of a simple on-screen display:
Code:
CustomColor = EEAA99 ; Can be any RGB color (it will be made transparent below).
Gui, color, %CustomColor%
Gui, font, s24
Gui, add, text, vMyText cLime, XXXXX YYYYY ; XX & YY serve to auto-size the window.
Gui, show, x0 y400
WinWait, A ; Set the "last found" window for use with the next two commands.
; Make all pixels of this color transparent and make the text itself translucent (150):
WinSet, TransColor, %CustomColor% 150
WinSet, AlwaysOnTop, On
; Remove the borders. Due to a quirk in Windows, this must be done after transparency:
Gui, -Caption
SetTimer, UpdateOSD, 500
return
UpdateOSD:
MouseGetPos, MouseX, MouseY
GuiControl,, MyText, X%MouseX%, Y%MouseY%
return