write a qtp script to count the number of minimized windows

Answer Posted / sadashiv byagi

using automation object model
set qtp=createobject("quicktest.appalication")
qtp.launch
qtp.visible=true
if window= Minimized then
count=count+1
msgbox count

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which operator is used to concatenate the 2 values in the vbscript language?

777


Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

2264


Write a code to print numbers from 5 to 0?

922


How to Import data from a file (file is on the desktop) to the data table

1804


How will you convert a string to upper case string using vbscript?

747


What is the use of option explicit in vbscript?

751


Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.

1792


Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.

1869


What is the difference between VBScript and JavaScript?

2322


How will you convert a string to lower case string using vbscript?

762


How are values assigned to the variables in the vbscript language?

768


Mention how to assign a date value to a variable?

823


after medical test,when will be the police verification

1913


What are class events?

757


How will you get a random number between 0 and 1 in vbscript?

992