Last active
June 3, 2021 00:11
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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