TabletPC Property

Applies to TestComplete 14.40, last modified on April 22, 2021

Description

Use the OSInfo.TabletPC property to determine whether TestComplete is running on Windows XP Tablet PC edition.

Declaration

OSInfoObj.TabletPC

Read-Only Property Boolean
OSInfoObj An expression, variable or parameter that specifies a reference to an OSInfo object

Applies To

The property is applied to the following object:

Property Value

True if TestComplete is running on Windows XP Tablet PC edition. False otherwise.

Example

The following example checks whether TestComplete is running on Windows XP Tablet PC Edition.

JavaScript, JScript

function OSInfoSample()
{
  // Obtains the OSInfo object
  var OSInfo = Sys.OSInfo;
  // Checks whether TestComplete is running under the Tablet PC Edition
  if (OSInfo.TabletPC)
    Log.Message("TestComplete is running under Windows XP Tablet PC Edition")

}

Python

def OSInfoSample():
  # Obtains the OSInfo object
  OSInfo = Sys.OSInfo
  # Checks whether TestComplete is running under the Tablet PC Edition
  if OSInfo.TabletPC:
    Log.Message("TestComplete is running under Windows XP Tablet PC Edition")

VBScript

Sub OSInfoSample

  ' Obtains the OSInfo object
  Set OSInfo = Sys.OSInfo
  ' Checks whether TestComplete is running under the Tablet PC Edition
  If OSInfo.TabletPC Then
    Log.Message "TestComplete is running under Windows XP Tablet PC Edition"
  End If

End Sub

DelphiScript

procedure OSInfoSample();
var OSInfo;
begin
  // Obtains the OSInfo object
  OSInfo := Sys.OSInfo;
  // Checks whether TestComplete is running under the Tablet PC Edition
  if OSInfo.TabletPC then
    Log.Message('TestComplete is running under Windows XP Tablet PC Edition');

end;

C++Script, C#Script

function OSInfoSample()
{
  // Obtains the OSInfo object
  var OSInfo = Sys["OSInfo"];
  // Checks whether TestComplete is running under the Tablet PC Edition
  if (OSInfo["TabletPC"])
    Log["Message"]("TestComplete is running under Windows XP Tablet PC Edition")

}

See Also

FullName Property
Name Property
Edition Property
Windows64bit Property
Version Property
ServicePackVersion Property
MediaCenter Property

Highlight search results