How to Display Shadowed Text in a GUI ?http://www.autohotkey.com/forum/viewtopic.php?p=54227#54227Two Similar Texts (
with transparent background) can be overlapped (
superimposed)
one over the another (with a slight offset) to create
an effect of shadowed text.
These
texts have to be colored in contrast with each other.
The following example code displays a "Shadowed Text" in a GUI
Code:
Text= Shadowed
Gui, -Caption
Gui, Color, 5E43FF
Gui,Font, s36 Bold, Verdana
Gui, Add,Text,x4 y4 w384 h80 Center vText1 c000000 BackgroundTrans, % Text
Gui, Add,Text,x0 y0 w384 h80 Center vText2 cFFFFFF BackgroundTrans, % Text
Gui,Show,w400 h80
Return
GuiClose:
GuiEscape:
ExitApp
Return
The result of the above code:

Seen in the above snapshot - The White colored text is vertically and
horizontally offset from the Black colored text by 4 pixels.
This might be a good technique for large sized texts only.
I use this technique when scripting an Installer with AHK.
Compare these 2 snapshots taken from a working demo.


Want to try the Demo? You may download it : ST_Demo.ahk or View the code : ST_Demo.ahk.txtHow to Display OSD with Shadowed Text : Example code is here