Login   /   Register
Win32

Creating a test-session instance of The Extern object

November 8th, 2008 by Yaron Assa
     1 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 5
Loading ... Loading ...

Chad Ullman offers this great QTip, that makes working with external Win32 DLL’s much MUCH easier:

QTP’s Extern object is extremely useful for extending the power of QTP by exposing all of the Win32 API. However, because Extern is a reserved object in QTP, it is instantiated once when QTP starts and persists through all your test runs, and this can cause all sorts of problems. Luckly, Chad shares his simple yet very effective QTip for overcoming these problems.

Get pixel color

May 26th, 2008 by Yaron Assa
     3 votes, average: 3.33 out of 53 votes, average: 3.33 out of 53 votes, average: 3.33 out of 53 votes, average: 3.33 out of 53 votes, average: 3.33 out of 5
Loading ... Loading ...

Get the color code of a given pixel on the screen.

Writing a specific key string to ini file

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

The WritePrivateProfileString function copies a string into the specified section of an initialization file.

Problem - Retrieve all sections from ini file

April 1st, 2008 by daniva
     2 votes, average: 3.5 out of 52 votes, average: 3.5 out of 52 votes, average: 3.5 out of 52 votes, average: 3.5 out of 52 votes, average: 3.5 out of 5
Loading ... Loading ...

The GetPrivateProfileSectionNames function Retrieves the names of all sections in an initialization file.

Reading a specific key string from ini file

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

The GetPrivateProfileString function Retrieves a string from the specified section in an initialization file.

What is the last window opened?

April 1st, 2008 by daniva
     1 votes, average: 2 out of 51 votes, average: 2 out of 51 votes, average: 2 out of 51 votes, average: 2 out of 51 votes, average: 2 out of 5
Loading ... Loading ...

Sometimes applications display reports, when the window title depends on server, ip, date an time, report type etc.

Find a window

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

The FindWindow function retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. This function does not perform a case-sensitive search.

Forcibly close a specified window

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

The EndTask function is called to forcibly close a specified window.

Minimizing a window

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

The CloseWindow function minimizes (but does not destroy) the specified window.

Switching focus between windows

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

The SwitchToThisWindow function is called to switch focus to a specified window and bring it to the foreground.

Determine whether a window is maximized

April 1st, 2008 by daniva
     1 votes, average: 1 out of 51 votes, average: 1 out of 51 votes, average: 1 out of 51 votes, average: 1 out of 51 votes, average: 1 out of 5
Loading ... Loading ...

The IsZoomed function determines whether a window is maximized.

Determine whether a specified window is minimized

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

The IsIconic function determines whether the specified window is minimized (iconic).The IsIconic function determines whether the specified window is minimized (iconic).