![]() When F5 is pressed display the Home window. When CTRL+A is clicked by the operator, display an Admin screen allowing users to log in or out. For example, if used on a MotorSpeed Real tag, which changes in the decimal range, this script could potentially try to execute multiple times a second.Ĭontinuously as a Key Combination is pressed. If the logged in user changes, close windows and redisplay the initial navigation screens.ĭata Change scripts should be used primarily for tags which will change infrequently. When a connection to a SQL database is lost, attempt a reconnect. When a BatchID changes, reset other values. If chaining many AND and OR statements together, be aware that InTouch will not "Short-Circuit" while evaluation the expression. If many tags are chained together with both ANDs and ORs, parenthesis should be used to help other programmers understand the expression. The Expression in a Condition script does allow for multiple tag conditions to be chained together by using the AND and OR operators. ![]() If a security Timeout Warning ($TimeoutWarning) occurs, alert the user that they may get logged out. If an EStop has been pressed, display a Window allowing the user to enter a downtime reason. At midnight ($Hour=0), save some values to a CSV file. Instead, a While Showing or ActiveX Event script can be used.Ĭondition listed in the Expression field is: Because the ActiveX is not completely loaded, OnShow scripts should not attempt to interact with ActiveX controls, as they will typically encounter an error. On Show scripts execute as a Window is still being displayed, and may run before all elements on the screen have completed rendering.įor InTouch components this is not a problem, but often ActiveX controls are not fully loaded by the time the OnShow script runs. While a window is displayed refresh a table every minute. When a login window is displayed hide all other windows. ![]() Window displayed, with a periodic execution. Because of the script execution cannot be guaranteed, it should only be used for simplistic tasks. On Shutdown scripts may not finish execution depending on how quickly InTouch finishes shutting down. On Shutdown close the database connection. On Startup create a connection to a database for recipe data. On Startup create a log entry indicating the software is starting up. On Startup determine the PC name and display content appropriately. While WindowViewer is running, with a periodic execution. The following gives information about these script types, as well as some general guidance on their usage. InTouch WindowMaker allows users to write multiple types of scripts. This article from InSource shows the different script types available in InTouch, and tries to explain the differences between them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |