/Notify

Primary LanguageAutoHotkey

Notify

Usage:

Notify:=Notify()

WindowID:=Notify.AddWindow("Your Text Here",{Icon:4,Background:"0xAA00AA",Buttons:"OK,Exit"})

Window ID will be used when making calls to

Notify.SetProgress(WindowID,ProgressValue)
Click(Obj){
    MsgBox,% Obj.Button ;Tells you which button clicked
}

Options:

Option Usage Description
Animate {Animate:"Bottom,Left"} Ways that the window will animate in. Can be Bottom, Top, Left, Right, Slide, Center, or Blend (Some work together, and some override others)
Background {Background:"0xAA00AA"} Color value in quotes
Buttons {Buttons:"One,Two,Three"} Comma Delimited list of names for buttons
Color {Color:"0xAAAAAA"} Font color
Destroy {Destroy:"Top,Left"} Comma Delimited list of Bottom, Top, Left, Right, Slide, Center, or Blend
Flash {Flash:1000} Flashes the background of the notification every X ms
FlashColor {FlashColor:"0xFF00FF"} Sets the second color that your notification will change to when flashing
Font {Font:"Consolas"} Face of the message font
Icon {Icon:"C:\Windows\HelpPane.exe,2"} Can be either an Integer to pull an icon from Shell32.dll or a full path to an EXE or full path to a dll. You can add a comma and an integer to select an icon from within that file eg.
IconSize {IconSize:20} Width and Height of the Icon
Progress {Progress:10} Adds a progress bar ;Starts with the progress set to 10%
Radius {Radius:10} Size of the border radius
Size {Size:20} Size of the message text
ShowDelay {ShowDelay:1000} Time in MS of how long it takes to show and hide the notification
Sound {Sound:500} Plays either a beep if the item is an integer or the sound file if it exists
Time {Time:2000} Sets the amount of time that the notification will be visible
Title {Title:"This is my title"} Sets the title of the notification
TitleColor {TitleColor:"0xAAAAAA"} Title font color
TitleFont {TitleFont:"Consolas"} Face of the title font
TitleSize {TitleSize:12} Size of the title text