[SOLVED] Interesting problem

Feature Requests, Comments, Bugs, and Suggestions on the JIntellitype Java API.

[SOLVED] Interesting problem

Postby andreiasksomething » Mon Apr 11, 2011 9:35 am

Hi,

First : good work with this .jar file :)

Second, I have a little problem. I run the example and works perfectly. I modified it to make the simple letter 'a' to be an event. The problem is that it detects the letter, but i still want the letter to be printed. So i want to let the event accure. Is this possible ? HOw should i modify the code to make it work ?

Now i use like this: JIntellitype.getInstance().registerHotKey((int)'a', 0, (int)'a');
Probably i need to modify onHotKey and use SwingUtilities.invokeLater ?

Thanks for helping,
Andrei
andreiasksomething
 
Posts: 2
Joined: Mon Apr 11, 2011 9:28 am

Re: Interesting problem

Postby Melloware » Mon Apr 11, 2011 9:57 am

Hmm I think what you are saying is you modified your code to capture "A" as a hotkey but you also want A to process normally? i am not sure if that is possible or not.

Might i recommend making your hotkey something other than a standard keyboard key like "a" and instead using CTRL+A or WIN+A or something?
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11050
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: Interesting problem

Postby andreiasksomething » Tue Apr 12, 2011 12:36 am

Tnx for replay

The hotkey is 'a' . The user press the key and i receive the event so i know what to do. But the user presses the 'a' in a .txt file so i want the 'a' letter to appear in the file also. I know it looks like loosing a little the ideea of a hotkey but this is what i need :D
I do not what the event 'a' to be consumed by the application.

Is ok if it can't be done, np. I will find another solution because i think i can do this with some kind of Logger .dll
Close the thread as solved.
andreiasksomething
 
Posts: 2
Joined: Mon Apr 11, 2011 9:28 am

Re: Interesting problem

Postby Melloware » Tue Apr 12, 2011 5:42 am

OK yeah because I don't think this can be done with JIntellitype. You want more of a keyboard "hook" like a keylogger than a Hotkey.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11050
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA


Return to JIntellitype

Who is online

Users browsing this forum: No registered users and 1 guest