Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MaxSteven/34802a02a874806fb0a0582ea00385fa to your computer and use it in GitHub Desktop.
Save MaxSteven/34802a02a874806fb0a0582ea00385fa to your computer and use it in GitHub Desktop.
Maxscript: Send a simple desktop notification similar to skype, from 3ds Max to the desktop. When users click on the balloon notification, in this example, it will open a windows explorer.
fn closeIcon s e = s.dispose()
fn balloonClicked s e = shelllaunch @"c:\windows\" ""
a = dotnetobject "notifyicon"
a.visible = true
a.icon = (dotnetclass "system.drawing.systemIcons").information
dotnet.addEventHandler a "BalloonTipClosed" closeIcon
dotnet.addEventHandler a "BalloonTipClicked" balloonClicked
a.showballoontip 1000 "test" "test2" (dotnetclass "tooltipicon").info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment