Results 1 to 3 of 3
  1. #1
    dcnorman07 is offline Member
    Join Date
    Jul 2008
    Posts
    6
    Rep Power
    0

    Question Close Active Window (?)

    I am needing help closing an Internet Explorer window!!! The problem is that the window name is different every time, which is what is causing a problem. It is looking to close window x, but see's window y. I am trying to send a generic Alt+F4 keystroke, but I can't get it to not rely on the window name. Is there a way to send an Alt+F4 keystroke? :eek:

    Please help!!!

  2. #2
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    7

    Default

    And how can it be concerned to Java?

  3. #3
    dcnorman07 is offline Member
    Join Date
    Jul 2008
    Posts
    6
    Rep Power
    0

    Default

    It's a script that I'm writing, in Java language.

    I think I got it working now though. The problem was as easy as changing a recognition setting and then adding a try/catch with an if statement to capture the ProcessName. :D

    Thanks anyways

Similar Threads

  1. Changing Active Window
    By jmHoekst in forum New To Java
    Replies: 1
    Last Post: 06-14-2008, 01:21 AM
  2. Check Menu active
    By Mir in forum AWT / Swing
    Replies: 0
    Last Post: 06-12-2008, 07:53 AM
  3. How to close an open JFrame window from a jsp page?
    By kasisaiganesh in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 05-27-2008, 07:29 PM
  4. Active Content enable problem
    By kasipandian in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 02-01-2008, 03:15 PM
  5. Accessing Active Directory
    By javaplus in forum Advanced Java
    Replies: 1
    Last Post: 01-05-2008, 12:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •