We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Right now I have automated display computers that autorun a P5.js sketch. Is there a way I can code the sketch to automatically open in fullscreen using my chrome browser?
Answers
Check this:
https://p5js.org/reference/#/p5/displayWidth
https://p5js.org/reference/#/p5/fullscreen
Kf
Neither the displayWidth method and the fullscreen method worked for me. However I just solved the issue by writing a vbs file that uses the hotkey F11 and F5 to go fullscreen and reload:
Saved as .vbs Works.
Glad you found a solution!
Mac / Linux users who are trying to maximize a p5.js sketch in a browser on launch may need to use an alternate form of desktop/keyboard macro scripting, as this use of vbs/shell is Windows-specific.