[NEW VERSION] - 17 Mar 22
Added: A new function _Notify_Size which allows you to adjust the size of the notification from its default 160x40. Please read the function header to see the max/min sizes that you can set for the width and height - the function returns informative @error/@extended values if these are not respected. Regardless of the size set, each notification will still display only 2 lines of text with the size of font used set automatically by the UDF.
New UDF in the zip below.
Previous changes: Changelog.txt
A while ago I was asked to help port an AHK UDF to AutoIt. This was not too difficult and I found it useful myself (as a replacement for ConsoleWrite when debugging compiled scripts among other things). I have been polishing it for a while and thought I might release it in case it proves useful to anyone else.
The notifications produced by Notify are small 2-line boxes that pop out of the edge of the display one above the other (you can select which side and in which direction they appear) - you can have as many as you want although only as many as can fit on your display will appear, the others will appear as soon as there is room. You can select whether they will retract after a certain time and/or when clicked. Colours and font are user-definable, and you can add an icon or image (bmp, jpg, gif or png) if you wish. When a notification retracts, the others move to leave space for more (you can select a smoooth slide or an instant move) - run the examples to see them in action.
If you find the default sizing of the notifications is not to your liking you can change it by amending these values in the UDF (lines #354-356):
; Set default auto-sizing Notify dimensions
Local $iNotify_Width_max = 300
Local $iNotify_Width_min = 150
Local $iNotify_Height = 40
A zip containing the UDF, example scripts and my StringSize UDF (which is also required): Notify.zip
As usual happy for comments and/or compliments.
M23