Jump to content



Photo

NotifyBox UDF


  • Please log in to reply
19 replies to this topic

#1 Yashied

Yashied

    Happy in Moscow

  • MVPs
  • 2,512 posts

Posted 31 October 2010 - 04:09 PM

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 ($iTimeOut parameter). Otherwise, very soon, your desktop will be littered with these windows.

Posted Image


NotifyBox UDF Library v1.1
(Previous downloads: 146)

Attached File  NotifyBox.au3   7.73K   557 downloads


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, 04 November 2010 - 01:19 AM.






#2 guinness

guinness

    guinness

  • MVPs
  • 10,252 posts

Posted 31 October 2010 - 04:52 PM

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

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#3 UEZ

UEZ

    Never say never

  • MVPs
  • 3,600 posts

Posted 31 October 2010 - 05:07 PM

Might be very useful!

Thanks for sharing it!

Br,
UEZ

 
The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯


#4 Yashied

Yashied

    Happy in Moscow

  • MVPs
  • 2,512 posts

Posted 31 October 2010 - 05:34 PM

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

#5 wakillon

wakillon

    Tiny Tools Coder

  • Active Members
  • PipPipPipPipPipPip
  • 2,476 posts

Posted 31 October 2010 - 06:35 PM

Good Idea this NotifyBox !

Can be usefull !

Thanks Posted Image

  AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64 

  Last updated Scripts and executables with full embedded files are available on : GoogleCode 


#6 Datenshi

Datenshi

    Prodigy

  • Active Members
  • PipPipPip
  • 179 posts

Posted 31 October 2010 - 09:26 PM

excellent work, I've had a need for this on quite a few occasions

#7 FireFox

FireFox

    Liar using Chrome :>

  • Active Members
  • PipPipPipPipPipPip
  • 3,173 posts

Posted 31 October 2010 - 09:34 PM

Good work :graduated:
5 stars from me.

Br, FireFox.
OS : Win XP SP3 / Win 7 SP1 / Win 8 | Autoit version: latest stable / beta

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | What you've done today | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : IP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

Updated 22 April, 2013 - If you find dead links please send me a PM, do not post in the topics !

#8 KaFu

KaFu

    Hey, it's just me, KhaFoo...

  • MVPs
  • 3,162 posts

Posted 31 October 2010 - 10:38 PM

Looks really good and goes right to the snippet holder :graduated:...

#9 fighter1

fighter1

    Seeker

  • New Members
  • 4 posts

Posted 01 November 2010 - 09:02 AM

Good work Thanks Yashied :graduated:

#10 TheSaint

TheSaint

    *** Knight Templar ***

  • MVPs
  • 3,979 posts

Posted 01 November 2010 - 10:02 AM

Thanks for sharing!
Make sure brain is in gear before opening mouth!Ignoring those who try to divert conversation with irrelevancies.If I put effort into communication, I expect you to read properly & fully, or just not comment.If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.I'm only big and bad, to those who have an over-active imagination.I may have the Artistic Liesense to disagree with you.TheSaint's Toolbox

#11 slayerz

slayerz

    Prodigy

  • Active Members
  • PipPipPip
  • 160 posts

Posted 01 November 2010 - 11:21 AM

Great job! Thanks for sharing Yashied, very useful script. 5* from me
AUTOIT I'm lovin' it!

#12 Realm

Realm

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 608 posts

Posted 01 November 2010 - 11:41 AM

I already have a need for this!

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

Realm
...and then we shall see if your insanity can be cured!______________________________________________________________________My Contributions: RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.

#13 Yashied

Yashied

    Happy in Moscow

  • MVPs
  • 2,512 posts

Posted 02 November 2010 - 09:49 AM

Thanks guys.

:graduated:

#14 Yashied

Yashied

    Happy in Moscow

  • MVPs
  • 2,512 posts

Posted 02 November 2010 - 04:44 PM

UDF has been updated. Now you can get a result that returns MessageBoxIndirect() function (see second example).

#15 UEZ

UEZ

    Never say never

  • MVPs
  • 3,600 posts

Posted 02 November 2010 - 04:49 PM

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

Br,
UEZ

 
The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯


#16 Yashied

Yashied

    Happy in Moscow

  • MVPs
  • 2,512 posts

Posted 02 November 2010 - 05:03 PM

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, 02 November 2010 - 05:22 PM.


#17 Digisoul

Digisoul

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 312 posts

Posted 02 November 2010 - 05:39 PM

Great UDF Yashied !

Edited by Digisoul, 02 November 2010 - 05:41 PM.

73 108 111 118 101 65 117 116 111 105 116 Posted Image

#18 JScript

JScript

    Goodbye everybody, I got tired of this system adopted here!

  • Active Members
  • PipPipPipPipPipPip
  • 1,062 posts

Posted 03 November 2010 - 02:21 AM

@Yashied
Amazing! I was doing a real juggling to achieve that effect...
Thanks for sharing!
http://notebook.forumais.com (Forum Maintenance Notebooks and Desktop)http://autoitbrasil.com/ (AutoIt v3 Brazil!!!)
Spoiler

Posted Image Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!       


#19 Yashied

Yashied

    Happy in Moscow

  • MVPs
  • 2,512 posts

Posted 04 November 2010 - 01:21 AM

I returned back version 1.1 as more simpler and stable.

#20 ModemJunki

ModemJunki

    Wayfarer

  • Active Members
  • Pip
  • 51 posts

Posted 04 November 2010 - 08:20 PM

Thank you!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users