Login   /   Register

Send keys to Active Window

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 Keyboard.SendKeys Method sends one or more keystrokes to the active window, as if typed on the keyboard.

Keyboard Status

April 1st, 2008 by daniva
     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 ...

The Devices.Keyboard class Provides properties for accessing the current state of the keyboard, such as what keys are currently pressed, and provides a method to send keystrokes to the active window.

Where is my Mouse?

April 1st, 2008 by daniva
     4 votes, average: 4.5 out of 54 votes, average: 4.5 out of 54 votes, average: 4.5 out of 54 votes, average: 4.5 out of 54 votes, average: 4.5 out of 5
Loading ... Loading ...

The System.Windows.Forms.Control Class Defines the base class for controls, which are components with visual representation.
The Control.MousePosition Property gets the position of the mouse cursor in screen coordinates.

Ping a Specified Server

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 Network Class belongs to Microsoft.VisualBasic.Devices namespace.
The .NET Ping method is overloaded, the return value is always Boolean. ( Conversion Required )

Formatting messages and strings

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

The System.Text.StringBuilder class represents a mutable string of characters.
This class represents a string-like object whose value is a mutable sequence of characters. The value is said to be mutable because it can be modified once it has been created by appending, removing, replacing, or inserting characters.
the AppendFormat method Appends a formatted string, which contains zero or more format specifications, to this instance. Each format specification is replaced by the string representation of a corresponding object argument.

Determine the day of the week

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 ...

Dot.Net Framework provides several classes for dates and times. the primary class is the System.DateTime. The class Represents an instant in time, typically expressed as a date and time of day. The System.DayOfWeek enumeration Specifies the day of the week.

Rename or move a directory

March 31st, 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 following code example shows how to use the I/O classes to create a listing of all files with the extension “.exe” in a directory.
The output data is inserted to the local data sheet and also printeg to the QTP log.

Create a directory listing

March 31st, 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 following code example shows how to use the I/O classes to create a listing of all files with the extension “.exe” in a directory.
The output data is inserted to the local data sheet and also printeg to the QTP log.

Copy/Move all contest of directory

March 31st, 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 ...

System.IO.DirectoryInfo class exposes instance methods for creating, moving, and enumerating through directories and subdirectories.
System.IO.File Provides static methods for the creation, copying, deletion, moving, and opening of files.

Determine if a folder exists

March 31st, 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 ...

System.IO.DirectoryInfo class exposes instance methods for creating, moving, and enumerating through directories and subdirectories.

Write to a text File

March 31st, 2008 by daniva
     1 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 5
Loading ... Loading ...

System.IO.File class provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.
The System.IO.StreamWriter class implements a TextWriter for writing characters to a stream in a particular encoding.
The following code examples show how to write text to a text file.

Creating a text file

March 31st, 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 ...

System.IO.File class provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.
The CreateText method creates or opens a file for writing UTF-8 encoded text.
The following example demonstrates some of the main members of the File class.

Get file information

March 31st, 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 ...

System.IO.DirectoryInfo class exposes instance methods for creating, moving, and enumerating through directories and subdirectories.