Scriptable popup

System tray menus

Hi all. The DX 3 documentation states -

"You can create simple popup menus and replace the default system tray menus...."

While I am happy with making my own pop-ups, I can not figure out how to customize the default system tray menus. Any tips?
1,151 views 2 replies
Reply #1 Top
Have a look under "Controller scripts" in the docs.

It's basicly:

Sub Object_OnScriptEnter
desktopx.RegisterController Object.Name
End Sub

Function OnControl(lType, lCode)
if lType = 1 and lCode = 1 then
'your popup-code here
OnControl = True
end if
End function
Reply #2 Top
I've found that something like the below help you identify the correct codes to use as you can do what you want(e.g. right click the system tray icon) and this will tell you the codes to use:

Function OnControl(lType, lCode)
msgbox "lType: " & lType & vbnewline & "lCode: " & lCode
OnControl = True
End function