/speechmacros/SensorPlotTab.WSRMac

https://bitbucket.org/jat45/ami · Unknown · 1 lines · 1 code · 0 blank · 0 comment · 0 complexity · 646cab1d216f8e7d764bf1e49c488062 MD5 · raw file

  1. <speechMacros> <!-- only use macros in this file if AMI is running--> <condition operator="AND"> <appIsRunning windowTitleContains = "AMI" /> </condition> <command> <listenFor>View full plot</listenFor> <sendKeys>%f</sendKeys> </command> <command> <listenFor>View last N seconds</listenFor> <!-- first, press the button --> <sendKeys>%n</sendKeys> <!-- then, tab to the text area and select the current text --> <sendKeys>{TAB}</sendKeys> <sendKeys>^a</sendKeys> <waitFor seconds="0.2" /> <script language="VBScript"> <![CDATA[ text=Application.prompt("Dictate the time to display (in seconds), and say 'OK' when finished") Application.InsertText(text) ]]> </script> <!-- finally we need to press enter to register the new value --> <sendKeys>{ENTER}</sendKeys> </command> </speechMacros>