Forum Discussion

satya214_1's avatar
satya214_1
Occasional Contributor
13 years ago

Working with AFX contorls

Hi,



I'm working with an application having afx controls. After browsing through few posts in web, found that enabling MSAA extension will exposure the control information.



But thats not the case with me, Still the controls are identified as window's class using some random id's as shown below.

Window("Afx:00400000:8:00010011:00000000:05260CA3", "*", 1)



Please provide any info, i'm missing to make this application a open application to TestComplete.



Regards,

Satya.

3 Replies

  • satya214_1's avatar
    satya214_1
    Occasional Contributor
    Hi Tanya,



    Thanks for the update. I'm using TestComplete 7.5, tried identifying AFX controls in my application with "Tools | Options | Engines | General | Auto-correct Afx window class names" check box in enable & disabled states. But couldn't find any possible difference in the object identification.



    Object description with "Auto-correct Afx window class names" check box disabled:

    Sys.Process("MICShell").Window("Afx:00400000:8:00010011:00000000:000E0A63", "Pro-Watch 3 - [Manage Your Server]", 1).Window("AfxControlBar80u", "List Bar", 3).Window("AfxWnd80u", "List Bar", 1).Window("Afx:00400000:0:00010011:00000006:00000000", "", 1).Window("AfxWnd80u", "", 1)


    Object description with "Auto-correct Afx window class names" check box Enabled:

    Sys.Process("MICShell").Window("Afx:00400000:8:00010011:00000000:000E0A63", "Pro-Watch 3 - [Manage Your Server]", 1).Window("AfxControlBar80u", "List Bar", 3).Window("AfxWnd80u", "List Bar", 1).Window("Afx:00400000:0:00010011:00000006:00000000", "", 1).Window("AfxWnd80u", "", 1)


    Can you please look into this & provide any missing link?



    Regards,

    Satya.

  • Hi Satya,


     


    The differences will be seen when you start recording a test with such windows. TestComplete will change the variable class names with the * wildcard in recorded tests.