SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8

Thread: Add Remove

  1. #1
    Junior Member
    Join Date
    Dec 2006
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Add Remove

    Hello,
    How Can I remove App. from Control Panel - Add Remove.
    in meaning that search for the application and click the remove,
    Thanks,
    Ziv

  2. #2
    Senior Member
    Join Date
    Oct 2003
    Posts
    928
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Add Remove

    Hello Ziv,

    Please see the answer to a similar question on the official TestComplete newsgroup and let me know if you have some additional questions:

    http://www.automatedqa.com/forums/d.cgi?...14514&utag=
    Regards,
    Alex - SmartBear Support

  3. #3
    Junior Member
    Join Date
    Dec 2006
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Add Remove

    But, if i need to illustrat a user that press on the remove from the control panel and continue with the remove app.

  4. #4
    Senior Member
    Join Date
    Nov 2002
    Posts
    115
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Add Remove

    Hello Ziv,

    In this case, you can open the Add or Remove Programs window from a script by using the WScript.Shell object. To get access to items of this window, use the MSAA Open Applications feature. Please refer to the "Working With Windows Implementing the IAccessible Interface" and "Project Properties - MSAA Options" Help topics to learn what settings you will need to make in your project and what objects will become available to you after that.
    Here is a script sample that makes use of the above approach:

    <font class="small">Code:</font><hr /><pre>
    Sub Main
    Set WshShell = Sys.OleObject("WScript.Shell")
    Set oExec = WshShell.Exec("control appwiz.cpl")
    Dim w1
    Dim p1
    Set w1 = Sys.Process("rundll32").Window("NativeHWNDHost", "Add or Remove Programs").WaitWindow("DirectUIHWND", "*", -1, 5000)
    Delay(10000)
    Call w1.list_item_AutomatedQA_TestComplete_5.text_Autom atedQA_TestComplete_5.Click(52, 10)
    Call w1.list_item_AutomatedQA_TestComplete_5.btn_Change Remove.Click(49, 13)
    End Sub
    </pre><hr />
    Regards,
    Irene - SmartBear Support

  5. #5
    Junior Member
    Join Date
    Dec 2006
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Add Remove

    I paste the example to my project and i get an error
    "Cant find list..."
    can i capture the Change\Remove button on the control panel window?

  6. #6
    Senior Member
    Join Date
    Nov 2002
    Posts
    115
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Add Remove

    Hello Ziv,

    Have you configured the MSAA Open Applications setting of your TestComplete project? Please record some actions with the Add or Remove Programs window and post here the resulting script.
    In addition, please tell me what operating system is installed on your machine and what version of TestComplete you are using.
    Regards,
    Irene - SmartBear Support

  7. #7
    Junior Member
    Join Date
    Dec 2006
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Add Remove

    The Open Application is configure but i'm not sure about the MSSA.
    I'm using TestComplete5,Win XP.
    The Record:
    Set w1 = Sys.Process("rundll32").Window("NativeHWNDHost", "Add or Remove Programs").Window("DirectUIHWND")
    Call w1.Click(215, 230)
    Call w1.Click(604, 240)

  8. #8
    Senior Member
    Join Date
    Nov 2002
    Posts
    115
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Add Remove

    Hello Ziv,

    As far as I can see from the script you posted, you didn't configure the MSAA option properly. Please follow the steps below:

    - right-click your project in the Project Explorer panel and select Edit | Properties from the context menu;
    - in the Workspace panel, find the MSAA category and select it;
    - add the DirectUIHWND item to the 'List of accepted windows' setting.

    Now try to record the script again.
    Regards,
    Irene - SmartBear Support

 

 

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 10.71%
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 03:28 AM.

Copyright BetaSoft Inc.