Comments (4)
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.
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.
I did not notice the existing issue. Also, I am not a developer. Sorry to disappoint you.
from live-draw.
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)
- BUG in Release v0.1.1 & LiveDraw v0.1.2 (x86 and x64)
- Provide options for opaque UI background HOT 4
- Draw ink with pressure not working ( cintiq Wacom Tablet ) HOT 1
- How to run it? HOT 1
- Shortcut for clear screen HOT 2
- Allow mouse scrolling while annotating HOT 2
- Palm rejection
- System tray icon
- "HP Wolf Security" tags the executable as Malware HOT 2
- Features: New tools like square, circle, lines HOT 1
- Add White and Black as colors or make colors adjustable HOT 1
- Add features like Microsoft Whiteboard HOT 1
- Export as well the background like a screenshot + ink layer HOT 1
- Request to add the features of inputting text
- Installation Issue - LiveDraw 0.1.2 asks for .NET 5 HOT 7
- Doesn't work on multiple monitos HOT 1
- Which version of .net is required for Windows x64 HOT 1
- Release dont work after unfocus LiveDraw HOT 2
- Global hotkeys (With Code) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from live-draw.