mqscript_instr
Locate the position of a substring within a string for mobile automation scripting, enabling precise text manipulation and UI interaction control.
Instructions
Find position of substring in string
Input Schema
Name | Required | Description | Default |
---|---|---|---|
resultVariable | No | Variable name to store result | result |
searchText | Yes | Text to search for | |
startPos | No | Starting position (optional, 1-based) | |
text | Yes | String to search in |
Input Schema (JSON Schema)
{
"properties": {
"resultVariable": {
"default": "result",
"description": "Variable name to store result",
"type": "string"
},
"searchText": {
"description": "Text to search for",
"type": "string"
},
"startPos": {
"default": 1,
"description": "Starting position (optional, 1-based)",
"type": "number"
},
"text": {
"description": "String to search in",
"type": "string"
}
},
"required": [
"text",
"searchText"
],
"type": "object"
}