Repo dedicated to getting "additional displays shortcuts" for application currently focused on the OS running the server app
- XdoTool for mac: https://brewinstall.org/Install-xdotool-on-Mac-with-Brew/
- same as above, other way: https://fransiska.github.io/mac/2017/06/16/xdotool-in-mac-os-x
- XdoTool on RPi: https://theembeddedlab.com/tutorials/simulate-keyboard-mouse-events-xdotool-raspberry-pi/
- applescript from bash: https://www.quora.com/How-do-you-simulate-keypresses-in-Mac-OS-X-within-a-bash-script
- hotkey helper gist: https://gist.github.com/jiaaro/c95e89ea5cacc6906040
- Mac OS X 10.10+ Scripting: https://developer.apple.com/library/archive/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/Articles/OSX10-10.html#//apple_ref/doc/uid/TP40014508-CH109-SW1
- JSCore article: https://nshipster.com/javascriptcore/
- automating Safari: https://gist.github.com/subtleGradient/441101
- iTerm automation using JXA: https://medium.com/@SteveBarbera/automating-iterm-with-jxa-javascript-application-scripting-a62ef3f11283
- Still relevant SiriProxy tricks ;p: https://github.com/stephaneAG/siriproxy-mod/blob/master/lib/siriproxy-thatwilldothetrick.rb
- Nodejs Exec/Spawn/Fork/..: https://medium.freecodecamp.org/node-js-child-processes-everything-you-need-to-know-e69498fe970a
- TO CHECK ?: https://tylergaw.com/articles/building-osx-apps-with-js/
- goes with the above article: https://github.com/tylergaw/js-osx-app-examples
Closely related to the subject as well as "Astropad" & Duet ( for the streaming part & <-> communication )
- Python way: https://stackoverflow.com/questions/12978846/python-get-screen-pixel-value-in-os-x
- Kinda neat, to try ?: http://neverfear.org/blog/view/156/OS_X_Screen_capture_from_Python_PyObjC
- few tips: https://github.com/sancarn/JXA-General/blob/master/JXA-Tips.js
- Kinda very important: https://github.com/sancarn/JXA-General/tree/master/Pictures
- must digg S.0 answer: https://stackoverflow.com/questions/42035561/maxdisplays-of-cggetdisplayswithpoint/42035741#42035741
- S.0 answer link 1: https://developer.apple.com/library/archive/qa/qa1741/_index.html
- S.0 answer link 2: https://developer.apple.com/library/archive/qa/qa1740/_index.html#//apple_ref/doc/uid/DTS40011007
- S.0 answer link 3: https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/QuartzDisplayServicesConceptual/Articles/DisplayModes.html
- NSWindow, for a GUI server app ?: https://developer.apple.com/documentation/appkit/nswindow
to digg & try once getting something/nothing using the aboves ? ( seems to be the latest & fastest approach to doing things )
- streams the contents of a display to your app: https://developer.apple.com/documentation/coregraphics/cgdisplaystream
- props for the above: https://developer.apple.com/documentation/coregraphics/quartz_display_services/display_stream_optional_property_keys
- creating one: https://developer.apple.com/documentation/coregraphics/cgdisplaystream/1454968-init
- getting an img rect: https://developer.apple.com/documentation/coregraphics/1454595-cgdisplaycreateimage
- non-accelerated graphics card stuff ( 'll my hdmi I2C hack work ?): https://developer.apple.com/library/archive/qa/qa1542/_index.html
- https://stackoverflow.com/questions/14017895/capture-screen-with-cgdisplaystream
- https://github.com/DouglasHeriot/PresenterMirror
- https://github.com/zakk4223/CocoaSplit
- https://www.cocoasplit.com
- https://www.realartists.com/blog/retroclip-instant-replay-for-your-mac.html
- https://developer.apple.com/documentation/coregraphics/cgcontext
- https://developer.apple.com/documentation/coregraphics/cgcontext/1455517-data
- https://developer.apple.com/documentation/coregraphics/cglayer
- https://developer.apple.com/documentation/coregraphics/cglayer