Toggle Control Cache
Verb: setControlCache
Toggle control cache and improves window handling performance.
Syntax
setControlCache [--cached(Boolean)]
Inputs
Script | Designer | Required | AcceptedTypes | Description |
---|---|---|---|---|
--cached | Enable | Optional | Boolean | When enabled, improves window handling performance. |
Example
The command improves performace to find a Notepad window, opened by the Launch and Attach Window command.
defVar --name foundWindow --type Boolean
launchWindow --executablepath "notepad.exe"
setControlCache --cached
findWindow --title "Untitled - Notepad" foundWindow=success
logMessage --message "Result found the window: ${foundWindow}" --type "Info"
// Displays on the console whether or not the window was found.