Results 1 to 13 of 13
- 09-08-2010, 02:31 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 24
- Rep Power
- 0
- 09-08-2010, 02:33 PM #2
Member
- Join Date
- Aug 2010
- Posts
- 35
- Rep Power
- 0
- 09-08-2010, 03:07 PM #3
- 09-08-2010, 04:02 PM #4
Member
- Join Date
- Sep 2010
- Posts
- 24
- Rep Power
- 0
more details :
my program have a button
i wanna when user press button my program tell OS that right Key is Down
and when user released it my program tell OS that right Key is UP
(my problem is not key listening)
anyone can help me?
- 09-08-2010, 04:07 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
- 09-09-2010, 12:30 AM #6
- 09-10-2010, 10:35 PM #7
Senior Member
- Join Date
- Nov 2009
- Posts
- 235
- Rep Power
- 4
well i'm guessing he wants to build a keyboard simulator (just a guess but look at the thread name). Which would involve the program not being able to have focus, always on top, and able to send keystrokes to the OS (I'm guessing you would have to use some private libraries to access the win32 lib and make a low level keyboard hook (which would only work for windows)... or something
- 09-10-2010, 11:25 PM #8
Member
- Join Date
- Sep 2010
- Posts
- 24
- Rep Power
- 0
Collin389 thats correct
U said my mean
Can u help me what i should do exactly?
- 09-11-2010, 01:37 PM #9
Member
- Join Date
- Sep 2010
- Posts
- 24
- Rep Power
- 0
NoOne cant help me?:(
- 09-11-2010, 01:46 PM #10
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
You have to 'fool' the OS making it think that your program is the keyboard driver but that is far 'below' the capabilities of Java, i.e. you have to use quite a bit of JNI code (native code) to do that. Take it from me: you don't want to go there, it is far from a trivial task (if at all possible using 'simple' Java and a bit of native code). Collin (and others) already told you that.
kind regards,
Jos
- 09-11-2010, 03:04 PM #11
Member
- Join Date
- Sep 2010
- Posts
- 24
- Rep Power
- 0
dear jos
fortunatly Robot class solved my problem
thanx a lot!
- 09-11-2010, 03:57 PM #12
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
- 09-11-2010, 04:22 PM #13
Member
- Join Date
- Sep 2010
- Posts
- 24
- Rep Power
- 0
Similar Threads
-
Java Network simulator.
By priya deshpande in forum NetworkingReplies: 4Last Post: 02-18-2012, 03:55 PM -
Building a HSM Simulator
By stunnaz101 in forum Advanced JavaReplies: 0Last Post: 03-23-2010, 10:01 AM -
simulator program with RS232
By john wooo in forum NetworkingReplies: 7Last Post: 02-11-2009, 02:26 PM -
KeyBoard Problem
By arimakidd in forum Java AppletsReplies: 3Last Post: 09-19-2008, 04:05 PM -
Traffic simulator
By dirtycash in forum New To JavaReplies: 1Last Post: 03-12-2008, 03:59 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks