prevent computer from sleeping and hiding mouse in Max
My patch has a jit.movie sent to jit.gl.videoplane and a jit.world with a fullscreen option. I noticed that when watching videos in fullscreen the mouse is always present and never is hid, is there a way to make the mouse disappear when in fullscreen mode? Also how can I prevent the computer from falling asleep while it is playing videos?
I know I can hide my mouse in the corner and change my 'energy saver' settings in my System Settings but I would prefer my patch to do this work for me.
Also, I have a playbar attached to my jit.movie but I was wondering if I could turn the space bar into a play/pause button.
Thanks, I will take any help I can get on this.
You can control cursor visibility (and many other things with messages to Max or messages to Jitter:
https://docs.cycling74.com/max8/vignettes/messages_to_max
You can use the [key] object to receive input from your keyboard.
AFAIK you cannot control sleep settings from Max natively, but you may be able to using the [shell] object:
https://cycling74.com/forums/shell
Thanks, those messages to max were especially helpful. Do you have any idea how I can set the spacebar to play/pause a video in my jit.movie?
Check the help file for the [key] object for a good starting point.