Skip to content

Scripts for beginners.

User Avatar
#102
Auto-translated
Here. Now it's clear what we're talking about. Yes... it's much simpler this way... we just specify a new text file name each time, and the function inserts it into our template, described in just one word: MsgBox, and then it executes.
The second parameter of the cb function is similar to the second parameter of the original MessageBox (I won't explain its meaning; there's documentation for that). The second parameter is optional; you can omit it.
The second parameter is responsible for calling a new function after clicking "OK" on the message. And yes, the Manuals say that you don't have to write it.
Okay, then, the next question. "Cascading task." Let's say we need to capture 3 different mines: a sawmill, an ore mine, and a sulfur mine. What's the best way to structure this? Should we set up 3 checks and change the task status after each one, or what? Or should we use a trigger that checks, for example, every day, whether we have that mine?
Завтра - это всего лишь другое название для сегодня.:smile51: