Jump to content

Recommended Posts

Posted (edited)

LAST VERSION - 1.1

04-Nov-10

The library contains only one _NotifyBox() function, which is similar to the MsgBox(), with the only difference being that runs in a separate thread and therefore has no stopping the script. Parameters are identical to the MsgBox() function. If you plan to periodically call _NotifyBox(), I recommend to specify the time (in seconds) after which a notification window will be automatically closed (see $iTimeOut parameter). Otherwise, very soon, your desktop will be littered with these windows.

NotifyBox.png

NotifyBox UDF Library v1.1

Previous downloads: 149

NotifyBox.au3

Example

#Include "NotifyBox.au3"

Opt('TrayAutoPause', 0)

While 1
    _NotifyBox(16, ':-(', 'One.', 2)
    Sleep(500)
    _NotifyBox(48, ':-|', 'Two.', 2)
    Sleep(500)
    _NotifyBox(64, ':-)', 'Three.', 2)
    Sleep(3000)
WEnd
Edited by Yashied
Posted

Excellent! Pretty useful for those who love to use MsgBox() but hate the pausing problem.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Another example.

#Include <NotifyBox.au3>
#Include <WinAPI.au3>

_NotifyBox(0x80, 'Notify', 'Message box with a custom icon.', 0, 0, _WinAPI_GetModuleHandle('shell32.dll'), 239)
Sleep(4000)

Posted Image

Posted

Thanks for sharing!

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Posted

I already have a need for this!

Great job and thanks for sharing it with us :graduated:

Realm

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. 

Posted (edited)

  On 11/2/2010 at 4:49 PM, 'UEZ said:

What about the NB.DLL? What can be done with that DLL additionally?

If you use a callback function ($sFunc a parameter) then will be automatically created the .dll file in %TEMP%. But you can avoid this by specifying directly nb.dll ($sDll parameter). That's all.

_NotifyBox(32 + 3, 'Message#1', 'Do you want to quit now?', 0, 0, 0, 0, '_Notify', 1, @ScriptDir & '\nb.dll')
Edited by Yashied

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...