MathewSachin / Captura

Capture Screen, Audio, Cursor, Mouse Clicks and Keystrokes
https://mathewsachin.github.io/Captura/
MIT License
9.69k stars 1.81k forks source link

Requests for keystroke capture #485

Open CafeBombon opened 4 years ago

CafeBombon commented 4 years ago

I just found this software and WOW, it's amazing! I was using OBS before but ended up looking for something that captured keystrokes. Tried Camtasia but it's pricey and has things left out, hence why I'm here...

The keystroke capture is good (not worried about the font too much for me right now) but I'd LOVE to see two things in it:

1) When you hold a key like spacebar, it doesn't total it up (mine will say something like spacebar x 16). Just keep it as a simple spacebar log as this is often used as a shortcut in software, so the totalling option isn't always needed. Just a switch to turn this totalling off?

2) I really would be able to use this all the time if it captured Shift, Ctrl, etc keys when using a shortcut. Or am I missing something? If I press Shift + M, it just shows M.

Thank you! If you can add these two features I'd love to send you a donation for continued development and as a thanks. You will be blowing Camtasia and fellow screen capture software out of the water.

Adam

MathewSachin commented 4 years ago
  1. I think an option can be added to prevent showing multiple presses like x5.
  2. Shift + Alphabet is interpreted as typing a capital letter (small letter if Caps Lock is On). Otherwise, all the shortcut keys should be working as expected, for cases like Shift + Esc or Ctrl + Shift + A.
CafeBombon commented 4 years ago

That would be great if the multiple option could be added :)

I wonder if there is a way of toggling the shift + a key to be on or off, as it's a very useful keystroke to show. Either way, thank you again.

MathewSachin commented 4 years ago

Give this build a try: https://ci.appveyor.com/api/buildjobs/k5uft2euuo2mkg42/artifacts/temp%2FCaptura-Portable.zip

I've added a checkbox to disable repeat counter on keystrokes settings page.

For the Shift + Alphabet case I found a workaround for you. Captura uses keymap files to determine how keys are displayed. These are present in keymaps directory. You can create a copy and remove the part that says that Shift + Alphabet must be interpreted as capital letter.

Well, I did it for you: custom.zip Just extract the file inside it to keymaps directory and select English (Custom) from keymap dropdown.

Let me know how these work for you.

CafeBombon commented 4 years ago

Thank you for this! It's really improved functionality and clarity, and I appreciate you making it easy for me to apply too :)

I just have a couple of small questions:

1) Which mapping preset do I need to change to make 'Alt Gr' key read as Ctrl + Alt? I tried changing a few in the text file but couldn't get it to read. It works great for when I press Ctrl + Return, but it displays Ctrl and Alt on separate lines when this key is pressed. It could also work for when the actual keys Ctrl and Alt are press and held together, for more complex shortcuts.

2) Is it possible to make the keyboard shortcuts appear from the bottom up? When aligning them, it's tricky to work out where to position the preview. As a really special request, I'd LOVE to see the keystrokes fade slightly, so you know which one was most recent. Only for the first 3, so maybe 100%, 80%, 60%, but just so it's clear. But this is a wish list one!

3) I saw that long recordings might get interrupted on the main page...how long is this being affected from? I'm looking to record up to 20 minutes, but I don't want to get into the depths of recording if the file will corrupt!

Thank you for your help with this. Going to make a donation to your development fund now and will donate again on future updates. Appreciate your work on it!

Adam

On Thu, 2 Apr 2020 at 07:17, Mathew Sachin notifications@github.com wrote:

Give this build a try: https://ci.appveyor.com/api/buildjobs/k5uft2euuo2mkg42/artifacts/temp%2FCaptura-Portable.zip

I've added a checkbox to disable repeat counter on keystrokes settings page.

For the Shift + Alphabet case I found a workaround for you. Captura uses keymap files to determine how keys are displayed. These are present in keymaps directory. You can create a copy and remove the part that says that Shift + Alphabet must be interpreted as capital letter.

Well, I did it for you: custom.zip https://github.com/MathewSachin/Captura/files/4419153/custom.zip Just extract the file inside it to keymaps directory and select English (Custom) from keymap dropdown.

Let me know how these work for you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MathewSachin/Captura/issues/485#issuecomment-607643827, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOQUL7GHMEYC5KNYSJJX3PLRKQUV3ANCNFSM4KSWDDDQ .

-- Adam Oliver +44 (0)7837 087003 adamoliver.com

MathewSachin commented 4 years ago

1) The way Captura handles keystrokes is such that the modifier keys (Ctrl, Alt, Shift) are only displayed when they are released. This was because when making things like tutorials, people wanted only the final shortcut combination to be displayed. Like if I'm pressing Ctrl + Shift + Y, I don't want my viewer to see that I first pressed Ctrl, then Ctrl + Shift when if press Shift too, and then finally Ctrl + Shift + Y. Well, it'll be pretty daunting to change this behaviour now and ensure everything works right as the code is really complex for this.

Also, regarding AltGr, Windows sends it as `Ctrl + Alt` to apps, so there isn't a way to distinguish if the user pressed `AltGr` or `Ctrl + Shift`. It currently displays things like `AltGr + K` as `Ctrl + Alt + K` which is expected behaviour but can't handle if `AltGr` alone was pressed.

2) Are you asking about:

<img width="567" alt="06-32-22" src="https://user-images.githubusercontent.com/10654537/78252458-80db3e80-7510-11ea-8be8-c930633a4ee7.png">

Set it to `Bottom` if not already, then it will be relative to the bottom.

If you go to the webcam settings page, you can see that sliders are used to set the position of the webcam overlay, I'm planning to eventually do the same for other overlays.

There are a lot of options for customizing hotkeys, and I'll admit that the overlay settings page is cluttered. I'm thinking of making it simpler too.

The fading is actually happening even right now, but it is very mild, so not very noticeable.

I'll try increasing the fading and decide if it looks good.

3) The build I provided you should be fine. I've done a fix regarding that error. It's not guaranteed but at least my multiple 2hr+ long recordings have been successful.

Oh, and thank you for your support.

CafeBombon commented 4 years ago

Thanks for your reply. I understand that some of the keystroke options might not be possible, so that's fine. You did say that 'at the moment when you press Ctrl + Alt' or Alt Gr it'll print to screen as Ctrl + Alt, but mine is just showing Ctrl then on a new line, Alt. This is when I use your custom shortcut keyboard mapping. Sorry if this wasn't clear.

And as for the bottom alignment, I meant so it feeds up rather than down, so the newest shortcut appears above and not below. Then when you align it to the lower part of the screen, it doesn't disappear out of view. Maybe something for the future though.

Good news on the video length! I'll give it a thorough testing this month.

All the best and keep up the great work.

Adam

On Thu, 2 Apr 2020 at 14:30, Mathew Sachin notifications@github.com wrote:

1.

The way Captura handles keystrokes is such that the modifier keys (Ctrl, Alt, Shift) are only displayed when they are released. This was because when making things like tutorials, people wanted only the final shortcut combination to be displayed. Like if I'm pressing Ctrl + Shift + Y, I don't want my viewer to see that I first pressed Ctrl, then Ctrl + Shift when if press Shift too, and then finally Ctrl + Shift + Y. Well, it'll be pretty daunting to change this behaviour now and ensure everything works right as the code is really complex for this.

Also, regarding AltGr, Windows sends it as Ctrl + Alt to apps, so there isn't a way to distinguish if the user pressed AltGr or Ctrl + Shift. It currently displays things like AltGr + K as Ctrl + Alt + K which is expected behaviour but can't handle if AltGr alone was pressed. 2.

Are you asking about: [image: 06-32-22] https://user-images.githubusercontent.com/10654537/78252458-80db3e80-7510-11ea-8be8-c930633a4ee7.png

Set it to Bottom if not already, then it will be relative to the bottom. If you go to the webcam settings page, you can see that sliders are used to set the position of the webcam overlay, I'm planning to eventually do the same for other overlays.

There are a lot of options for customizing hotkeys, and I'll admit that the overlay settings page is cluttered. I'm thinking of making it simpler too.

The fading is actually happening even right now, but it is very mild, so not very noticeable. I'll try increasing the fading and decide if it looks good. 3.

The build I provided you should be fine. I've done a fix regarding that error. It's not guaranteed but at least my multiple 2hr+ long recordings have been successful.

Oh, and thank you for your support.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MathewSachin/Captura/issues/485#issuecomment-607848215, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOQUL7HR3UK2NEIHO2SJ7R3RKSHQDANCNFSM4KSWDDDQ .

-- Adam Oliver +44 (0)7837 087003 adamoliver.com

MathewSachin commented 4 years ago

I'm sorry, I misunderstood many things here.

Yeah, if you press only AltGr it will show Ctrl and Alt as separate presses. Only if you use like AltGr + K then it will show Ctrl + Alt + K.

Ok, now I understood what you mean, the latest keystroke should appear up. I should be able to add an option for this pretty easily. I'll let you know when done.