Skip to content

Instantly share code, notes, and snippets.

@JokerMartini
Last active June 3, 2021 00:11
Show Gist options
  • Save JokerMartini/5eebb3ff4b8275feb9cc to your computer and use it in GitHub Desktop.
Save JokerMartini/5eebb3ff4b8275feb9cc 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