Automation Connect IQ SDK

The first half is the same as the code at the beginning here.
Only the subsequent simulator operation part is described here.

# Get diagnostic results
$sim.ToggleMenu([Simulator+SettingToggleMenu]::LowPowerMode, $true)
Start-sleep -Milliseconds 500 # Earn time to update the screen
$val = $sim.GetTimeDiagnostics()

$val = $sim.GetMemoryDiagnostics()
  • 2~8行目:Get the number displayed in Watchface Diagnostics

    Dialog launched from here.
    The measurement in this dialog is performed only when LowPowerMode is checked, so the check is turned on in the second line.
  • 10~16行目:Get the number displayed in the Active Memory dialog.
    Currently, only the contents of Memory Usage Status are acquired.
    The content expressed in the Tree below it has not been acquired.