i want to make a simple java program,,to input on keyboard Shift+Crtl+D
it means that instead of me to type on keyboard ,, i want my java program to type it by just running my program
how to do it ,, is it difficult?? please help

On a GUI application you can build a KeyEvent object with that sequence and send it to the keyListener of your JComponent listening for KeyEvent
On a console application don't really see a way to implement that

If you have access to a bash shell. There are some tool libraries to do certain shortcut keys. I recently created a bash script that will open three new terminal tabs inside one window and have them login to three different servers. As for Java alone you should try pbl's idea. The great thing is the tools can execute the shortcuts on any program that is in focus(or currently viewing). If you are interested let me know I will give you more details.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.