This shows you the differences between two versions of the page.
| Previous revision | |||
| — | tadtutorial1 [2025/03/15 11:16] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | =====Tutorials Using AutoIt===== | ||
| + | AutoIt is a nice scripting language that you can use to automate actions. This is really useful for developing active tutorials. By //active// I mean tutorials that can work on top of a //live software//. Here is a short AutoIt script which can be executed to show a brief tutorial on how to start the creation dialog. | ||
| + | |||
| + | Those of you who can do a little bit of programming, | ||
| + | |||
| + | Also: As AutoIt is a regular programming language too; it can even be used for more sophisticated activities too. | ||
| + | |||
| + | In fact, you could create scripts such as this for useful work too! If you want your office to have a standard set of actions to be performed inside TAD, such scripts could be written to perform those standard actions. | ||
| + | |||
| + | Download AutoIt from http:// | ||
| + | |||
| + | < | ||
| + | #include < | ||
| + | |||
| + | ; | ||
| + | ; AutoIt Version: 3.0 | ||
| + | ; Language: | ||
| + | ; Platform: | ||
| + | ; Author: | ||
| + | ; | ||
| + | ; Script Function: | ||
| + | ; Opens TAD, opens the create objects dialog and shows a baloon tip | ||
| + | ; | ||
| + | |||
| + | $tutorTitle = "TAD Tutorial" | ||
| + | |||
| + | ; Prompt the user to run the script - use a Yes/No prompt with the flag parameter set at 4 (see the help file for more details) | ||
| + | ;Local $iAnswer = MsgBox(BitOR($MB_YESNO, | ||
| + | |||
| + | ; Check the user's answer to the prompt (see the help file for MsgBox return values) | ||
| + | ; If " | ||
| + | ;If $iAnswer = 7 Then | ||
| + | ; | ||
| + | ; Exit | ||
| + | ;EndIf | ||
| + | |||
| + | ; Run TDL | ||
| + | ; | ||
| + | |||
| + | ; Wait for TAD Designer Lite to become active. | ||
| + | WinWaitActive(" | ||
| + | ; Start a new TAD model using Ctrl-N | ||
| + | Send(" | ||
| + | ; Invoke the creation dialog using Shift-Ctrl-F1 | ||
| + | Send(" | ||
| + | |||
| + | ; Wait till the dialog pops up | ||
| + | WinWaitActive(" | ||
| + | ;MsgBox ( $MB_OK+$MB_TOPMOST, | ||
| + | |||
| + | Local $sMessage = "Using the creation dialog" | ||
| + | |||
| + | ToolTip ( $sMessage, 274, | ||
| + | Sleep(2000) | ||
| + | |||
| + | |||
| + | |||
| + | ; Finished! | ||
| + | </ | ||