Giter Club home page Giter Club logo

Comments (4)

trulycool avatar trulycool commented on May 25, 2024 2

So AHK makes this work perfectly. This code uses ctrl + alt + r to ensure the fewest possible overlaps with apps that might be running (while LiveDraw isn't intercepting all keystrokes to apps underneath):

(sorry, the MD backticks are mangling the code formatting and removing all carriage returns, pasting as plain text)

AHK code below; add to AutoHotkey.ahk after installing app from https://github.com/AutoHotkey/AutoHotkey

;### LiveDraw Global keystroke; Release/Recover toggle
DetectHiddenWindows, On
SetTitleMatchMode, 2
#IfWinExist, LiveDraw Dev
{
; ctrl + alt + r
^+!r:: ; Release/Recover LiveDraw onscreen drawing control
WinActivate ;
Send r;
return
}

With AHK and this code snippet, Ctrl + Shift + Alt + R reliably toggle LiveDraw Release/Recover. And if you still hit just plain R while LD is active, that will behave as previously and Release...

from live-draw.

ab28dev avatar ab28dev commented on May 25, 2024

Duplicate #17

BTW thanks for describing the issue in such great detail. I am aware of the issue and I was trying to make hotkeys to solve these issues but unfortunately I am not having enough time in my hand.

If you want to work on this issue, you are most welcome to do so.

from live-draw.

Svk1190 avatar Svk1190 commented on May 25, 2024

I did not notice the existing issue. Also, I am not a developer. Sorry to disappoint you.

from live-draw.

trulycool avatar trulycool commented on May 25, 2024

Just started using LiveDraw, and very impressed. Thanks to the devs! Definitely the easiest way to implement telestration w/ video (OBS Studio, Zoom, etc.).

Went looking for keyboard shortcuts as am finding it hard to find the right button for recover/release, plus often prefer keyboard while recording...

I use AutoHotkey for many other similar situations, and seeing the difficulty in implementing natively here, will attempt something using the following approach.

  • autohotkey listens for Alt + R (or whatever meta key + R combo).
  • upon receiving Alt + R AutoHotkey 1.) activates LiveDraw, giving it focus, and 2) sends the R keystroke
  • this will have the overall workflow effect that 1.) R will "release" control if LiveDraw is active and 2.) Alt + R will "recover" control if LiveDraw is not in control (i.e. grabbing all the keystrokes while active)
  • regular R will be R when LiveDraw not active

Probably need an "activate if not already active" statement to AHK for this exact behavior if I only ever wanted Alt + R to activate. Otherwise it will likely function as an "alternate global toggle", since without the "activate if not active" directive, it would end up just sending the R to an already active LiveDraw...

Sorry, am a dev, but don't know C#. AutoHotkey is C++, and on github, so possible you may get some keystroke listening ideas there. Seems like the basic approach I describe might work, where "recovering" control happens only when R plus a meta character is engaged (tho hopefully the exact combo would be configurable :)

Will post my AutoHotkey implementation here when done as I understand the devs are busy and probably not about to port C++ AHK code to LiveDraw to expand it's shortcut assignment abilities.

Thanks again for the great code!
🙏

from live-draw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.