SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Oct 2002
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    To Identify Windows.

    Dear All,

    1. My application has parent window.
    2. When I click on one link, it opens a new child window.


    Logical Name : "Browser Main Window_4"
    Physical Description :
    {
    class: window,
    MSW_class: browser_main_window,
    NSTitle: "Browser Main Window",
    location: 4 ------------->> THIS VARIES
    }

    So, in the physical description, location varies dynanmically [from 0 - 7]. There is no unique identification.

    I need to close the child window.

    when I tried
    set_window("Browser Main Window_4");
    win_close("Browser Main Window_4");

    Its giving error, window doesn't exists as location varies differently.

    whats workaroud? Pls help.

    I tried following method, but it doesn't workout.
    Is this right?

    1. I changed Phy Desc to
    {
    class: window,
    MSW_class: browser_main_window,
    NSTitle: "Browser Main Window",
    location: "![0-8]"
    }

    Then,
    hwnd = GetForegroundWindow();
    desc1 = "{handle: " hwnd "}";
    win_highlight(desc1, 3);
    GUI_set_window ("Browser Main Window_4");
    GUI_map_get_desc ("Browser Main Window_4", "", desc, buff);
    GUI_desc_set_attr (desc, "handle", hwnd);
    GUI_add("","Browser Main Window_4","",desc);
    set_window("Browser Main Window_4",100);
    win_close("Browser Main Window_4");

  2. #2
    Moderator
    Join Date
    Mar 2002
    Location
    Tampa Bay
    Posts
    7,673
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: To Identify Windows.

    You can't use the Regular expression you quoted if more than one open window matches it.

    There have been numerous threads both in this forum and Yahoo - with recommended solutions - for this problem.

    Maybe try a search for "close multiple windows"

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:07 AM.

Copyright BetaSoft Inc.