Jump to content
Sign in to follow this  

GDI Draw String, Move.

Recommended Posts


Hello Again,

So this time around with GDI Im trying to get a text with a transparent background (And none of that white outline around the text either) and have it move from left to right, or right to left.


This script I found gives me the desired text rendering, no outline no background, now How would I go about moving the string around?

#include <GDIPlus.au3>
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
#include <WindowsConstants.au3>
HotKeySet("{ESC}", "Terminate")
Global $hGUI=0,$bRunning=True

Func Example()
 $hGUI = GUICreate("GDI+ test", 800, 400,-1,-1,$WS_POPUP,$WS_EX_LAYERED)

    If @OSBuild < 6000 Then MsgBox($MB_SYSTEMMODAL, "", "Antialiasing is automatically turned on for your operating system - no visible differences!")

    Local $hGraphics = _GDIPlus_GraphicsCreateFromHWND($hGUI)
    _GDIPlus_GraphicsDrawString($hGraphics, "AutoIt rulez!", 0, 0, "Impact", 110)

    While $bRunning

    ;cleanup resources
EndFunc   ;==>Example

Func Terminate()


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.