Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

key event to minimize windows ?

Thread view: 
pcouas - 27 Nov 2006 10:25 GMT
Hi,

What is key event to minimize current windows application ?

Regards
Philippe
Andreas Leitgeb - 27 Nov 2006 12:31 GMT
> 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.
pcouas - 27 Nov 2006 13:11 GMT
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[i]);
     robot.delay(500);
   
 }
}
}


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.