OSDisplay icon indicating copy to clipboard operation
OSDisplay copied to clipboard

Multiple calls

Open Spyruf opened this issue 5 years ago • 4 comments

Currently the images show synchronously (the first task has to end before the next can begin). I believe the an option to have it such that the latest image overrides previous images (similar to how the volume or brightness bar doesn't show a completely new image) would be better.

I am looking into how to implement this functionality however would appreciate if anyone has an idea where to start as. I believe a listener would be needed to get new calls in realtime.

Spyruf avatar May 19 '19 19:05 Spyruf

I'd be keen for this, too! I'm using ddcctl and OSDisplay.app, but making repeated adjustments quickly after one another OSDisplay simply doesn't show — it takes 2s per run, whereas i'm updating the brightness in small increments with a few hundred ms interval...

Looks good otherwise 👍

toothbrush avatar Jul 24 '19 00:07 toothbrush

+1 agreed ...

dzg avatar Oct 04 '19 03:10 dzg

Maybe I am wrong but I think you can make multiple calls quickly. If you use AppleScript to launch OSDisplay make sure that your script does not wait for a result or error by sending results and error messages to /dev/null.

E.g.: do shell script "/Applications/OSDisplay.app/Contents/MacOS/OSDisplay -l 100 -i 'monitor' -d '1' >/dev/null 2>&1 &"

I got this from: https://macscripter.net/viewtopic.php?id=9330

Paulimausi avatar Feb 18 '20 20:02 Paulimausi

But what OSDisplay could do is react to inputs when the Overlay is fading out.

Currently the App will always quit after having faded out. And inputs received during the fading animation are not properly handled.

Paulimausi avatar Feb 22 '20 22:02 Paulimausi