key event to minimize windows ?

A

Andreas Leitgeb

pcouas said:
What is key event to minimize current windows application ?

I don't know of any "standard" Key-sequence under windows.

Some games use the <Escape> key to minimize themselves, and
on unixoid desktops it's usually Alt+F9.

Perhaps vista will come up with some key-shortcut, but that's
pure unfounded speculation.

Unless you really, really need it, better not worry.
It should be the Window-manager's business to care
about window-management.
 
P

pcouas

Currently i use this source, but it's in french only

package activex01;
import java.awt.*;
import java.awt.event.*;
import java.io.IOException;


public class robot01{
//Create an array of keycode data
static int keyInput[] = {
KeyEvent.VK_ALT,
KeyEvent.VK_SPACE,
KeyEvent.VK_U, // ALT SPace ->u IN FRENCH
};

public static void main(String[] args)
throws AWTException,IOException{

Runtime.getRuntime().exec("notepad");

Robot robot = new Robot();
robot.keyPress(KeyEvent.VK_SHIFT);

for (int i = 0;
i < keyInput.length; i++){
robot.keyPress(keyInput);
robot.delay(500);

}
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,270
Messages
2,571,102
Members
48,773
Latest member
Kaybee

Latest Threads

Top