RanorexNetRanorexNet Documentation
Application Class
NamespacesRanorexApplication
Provides static methods to manage an application, such as methods to find forms, to suspend the running thread and to start and stop an application.
Declaration Syntax
C#Visual BasicVisual C++
public class Application
Public Class Application
public ref class Application
Members
All MembersMethodsProperties



IconMemberDescription
Close(String)
Terminate an application.

Close(String, SearchMatchMode)
Terminate an application.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
ErrorAsException
If true and an error occurs during the operation, then an exception will be thrown.

Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FindForm(String, SearchMatchMode, String)
The function retrieves a new form whose title and class name match the specified strings.

FindForm(String, SearchMatchMode, String, Boolean)
The function retrieves a new form whose title and class name match the specified strings.

FindForm(String, SearchMatchMode, String, Boolean, Int32)
The function retrieves a new form whose title and class name match the specified strings.

FindFormClassName(String)
The function retrieves a new form whose class name match the specified arguments.

FindFormClassName(String, Int32)
The function retrieves a new form whose class name and class instance number match the specified arguments.

FindFormClassName(String, Int32, Boolean)
The function retrieves a new form whose classname and classInstance match the specified arguments.

FindFormClassName(String, Int32, Boolean, Int32)
The function retrieves a new form whose classname and classInstance match the specified arguments.

FindFormTitle(String)
The function retrieves a new form whose title match the specified strings.

FindFormTitle(String, SearchMatchMode)
The function retrieves a new form whose title match the specified strings.

FindFormTitle(String, SearchMatchMode, Boolean)
The function retrieves a new form whose title match the specified strings.

FindFormTitle(String, SearchMatchMode, Boolean, Int32)
The function retrieves a new form whose title match the specified strings.

Forms
Gets an array containing all top-level windows as a form.

GetActionKey(Action)
The function retrieves the virtual key code and modifier of the specified action. An action key is a key combination that the user can press to perform a special action. For example, a user can create an action key that exits a running scripts. Whenever the user presses the action keys, from any part of the system, the action will be started. The action key remains valid until the script is running.

GetControlFromPoint(Point)
Gets the control at the specified position.

GetElementFromPoint(Point)
Gets the element at the specified position.

GetForms()()() Obsolete.
Gets an array containing all top-level windows as a form

GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetMainWindowFromProcess(Process)
Tries to retrieve the main window from the specified process.

GetMainWindowFromProcess(Process, Int32)
Tries to retrieve the main window from the specified process before the timeout is elapsed.

GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
PopupMenuSelectItem(String)
The function selects the menu item with the the specified text.

PopupMenuSelectItem(String, Int32)
The function selects the menu item with the the specified text.

SendKeys(String)
Use the SendKeys method to send keystrokes to applications or controls.

SendKeys(String, Int32)
Use the SendKeys method to send keystrokes to applications or controls.

SendKeys(String, Int32, Int32)
Use the SendKeys method to send keystrokes to applications or controls.

SetActionKey(Action, Keys)
Set the virtual key code and modifier to activate a specified action. An action key is a key combination that the user can press to perform a special action. For example, a user can create an action key that exits a running script. Whenever the user presses the action keys, from any part of the system, the action will be started. The action key remains valid until the script is running.

ShowForm(Form)
The function starts a message loop for the form (running on a new thread).

ShowForm(Type)
The function creates a new form of the specified type and starts a message loop for the form (running on a new thread).

ShowForm(Type, Boolean, array<Object>[]()[])
The function creates a new form of the specified type and starts a message loop for the form (running on a new thread).

Sleep(UInt32)
The thread running the script is suspended for the selected sleep time.

SleepTime
Gets or sets the sleep time in milliseconds as an integer value. The current thread will be suspended for the specified sleep time after every command.

Start(String) Obsolete.
This function is used to start a new program.

StartWindowsApplication(String, String)
Starts a new application executing the specified file and passing the arguments and tries to retrieve the main window from the started process.

StartWindowsApplication(String, String, Int32)
Starts a new application executing the specified file and passing the arguments and tries to retrieve the main window from the started process within the timeout.

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
Application

Assembly: RanorexNet (Module: RanorexNet) Version: 1.5.1.4524