DOWNLOAD
How it works:
This function draws an achievement frame from scratch using the GDI+ standard lib (required)
When called in a script, it draws the frames, renders the achievement text to an image, and saves it to a file if specified.
What it can do:
This is mostly pointless, but can add a nice touch to a finished app.
It plays a ding sound when called (included in zip)
It supports both the progress style and static style achievements.
Support for url based images for the icon/trophy
Current limitations:
The function is modal, meaning if you chain the function quickly, the app will wait until they all finish. (I recommend calling with a timer or the like to avoid WTF moments)
Function is _L dependant (named gui to avoid code bleeds(NOTE: this can be changed to a numbered gui for basic compatability))
The function parameters:
ACHIEVE(ACH_NAME,ACH_TEXT,ACH_ICON,PNG="",USE_PROG="",START="",END="")
USAGE: Call this with ACH_NAME (text), ACH_TEXT (text), and ACH_ICON (image path/url) to generate an achievement popup
PARAMETERS:
ACH_NAME - Name text, first line
ACH_TEXT - Body text, second line
ACH_ICON - Icon image, trans background works best
PNG - Location to save rendered image to, png recomended (optional)
USE_PROG - Create progress style achievement frame, evaluated as BOOL 0/1 - blank/non-blank (optional,START and END required when used)
START - Current value of progress bar (optional, USE_PROG dependant)
END - Max value of progress bar (optional, USE_PROG dependant)
Screenshots:






Helper tool:

The "ACHIEVE_TEST_GIU_.ahk" included in the zip can help fine tune achievements before you implement them, or if you are like me, use it to insult your co-workers in a creative fashion.
Some notes on the tool:
Achievement icon can be a url (the image is downloaded to "temp.png")
Next to the progress checkbox, the completed function call is generated for easy paste into your script
Achievement bmp path is where the output file is saved, and the name of it
Technical notes:
Platforms tested: XP 32SP3, W7ult64, W8preview
Last note:
Feel free to use/modify/abuse these scripts however you see fit. As always criticism/commenting is welcome and encouraged. Also Zizorz pairs great with this
Thanks to tic (Tariq Porter) for his GDI+ Library






