Message 1 of 8
Right Click Menu (Alternative to Quad)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've currently got a script that runs on start up and constantly checks if the right mouse is pressed or not.
If true then it will open a custom marker menu. I ultimately want to be able to use octopus 2 or radially for the menu.
I wanted some advice on optimising this script? I'm also not sure of how to close the menu once the right mouse button is released. any help would be most appreciated
MenuActive = false
fn SetMenuActive =
(
MenuActive = True
)
fn SetMenuInActive =
(
MenuActive = false
)
theTimer = dotNetObject "System.Windows.Forms.Timer"
fn checkRightMouseButton =
(
print MenuActive
if mouse.buttonStates[3] == true then
(
if MenuActive == true then
(
)
else
(
SetMenuActive()
(
if Selection.count == 0 then
(
OctopusInterface.StartOctopus "RCNoObject"
)
else
(
OctopusInterface.StartOctopus "RCObjectMode"
)
)
)
)
else
(
SetMenuInActive()
)
)
dotnet.addEventHandler theTimer "tick" checkRightMouseButton
theTimer.interval = 100
theTimer.start()