write a qtp script to count the number of minimized windows



write a qtp script to count the number of minimized windows..

Answer / 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

More VB Script Interview Questions

What is the use of the instr function?

0 Answers  


What is Procedure or Subroutine in VB Script?

0 Answers  


What are the 2 ways in which a variable can be declared in the vbscript language?

0 Answers  


Hi everybady, i have faced few Qns in one of i attended interview, please help me out with these below Qns. 1. how to join values without using join function? 2. how to compare values without using String compare function? 3. input is Bangalore, but i need output like this below format, what is function to use and get this outcome B A N G A L o R E 4. Input is "CapGemini" but uotput should be like this "inimeGpaC" 5. Input is 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Can someone let me know results of this Qns, please. Thanks.

2 Answers   CSS Corp,


write script to open Gmail.com, and to write script for entering username and password and show whether the result as pass or fail

2 Answers   Thomson Reuters,






Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

0 Answers  


Which function allows you to instantiate an object given its programmatic identifier or progid?

0 Answers  


Write VB script to convert from feet to inches(hint 1feet=12 inches)

2 Answers  


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

2 Answers   IBM,


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

0 Answers  


generic function for webedit box for web application

1 Answers  


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

0 Answers  


Categories