Check_Object_Global_Index()
Syntax: _Check_Object_Global_Index(ObjectName)
Purpose: Searches for objects, even those created dynamically, and returns information about those matching a specific pattern.
Parameters:
ObjectName A string with the object name to match. Supports wildcards for flexible searching:
"*" at the beginning or end for partial matches.
"*" on both sides for broader matching.
Returns:
An
array. You can access matching objects using _objItem[index]
,
where 'index' is the element's position in the array.
Important:
Case Sensitivity: The search is case-sensitive.
Check_Object_Name_Using_Image()
Syntax: _Check_Object_Name_Using_Image(ImageFileName)
Purpose:
Similar to Check_Object_Global_Index
,
but specifically searches for objects using a given image's filename
as the basis of comparison.
Parameters:
ImageFileName: The filename of the image associated with the objects you want to find.
Returns:
An
array, which you can access with _objItem[index]
Behavior:
Supports
wildcards like Check_Object_Global_Index()
.
Case-sensitive.
Object()
Syntax: _Object()
Purpose: A handy function that returns the name of the object that the user has most recently interacted with (touched, tapped, clicked, etc.).
Returns:
A string containing the object's name