KB-29384: Resetting a Counter Tag.
Question: How can I reset a Counter Tag? Solution: To do so, you must first make sure the tag’s ResetCounterWhenEnable is set as True. Then, add a script to disable…
Question: How can I reset a Counter Tag? Solution: To do so, you must first make sure the tag’s ResetCounterWhenEnable is set as True. Then, add a script to disable…
Question: How can I open two windowed screens from a button? Solution: To do so, use the following script: Application.GetFrame(“Screen1”).MoveFrame 0, 0, 300, 300Application.GetFrame(“Screen1”).OpenScreen “Screen1?100?0”, CLng(0)Application.GetFrame(“Screen2”).MoveFrame 450, 0, 300, 300Application.GetFrame(“Screen2”).OpenScreen…
Question: How can I check or disable a menu option in SelectMenu method? Solution: To check an option, add an asterisk (*) before the option. To disable an option, add…
Question: Can I create a global variable in an object’s script that will be accepted by all other project’s script? Solution: No, there is no command that can do so…
Question: I have inserted Login() method in Viewer’s OnStartRunning event. However, when I click on Cancel button in the login window, the screen opens anyway. How can I fix this?…
Question: How can I obtain the difference between the current date/time and the date/time input in a setpoint, in minutes? Solution: To do so, you can use the following script:…
Question: Can the Caps Lock key be enabled/disabled via E3? Solution: Yes, this cane be done via VBScript‘s SendKeys method. The script below toggles the Caps Lock key: set WshShell…
Question: Can I open Windows Explorer in a specific folder, via E3? Solution: Yes. With Run Application pick, you will just need to type the address of the folder in…
Question: How can I use an internal tag as vector (Array)? Solution: To save a vector in an internal tag, you must use the following script: Dim list(3) list(0) =…
Question: On a frame, how can I open a screen on another frame? Solution: To do so, you can use a script with methods GetFrame() and OpenScreen(). Example: Application.GetFrame(“”).OpenScreen “NameOfTheFrame”,…