When writing key sequences, it is usually necessary to add waits. Unfortunately, these aren't 100% effective and if there are ever errors or issue the key sequence continues to run improperly. Adding the ability for an 'expect' style function to only continue when the expected text output is identified would make key sequences much more powerful and accurate.
Looking forward for an "expect" function implemented
Royal TS V5 beta is now available which features regex syntax highlighting:
As for the "expect" function, please create a dedicated post in the Ideas forums. Thanks!