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.

See Also

  • Attach Window
  • Cancel Token Source
  • Clear Cache
  • Click
  • Click on Cell
  • Click on Menu
  • Click on Value
  • Close Window
  • Control Screenshot
  • Count Windows
  • Expand Tree
  • Find Window
  • Find Windows
  • Focus
  • Focus Window
  • Get Barcode
  • Get Bounds
  • Get Cell Value
  • Get Control
  • Get Image Grid
  • Get Interval
  • Get Options
  • Get Table
  • Get Table Information
  • Get Tree Nodes
  • Get Value
  • Handle Open File Dialog
  • Handle Save File Dialog
  • Launch and Attach Window
  • Launch or Attach Window
  • Launch SAP Application
  • Map Image Grid
  • Maximize or Minimize Window
  • Offset Value
  • SAP Transaction
  • Screenshot Window
  • Search Control
  • Select Row
  • Select Tab
  • Set Execution Throttling
  • Set Grid Value
  • Set Value
  • Update Window
  • Verify Enabled
  • Verify If Visible
  • Wait and Close Security Window
  • Wait Busy Window
  • Wait Control
  • Wait for Control to Enable
  • Wait for Window to Appear
  • Wait for Window to Close
  • Watch and Close Window
  • Watch and Select Client Certificate
  • Watch and Set Credentials in Browser