Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to get the keyboard cursor location? #7

Closed
humanely opened this issue Nov 21, 2016 · 1 comment
Closed

Is there a way to get the keyboard cursor location? #7

humanely opened this issue Nov 21, 2016 · 1 comment
Labels

Comments

@humanely
Copy link

Hi,

I want to get the coordinate of cursor location of keyboard. It is different than mouse pointer location. Is there a way to extend gkm to achieve that?

Rgds

@tomzx
Copy link
Owner

tomzx commented Nov 23, 2016

If you're talking about the "blinking" cursor (or simply the cursor that displays where you are typing), then my first answer would be that it's not currently possible.

You obviously have many ways to add this, namely extend gkm directly to use something else than gkm-java which relies on JNativeHook, which afaik, does not offer any information regarding keyboard cursor position. You could also extend gkm-java to do so. It would require implementing the necessary logic in Java. gkm simply spawns a process that sends it through stdout 1 event per line. If you follow the same current output formatting rules that are currently used to output keyboard and mice events, it shouldn't be too difficult to add new events.

@tomzx tomzx added the question label Nov 23, 2016
@tomzx tomzx changed the title Is there a way to get lcoation of keyboard cursor location? Is there a way to get the location of the keyboard cursor location? Feb 14, 2017
@tomzx tomzx changed the title Is there a way to get the location of the keyboard cursor location? Is there a way to get the keyboard cursor location? Feb 14, 2017
@tomzx tomzx closed this as completed Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants