Jump to content

unable to get the button"Class" and "Instance" information on the test tool GUI which is developed with QT Creator4.6.2 utility


Recommended Posts

Posted

Hi,

Encountered one problem as follows.

Unable to get the "Run" button"Class" and "Instance" information on the test tool EMAT.exe GUI which is developed with QT Creator4.6.2 utility.

Please help it soon.

If we could get the "Run" button"Class" and "Instance" information on the test tool EMAT.exe GUI which is developed with QT Creator4.6.2 utility, we could apply the following two Autoit APIs to simulate automatically click or press the "Run" button on the test tool EMAT.exe GUI in our test tool.

 

    //launch
    strTmp = m_szWorkDir + _T("EMAT_V7.5.0\\EMAT.exe");
    lpcwStr = A2CW((LPCSTR)strTmp);
    if(bSuccess)
        bSuccess = ((ret = AU3_Run(lpcwStr, L"", SW_SHOWNORMAL)) != 0 ? TRUE : FALSE); //AU3_Run returns zero if fail

    //run
    if (bSuccess)
        bSuccess = ((ret = AU3_ControlClick(L"EMAT", L"", L"[CLASS:Button; INSTANCE:1]", L"left", 1)) != 0 ? TRUE : FALSE);

unable to get the class and Instance information for the Run button on the EMAT.exe GUI.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...