Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/06/2022 in all areas

  1. [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
    1 point
  2. mike2003, Obviously a project of some importance seeing it was 9 months ago that you asked me to fix the sizing problem! Did you read the post I made at the top of this page where I explained in some detail why your own example did not work and gave you the required fix? Charming! Just what do you not like about the changes I made in the new(ish) version of the UDF? Perhaps you could take the time to tell us just what is wrong (in your eyes) and how it might be "improved". Over to you, M23
    1 point
  3. Danp2

    Websockets and AutoIt

    FWIW, I ran into issues with callbacks from WebSocketAsio DLL crashing the AutoIt script, very similar to prior problems described here and here.
    1 point
×
×
  • Create New...