SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Window is not unique...

    I'm reposting an earlier question because I may not have explained it well enough, or perhaps I'm just too obtuse to understand the solution.

    I have a Swing app with a menu item that allows the user to open a second session of itself. So I have the same identical application open twice. I know with a browser I can flip back and forth between two instances. However, with this Swing app, I'm getting the error message that the window is not unique, so Silk cannot manipulate or even identify it.

    What's the workaround for this, if any?

    ------------------

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Window is not unique...

    Try this first: use the app with [1]..[n].
    Ex: MyApp[1], MainWin("MyApp[2]").GetCaption

    I would try this one too:

    pre-condition: only these program should be open. Silk, silk agent, your Swing apps.

    use [alt-tab] to move between Swing app
    Get your Swing app;
    use MainWin("#1").GetCaption or GetName
    loop
    if not what you want do [alt-tab 1]
    [alt-tab 2]..[alt-tab n] if necessary.

    Refuse to reference your app by name if Silk doesn't index your app's name. Like Notepad[1], Notepad[2]...

    ------------------

  3. #3
    Member
    Join Date
    Nov 2000
    Location
    Dublin, Ireland
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Window is not unique...

    You can stop silk throwing this error by setting the OPT_VERIFY_UNIQUE Agent Option.

    The agent uses the first window it encouters with the tag. You should be able to get around this with one of the previously mentioned approaches.

    ------------------

  4. #4
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Window is not unique...

    SWEET!

    Yes! Using the Agent.SetOption(OPT_VERIFY_UNIQUE, FALSE) method, I'm able to manipulate both applicatons simultaniously!

    Thanks to both of you for your replies. I feel somewhat silly for not having been able to solve this on my own, but then, hey... that's the beauty of this forum. No?

    ------------------

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:29 PM.

Copyright BetaSoft Inc.