Class KeyStrokeCanvas
Key Input Operations Implemented
Inheritance
System.Object
KeyStrokeCanvas
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Quark.XA.Core.AutomationProject.CoreUtilities
Assembly: Quark.XA.Core.AutomationProject.dll
Syntax
public class KeyStrokeCanvas
Constructors
KeyStrokeCanvas(ref Application)
Declaration
public KeyStrokeCanvas(ref Application application)
Parameters
| Type | Name | Description |
|---|---|---|
| Application | application |
Methods
FocusCanvas()
Combination of Shift and Key
Declaration
public void FocusCanvas()
ForWritingonCanvas(String)
The Usage of the Below Function is Clear that it will insert (Lower Case)text but due to XA Limitations it is not able to do so Therefore we USe toUpper() to convert Lower Case to Upper Case Now One thing to be taken care is that You CANNOT use " ~ # { } " characters Directly
Declaration
public void ForWritingonCanvas(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | Key Input |
ForWritingonCanvasAsScanCode(String)
Insert Key as Scan Code
Declaration
public void ForWritingonCanvasAsScanCode(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | Key Input |
InvokeContextMenu()
Declaration
public void InvokeContextMenu()
PressBackspaceKey(Int32)
Declaration
public void PressBackspaceKey(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i |
PressDeleteKey()
Declaration
public void PressDeleteKey()
PressDeleteKey(Int32)
Declaration
public void PressDeleteKey(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i |
PressDownArrowKey(Int32)
Press Direction Key
Declaration
public void PressDownArrowKey(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i | Number of times |
PressEndKey()
Declaration
public void PressEndKey()
PressEnterKey()
Declaration
public void PressEnterKey()
PressEnterKey(Int32)
Other useful Navigation Keys
Declaration
public void PressEnterKey(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i |
PressEscapeKey()
Declaration
public void PressEscapeKey()
PressHomeKey()
Declaration
public void PressHomeKey()
PressLeftArrowKey(Int32)
Declaration
public void PressLeftArrowKey(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i |
PressRightArrowKey(Int32)
Declaration
public void PressRightArrowKey(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i |
PressShiftTabKey(Int32)
Declaration
public void PressShiftTabKey(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i |
PressSpaceKey()
Declaration
public void PressSpaceKey()
PressSpecialKey(String)
Declaration
public void PressSpecialKey(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key |
PressTabKey(Int32)
Declaration
public void PressTabKey(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i |
PressUpArrowKey(Int32)
Declaration
public void PressUpArrowKey(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i |
SelectDown(Int32)
Declaration
public void SelectDown(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i |
SelectLeft(Int32)
Declaration
public void SelectLeft(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i |
SelectRight(Int32)
Selection using Shift modifier key
Declaration
public void SelectRight(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i | Number of times |
SelectUp(Int32)
Declaration
public void SelectUp(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i |
SendAltKeyStroke(String, Boolean)
Combination of Alt and Key
Declaration
public void SendAltKeyStroke(string key, bool isSpecialKey = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | Key Input |
| System.Boolean | isSpecialKey |
SendControlKeyStroke(String, Boolean)
Combination of CTRL and Key
Declaration
public void SendControlKeyStroke(string key, bool isSpecialKey = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | Key Input |
| System.Boolean | isSpecialKey |
SendControlShiftKeys(String, Boolean)
Key insertion with Both Shift and control Modifier Key
Declaration
public void SendControlShiftKeys(string key, bool isSpecialKey = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | Key Input |
| System.Boolean | isSpecialKey |
SendKeyStroke(String)
Insert simple keys using keyboard
Declaration
public void SendKeyStroke(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | Key Input |
SendShiftKeyStroke(String, Boolean)
Combination of Shift and Key
Declaration
public void SendShiftKeyStroke(string key, bool isSpecialKey = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | Key Input |
| System.Boolean | isSpecialKey |
SendWait(String)
Declaration
public void SendWait(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key |
SendWindowKeyStroke(String, Boolean)
Combination of Window key and Key
Declaration
public void SendWindowKeyStroke(string key, bool isSpecialKey = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | Key Input |
| System.Boolean | isSpecialKey |
StringWithSpecialCharacters(String)
Declaration
public void StringWithSpecialCharacters(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key |