[Script] KeypressOSD - Display key press on screen

Post your working scripts, libraries and tools
robodesign
Posts: 327
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: [Script] KeypressOSD - Display key press on screen

07 Mar 2018, 15:28

@drugwash: Over-complications :-).

Anyways, just a quick update: all files were updated with a fix for a bug that caused crashes for the x32 edition of the script.

More fixes and improvements to come...

Best regards, Marius.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.
User avatar
Drugwash
Posts: 512
Joined: 29 May 2014, 21:07
Location: Ploieşti, Romania
Contact:

Re: [Script] KeypressOSD - Display key press on screen

07 Mar 2018, 16:09

Complicated things, if well done, make life easier. Windows is an exception to this. :)
SashaChernykh
Posts: 32
Joined: 01 Sep 2016, 04:04
GitHub: Kristinita
Contact:

Re: [Script] KeypressOSD - Display key press on screen

15 Mar 2018, 03:07

tmplinshi wrote:
SashaChernykh wrote:
tmplinshi wrote:v2.21 (2017-02-24) - Fixed LWin/RWin not poping up start menu

:arrow: Source


@tmplinshi, do you plain to maintain your Keypress OSD version in future (at least fix possible bugs)?

For example, unfortunately, in @robodesign version impossible display keys in relative position, and I still use your Keypress OSD.

Thanks.

Well, I am not sure. But let me know what thoughts you have and I might will try them out.



@tmplinshi, can you move:

1. Your script from Gist to GitHub, BitBucket or GitLab? That users can make pull requests and write issues in convenient markup Markdown.
2. Adjustable settings to separate file (.ini for example). That users can do not change anything in the script each time, when you publish new version.

Thanks.
tmplinshi
Posts: 1118
Joined: 01 Oct 2013, 14:57

Re: [Script] KeypressOSD - Display key press on screen

15 Mar 2018, 11:51

Done. It is now at https://github.com/tmplinshi/KeypressOSD. And updated to v2.30
; ChangeLog : v2.23 (2018-03-16) - Settings are now saved to ini file.
; - Added settings GUI and tray menu.
; - Moved this script from Gist to GitHub.
SashaChernykh
Posts: 32
Joined: 01 Sep 2016, 04:04
GitHub: Kristinita
Contact:

Re: [Script] KeypressOSD - Display key press on screen

17 Mar 2018, 00:38

tmplinshi wrote:Done. It is now at https://github.com/tmplinshi/KeypressOSD. And updated to v2.30
; ChangeLog : v2.23 (2018-03-16) - Settings are now saved to ini file.
; - Added settings GUI and tray menu.
; - Moved this script from Gist to GitHub.


@tmplinshi, thanks!

Can you make, that users can set Color and Font options also in KeypressOSD.ini file?
robodesign
Posts: 327
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: [Script] KeypressOSD - Display key press on screen

18 Mar 2018, 11:10

Hello, guys!

This is a major release of the KeyPress OSD [by Marius Sucan]. The entire code was reorganized and comments were added through different sections. I hope it is now more welcoming for possible contribuitors.

I also added various features and fixed bugs. If you find any bug, please report it. All files were updated: binaries, non-binaries, GitHub and so on.

On GitHub: https://github.com/marius-sucan/KeyPress-OSD

Main AHK file:
http://marius.sucan.ro/media/files/blog ... ss-osd.ahk

ZIP Package compiled [x64 / x32]
http://marius.sucan.ro/media/files/blog ... mpiled.zip

by Marius Sucan (robodesign.ro)

v4.27 (2018-03-18)
- [new] option to automatically erase text on window change
- various bug fixes and minor improvements in varying contexts

v4.26.7 (2018-03-17)
- [new] options to change shape, width and size of the caret halo [possible thanks to Drugwash]
- small improvements to caret jumps
- more work on comments through the code
- minor bug fixes

v4.26.5 (2018-03-16)
- [new] option to set interval for text expansion
- [new] option to deactivate automatic pasting of clipboard content when selecting a previous clipboard
- [new] for clipboard history, an option to set a limit for formatted texts; what exceeds this limit, will be stored as raw text.
- changed the way I present the help information at Typing Mode window
- removed option to send key strokes to host app when using alternate typing mode; it was poorly working
- reorganized the entire code [+9500 lines]; I grouped functions in a logical manner and added comments

v4.26 (2018-03-15)
- [new] added customization options in the UI for caret halo [at Keyboard preferences window] based on the work of Drugwash
- [new] run in safe mode; deactivates auxiliary AHK_H threads. Features deactivated: mouse features, sounds / beepers, and others.
- if it crashes during INIT, safe mode option is presented to the user
- the OSD can now be dragged by key states LEDs [OSD indicators], even if KeyPress is set to hide the OSD on mouse hover
- [major bug fix] alternate typing mode was not working in the previous versions; now it works again

v4.25.5 (2018-03-14)
- [new] added more customization options in the UI for mouse ripples based on the work of Drugwash; colors can now be changed
- various bug fixes

by Drugwash

v4.25 (2018-03-11)
- added the ability to customize text caret halo and mouse ripples
- many improvements to mouse ripples and other mouse functions
- now, with mouse ripples enabled, the direction is indicated when using wheel up/down or left/right.
- the update in real time of options at Mouse preferences window is much improved
- show preview is now a permanent option
- when forcing an update, KeyPress will now make a backup of the current files
- various improvements under the hood
- code improvements and clean up

by Marius Sucan (robodesign.ro)

v4.23.5 (2018-03-11)
- more fixes for Clipboard history

v4.23.4 (2018-03-10)
- fixed a bug with [very] large clipboards when Clipboard history is enabled

v4.23.3 (2018-03-08)
- when the script is suspended or the OSD is set to not show, the clipboard manager will no longer save what the user copies in the clipboard
- fixed bug that caused the expandable words list to get duplicated over and over...
- other minor fixes

v4.23.1 (2018-03-07)
- fixed bug that caused crashes on x32

PS. This is the complete log since my last post.

Best regards, Marius.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.
tmplinshi
Posts: 1118
Joined: 01 Oct 2013, 14:57

Re: [Script] KeypressOSD - Display key press on screen

19 Mar 2018, 01:50

SashaChernykh wrote:Can you make, that users can set Color and Font options also in KeypressOSD.ini file?

Done! :)

v2.40 (2018-03-19) - Added font and background color settings

--> https://github.com/tmplinshi/KeypressOSD

Image
robodesign
Posts: 327
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: [Script] KeypressOSD - Display key press on screen

19 Mar 2018, 03:50

@tmplinshi: your edition is very buggy; dead keys do not work, the OSD appears also really wrong; it is attempting to to cover current app, but it exceeds it by A LOT; test it with different DPIs.

It looks as you did not look into my version and compare, test what works or not, on various systems.At least look at my video:



Anyways, good you are back to work ;-).

Best regards, Marius.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.
tmplinshi
Posts: 1118
Joined: 01 Oct 2013, 14:57

Re: [Script] KeypressOSD - Display key press on screen

19 Mar 2018, 08:45

Hi robodesign, I did try your version, but I didn't plays it a lot. I don't know what "dead key" is until just now after Googling.
I don't have very complex needs, my original intention was to simply display hotkeys, I remember it was inspired by tutorial video like this.

I like your script displays typing like a subtitle btw, and the green "LED" and the sounds are very cool!
robodesign
Posts: 327
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: [Script] KeypressOSD - Display key press on screen

19 Mar 2018, 09:27

Thank you very much! Can you please update the first post and add a link to my GitHub version and video? for those who need a complex edition of this.. I think it would be very helpful, it would make it easier for them to find it.

Best regards, Marius.
.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.
tmplinshi
Posts: 1118
Joined: 01 Oct 2013, 14:57

Re: [Script] KeypressOSD - Display key press on screen

19 Mar 2018, 09:59

Sure. Added to the first post.
robodesign
Posts: 327
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: [Script] KeypressOSD - Display key press on screen

19 Mar 2018, 10:00

tmplinshi wrote:Sure. Added to the first post.


Thank you very much!!!! I appreciate it very much.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.
kunkel321
Posts: 152
Joined: 30 Nov 2015, 21:19
Facebook: https://www.facebook.com/kunkel321
Google: kunkel321

Re: [Script] KeypressOSD - Display key press on screen

19 Mar 2018, 17:33

This is wonderful Marius! Thank you for sharing it!
robodesign
Posts: 327
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: [Script] KeypressOSD - Display key press on screen

19 Mar 2018, 17:36

My pleasure, if you have any ideas, suggestions or comments, please feel free to write me here or by e-mail.

Thank you for writing this. I feel good to hear positive feedback. :-)
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.
robodesign
Posts: 327
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: [Script] KeypressOSD - Display key press on screen

20 Mar 2018, 17:21

Hello!

New version. Recent activity log....

v4.27.6 (2018-03-25)
- new option in the ini file to deactivate automatic download of external files
- fixes regarding text auto-replace
- other minor fixes

v4.27.4 (2018-03-23)
- improved Safe Mode
- it now remembers last opened window and tab
- more work on the code
- minor fixes and changes

v4.27.3 (2018-03-21)
- [improvement] proper duplicate hotkeys detection at the Global Shortcuts panel...
- the alternative hook no longer runs in background if no dead keys detected
- the auto-replace text area now updates itself on save
- partially fixed sound issues through team viewer; sounds were never stopping
- other minor fixes

v4.27.2 (2018-03-20)
- reduced the code by 7-8 kb, by making the CheckSettings() function more compact
- further reduced IniWrites during start/restart procedures
- eliminated iniReads from the auxiliary threads [mouse, beepers and ripples]
- reorganized more the main script code
- fixed bugs... and hopefully introduced none

v4.27.1 (2018-03-19)
- [new] quick settings menu at Installed Keyboard Layouts panel. I added this here because, on double-click on tray icon, this is the panel that opens; therefore, to improve usability I added this 'gateway' to various settings and to the other preferences panels.
- the coding of the global shortcuts panel is much lighter now; the code was reduced by 21 kb; however, the changes do not make it faster when it opens
- minor bug fixes

All files were updated.... on Github and the Zip file.

On GitHub: https://github.com/marius-sucan/KeyPress-OSD

Main AHK file:
http://marius.sucan.ro/media/files/blog ... ss-osd.ahk

ZIP Package compiled [x64 / x32]
http://marius.sucan.ro/media/files/blog ... mpiled.zip


PS. Edited post again to reflect latest changes. V4. 27.6

Best regards, Marius.
Last edited by robodesign on 28 Mar 2018, 17:05, edited 1 time in total.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.
kunkel321
Posts: 152
Joined: 30 Nov 2015, 21:19
Facebook: https://www.facebook.com/kunkel321
Google: kunkel321

Re: [Script] KeypressOSD - Display key press on screen

26 Mar 2018, 09:53

Actually, I have an interesting idea...
Rather than "Left Click" and "Right Click," have "Left Mouse Click" and "Right Mouse Click." Then, if the user holds the mouse button down, the display changes to "Left Mouse Down" or "Right Mouse Down." Even groovier: If the user holds down the mouse button down and drags, then OSD could show "Left Mouse Drag <arrow>," where <arrow> is one of those Wingding characters of an arrow. Eh... I guess you probably couldn't use Wingding font mixed with whatever the user-defined font is (?) Anyway, there are eight arrows, U D L R, and four diagnosis. I guess rather than an arrow you could have, for example, "Left Mouse Drag: Down, Right." That would take a lot of space though.
robodesign
Posts: 327
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: [Script] KeypressOSD - Display key press on screen

26 Mar 2018, 12:56

Hmmm... I already thought of this!

The OSD is held visible as long as a mouse click is held down. And if 'beep on firing keys' is activated at Sounds, it will beep for that duration. It is the same for modifiers [ctrl, alt, shift, win]

Have you noticed this? Thanks a lot for your feedback!

Best regards, Marius.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.
robodesign
Posts: 327
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: [Script] KeypressOSD - Display key press on screen

28 Mar 2018, 17:04

Hello!

I released a new version. V4. 27.8. Various bug fixes.

@burque, @rommmcek, @ozzii. Please test this new version and let me know how it works.

I am currently working on a major change that, if I succeed, KeyPress will no longer ask for restarts on keyboard layout changes.

I want to make sure this version works for you and then compare with the new one... To know if something breaks after.

Thank you in advance.

Best regards, Marius.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.
burque505
Posts: 344
Joined: 22 Jan 2017, 19:37

Re: [Script] KeypressOSD - Display key press on screen

28 Mar 2018, 17:56

Hi Marius, before I get further into testing, from the script version:
Capture.PNG
Capture.PNG (30.33 KiB) Viewed 213 times

From the compiled version, when trying out Capture2Text:
CaptureToText.PNG
CaptureToText.PNG (17.24 KiB) Viewed 213 times

Not sure whether that's something I need to download separately.
Regards,
burque505
User avatar
Drugwash
Posts: 512
Joined: 29 May 2014, 21:07
Location: Ploieşti, Romania
Contact:

Re: [Script] KeypressOSD - Display key press on screen

28 Mar 2018, 18:49

For the first issue you might have to add a line to the end of the main script:
#include <addScript>
If that won't work, keep the #include and copy addScript.ahk from your AHK_H Compiler\Lib folder to Keypress' Lib folder.

For the second one I believe it is a separate download. Please see here.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: apoklyps3 and 15 guests