473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Simulating Pressed Keys

I do not know how to even start with something like this. How would you make the computer think you are pressing certain keys without the user actually pressing them?
Nov 12 '07 #1
8 1504
JosAH
11,448 Expert 8TB
I do not know how to even start with something like this. How would you make the computer think you are pressing certain keys without the user actually pressing them?
You could have a look at the java.awt.Robot class but I'm about sure that
you don't want to go there. Why do you want to mimic those key presses?

kind regards,

Jos
Nov 12 '07 #2
I took a look on the Java Documentation, and it looks like awt.robot is no longer in use. I want to make this program to type, without typing.
Nov 12 '07 #3
JosAH
11,448 Expert 8TB
I took a look on the Java Documentation, and it looks like awt.robot is no longer in use. I want to make this program to type, without typing.
Where did you read that the java.awt.Robot class is 'no longer in use'?

kind regards,

Jos
Nov 12 '07 #4
In the Java documentation. It wasn't there.
Nov 12 '07 #5
JosAH
11,448 Expert 8TB
In the Java documentation. It wasn't there.
I don't understand this: you found it in the documentation pages but it wasn't there?

kind regards,

Jos
Nov 12 '07 #6
No, awt.Robot was NOT in the documentation. I searched, and it was NOT there
Nov 12 '07 #7
JosAH
11,448 Expert 8TB
No, awt.Robot was NOT in the documentation. I searched, and it was NOT there
Have a look at java.awt.Robot as I wrote before.

kind regards,

Jos
Nov 12 '07 #8
Wait, I found it. Thanks.
That was just what I needed.
Nov 12 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Nagachandra Sekhar Grandhi | last post by:
I placed a combobox control on User control and this user control was placed on a form and I tried to catch the keys pressed on that combo box, but I am unable to do it. I set the property of...
0
by: veena | last post by:
hello, i have got a problem of how to capture two keys when pressed together i.e in my task i require certain action to be performed when the ctrl and 'A' keys are pressed together i.e i need to...
3
by: Tegdeep | last post by:
Here's what I want to do: I have a hash table which contains data associated to different keys. The Hash keys are represented by a single character from the keyboard: 0-9, a-z, A-Z, and the...
2
by: active | last post by:
In VB6 I believe MouseDown had a Shift argument that told if Shift, Ctrl or Alt was pressed. How in VB.NET MouseDown do I determine if one of these keys is pressed? I could increment a global...
4
by: active | last post by:
I can use Control.ModifierKeys to determine if a modifying key is pressed when executing MouseDown event, but how can I determine if an "M" was pressed?? Possible? Can't find a clue in...
2
by: Silvia | last post by:
Hi, I have a form with a button and when I click in this button, how I can detect the keys pressed and put this keys pressed in text property of the button. Thanks Silvia
5
by: iwdu15 | last post by:
hi, im making a program that makes a picturebox move according to key presses...but what if the user pushes say down and right at the same time. the keypress event only responds to once key...
1
Atran
by: Atran | last post by:
Hello, When a key pressed on keyboard, I want my program capture the pressed key, and save the pressed keys in a notepad. You listen about monitor programs, that programs capture keys........ How I...
3
by: hzgt9b | last post by:
Using VS2005, VB.NET, I am developing a windows app that has a DataGridView. I want to enable the display of a context menu on this DataGridView only when a specific set of keys is also pressed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.