Create Button to toggle OSC Fullscreen

Hi,
Is there a way to create buttons to execute commands from the OSC application menu, such as: toggle Fullscreen or enable Editor?

That would be very useful.

1 Like

Not currently, but it could be added as a scripting function !

That would be great Jean-Emmanuel !

Brilliant! Toolbar accessible via scripting now in v1.2.1.
Thank you.

1 Like

You wrote in the documentation:

image

For me fullscreen worked with toolbar(4), not 3.

Client:
→ Phone: Samsung Galaxy S6 - SM-G920I
→ Browser: Google Chrome v.90.0.4430.91
→ Android: v.7.0; Build/NRD90M.G920IDVS4FTK6

In this latest Chrome version, the button I made doesn't fully activate the fullscreen mode. In order to fully activate it, you need to either:
→ bring the bottom side completely in view;
→ activate fullscreen mode from the menu.

(example - phone screen recording)

PHONE SCREEN RECORD

EDIT (possible solution)

// doesn't work right (ie. when fullscreen is triggered by push button on)
if (value === 1) {
toolbar(4)
}

// this solves the problem
if (value === 0) {
toolbar(4)
}
1 Like

Then the example is outdated then (fixed).

2 Likes