r/PythonProjects2 • • Jul 28 '22

how to detect the typing/writing state with python? please help!!!

31 Upvotes

8 comments sorted by

5

u/oguh43 Jul 28 '22

Hi, awesome project. A few things: you can try to detect if a selection is made, or look for a mouse state change. For example normal to insert and backwards. Relevant page: https://stackoverflow.com/questions/45097307/the-way-to-detect-the-current-mouse-cursor-type-from-bash-or-python

2

u/Ape_Devil Jul 29 '22

thank you very much. That looks promising 💪

6

u/Ape_Devil Jul 28 '22

if you are interested in the project, visit my website
https://www.lynx-workshop.com/

2

u/_Y9K_ Jul 29 '22

Hi. I had a look around on google and couldn’t find anything worthwhile. But I do have a suggestion. So in Vim you have insert mode and command mode. You could have a specific hotkey like vim that would change your keyboard to the alphabetical one, and have a hotkey to go back.

3

u/Ape_Devil Jul 29 '22

Yeah that would be the alternative solution. Something like caps lock but instead shortcuts lock.

1

u/[deleted] Jul 29 '22

Instead of detecting transition, why not assign a key that you can press to change keyboard mapping? There is the solution to detect when you are typing but that method will not be straightforward(kinda complex not worth it)

1

u/Ape_Devil Jul 29 '22

That would be my alternative solution. I would like to be it as fancy as possible. Besides that I will need one button on each side couse the tool don't communicate with each other.

2

u/noobiemaster_69 Jul 29 '22

That's awesome project!