Hello!
Is there a way to program a UIBlock Button in an Interactive Automation Script to run a certain code when pressed?
The intention is to avoid the uiResult.WasButtonPressed("destVar") way which requires a Do...While or if approach; so that the button can do what it's asked to while the main Async Task script is running.
Hi Satrap,
The easiest way to get started with building an interactive Automation Scripts (IAS) is consuming the Interactive Automation Script Toolkit | DataMiner Docs.
You'll find quite some good content to get your started:
- Getting started with the IAS Toolkit | DataMiner Docs
- Blog Post on DOJO: Available now: Interactive Automation script example package - DataMiner Dojo
All links provided are giving you information on how to do this, but it comes down to introducing a Button and adding an event handler to it.
Kind Regards,
Jarno
Nowadays, we highly recommended using the interactive toolkit, but if you insist on using the raw available features, it is also possible although a little bit more complex. I would recommend you to watch the following video, where my colleague is showing how we used to develop interactive automation scripts. Interactive automation using C# – DataMiner Dojo (https://community.dataminer.services/courses/dataminer-automation/lessons/interaction-automation-using-c/)
Thanks a lot! If I’ve designed my automation script in the old fashion way of UIBLOCKDEFINITION, UIBUILDER and …, will there also be a way to accomplish this?