Hiding the mouse curser in Max
I’m trying to find a way to hide the mouse curser at some point during my application and making it re-appear when the mouse is moved by the user.
Can anyone help?
Sydney
try this
before trying goto the Max4xTuturialsandtopics.pdf and find the topic: messages to Max. (;pupdate)
this let you send the global position of cursor.
the patch:
1 - detect the window size
2 - when the "mouse" is in the "red zone"; or when the "time" as gone... i don't know... you send this message: ;pupdate x y
2a - before sending the mouse out screen, save is position on a int... ou two (x y)
x is the total horizontal screen size and y the vertical.
3 - when the mouse moves, send the same mesage but with the x y saved in the INT.
if the mouse is in the bottom right coner of screen... "disapear"
i hope this work! :)
the max message
;max hidecursor
and
;max showcursor
hides and shows the mouse pointer. the mousestate object shows the
pointers position and state.
the rest should be max logic & patching :)
v a d e //
www.vade.info
abstrakt.vade.info
I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I
LIVE! I LIVE! I LIVE! I LIVE!
You will not be saved by the Holy Ghost. You will not be saved by the
God Plutonium.
In fact, YOU WILL NOT BE SAVED!
better by V A D E //
the max message
;max hidecursor
and
;max showcursor
hides and shows the mouse pointer. the mousestate object shows the
pointers position and state.
the rest should be max logic & patching :)
sory!
Thanks for your answers.
“;max hidecursor” and “;max showcursor” seem to be the right way to go. The only problem is that at some point during my application “;max hidecursor” stops hiding the mouse!
I can manually click on a message box with “;max hidecursor” and nothing happens. To get it to work again I need to close max and re-launch.
The application is quite big and complex so I can’t post it here.
Has this happened to anyone else?
Thanks,
Sydney
hi
don't know any reason to that.
probably some bug in MAX or in your patch!!!! (probably in MAX)
sory but i can't help you!