SCADA Tutorial #10 | Scripts (Part 2/2) | Screen Events, Object Control & Timer Logic
📌 In the second video of the Wise SCADA scripting training series, we explore how written scripts interact with visual screen objects and how these objects can be controlled dynamically during Runtime.
This lesson focuses on Screen Script logic, event-driven execution, mouse events, timer usage, and advanced runtime object manipulation. You will learn how scripts behave when attached to screen events and how to build more interactive and flexible SCADA user interfaces.
⚠️ Important: To fully understand the topics covered in this lesson, we strongly recommend watching Part 1 (Part 1/2) of the series first.
🔊 Multi-Language Audio Available! This Wise SCADA training video includes multiple audio tracks. Click the Settings (⚙️) icon and select “Audio Track” to choose your preferred language.
📌 What You Will Learn in This Lesson
✅ Screen Script Structure – Associating scripts with screens and understanding memory behavior
✅ Critical Coding Difference – Tag access differences between Main blocks and Event blocks
✅ Tag Access Methods – Direct access vs. Tag.Read() / Tag.Set() usage
✅ Mouse Events – Changing tag values and controlling objects using Mouse Click and Mouse Move
✅ Timer Usage – Adding Timer objects, handling Tick events, and performing time-based actions
✅ Advanced Object Control – Drag & drop and resizing panels during Runtime
✅ Sender Parameter – Dynamically accessing the object (Button, Panel, etc.) that triggered the event
- 00:00 – Introduction and Summary of the Previous Lesson
- 00:35 – Binding Scripts to Screen Events (Mouse Click)
- 02:17 – How Screen Scripts Work
- 02:47 – Critical Rule: Tag Access Methods Inside Events
- 03:29 – Interaction Using Mouse Move Events
- 04:32 – Timer Object and Scheduling Events
- 06:09 – Advanced Example: Dragging and Resizing Panels at Runtime
- 07:18 – Adding the System.Drawing Library
- 07:51 – Use Cases for Draggable Windows
- 08:28 – Accessing Object Properties Dynamically Using Sender
