Skip to content

Instantly share code, notes, and snippets.

@brigand
Created October 24, 2012 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brigand/3943180 to your computer and use it in GitHub Desktop.
Save brigand/3943180 to your computer and use it in GitHub Desktop.
#Include <GDIp>
#Include <GDIpHelper>
SetUpGDIP()
SetTimer, update, 15000
update:
StartDrawGDIP()
ClearDrawGDIP()
pBrush := Gdip_BrushCreateSolid(0xee000000)
Gdip_FillRectangle(G, pBrush, 0, 0, 300, 200)
Gdip_DeleteBrush(pBrush)
Text := RandStr()
Gdip_TextToGraphics(G, Text, "x10 y5 w280 cffffffff r4 s24")
EndDrawGDIP()
return
RandStr() {
URLDownloadToFile, http://numbersapi.com/random/math, ~somefile.data
FileRead, data, ~somefile.data
FileDelete, ~somefile.data
return data
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment