Click here to Skip to main content
15,900,378 members
Articles / Programming Languages / C#
Article

Scripted tutorials

Rate me:
Please Sign up or sign in to vote.
1.00/5 (2 votes)
21 Feb 2006 14.9K   245   4   2
Interactive tutorials through a simple script

Introduction

This piece of code demonstrates how to easily create scripted tutorials in C#

Background

I initially designed this because I found making tutorials other ways to be not as good

Using the code

There really isn't much to the code. The function Message takes in a file and calls the appropriate function for the text that calls it. MoveMouse moves the mouse, etc.

Though it isnt a totally generic script. You will need to have all of the forms you want to use in it in OverallForm.formList and set your own filepath.



Example Script


Message-The menus form is the list of menus that you want to print out. Just go in and type in any extra menus you might want.
Message-For example if you want a 1500 calorie menu and a 1800 calorie menu for diabetic you could add in something like "Diabetic 1800" or simply put "1800" on the next line after diabetic.
MoveMouse-Menus-richTextBox1
Type-Menus-richTextBox1-blah
If you are not using the full version you will also see a form displaying information on that.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRubbish Pin
Mark Focas21-Feb-06 10:21
Mark Focas21-Feb-06 10:21 
I would normally provide more text on why I think this article is rubbish, but it is so bad it doesn't even deserve that

Being in a minority of one, doesn't make you insane
George Orwell
However, in my case it does

GeneralRe: Rubbish Pin
sterra21-Feb-06 16:21
sterra21-Feb-06 16:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.