Monster Hack
2007-01-22 19:25:46
If you like SCAR but don't understand Delphi/Pascal, then this is the tutorial for you.
This Tutorial will show you the basics of The Ms Script Control in VB6
1. Intro and The Basics
First Start a new Project in Visual Basics
Now, Press Ctrl + T. Doing this will bring up your project's components.
Look for "Microsoft Script Control 1.0"

Now you will have a little icon like so
.
2. Running the 'Scripts'
Ok, now add a the script control on to your project. Name it "SC"
Now add a button and a textbox.
Your Project should now look like this:

Double Click on your Button and add this code to it.
* SC = Script Control.
* AddCode = Allows you to use this code
* Text1 = The Textbox we added earlier
Now you can do little things like MsgBox.
Simple Visual Basic Coding.
Example, Write this in your textbox > run > Click the Button
3. A Little Deeper
Wish to continue? Move on to something like SunMacro?
Must have a little exp. to continue:
Easiest way to control a script, and most likely the only way, is using a Class Module to use the functions.
So now add this:
> Add a Class Module into your Project.
Write your Functions/Subs in your new Class Module.
Now update your 'run' (The Button) codes:
As well as Subs.
Run:
Do it and DIE.
-Monster Hack
This Tutorial will show you the basics of The Ms Script Control in VB6
1. Intro and The Basics
First Start a new Project in Visual Basics
Now, Press Ctrl + T. Doing this will bring up your project's components.
Look for "Microsoft Script Control 1.0"

Now you will have a little icon like so
.2. Running the 'Scripts'
Ok, now add a the script control on to your project. Name it "SC"
Now add a button and a textbox.
Your Project should now look like this:

Double Click on your Button and add this code to it.
SC.AddCode Text1.Text* SC = Script Control.
* AddCode = Allows you to use this code
* Text1 = The Textbox we added earlier
Now you can do little things like MsgBox.
Simple Visual Basic Coding.
Example, Write this in your textbox > run > Click the Button
MsgBox "This is the Start of your Script Engine" Congratulations! You can now run 'scripts' from your engine3. A Little Deeper
Wish to continue? Move on to something like SunMacro?
Must have a little exp. to continue:
Easiest way to control a script, and most likely the only way, is using a Class Module to use the functions.
So now add this:
Public cScript As New clscScript > Add a Class Module into your Project.
Write your Functions/Subs in your new Class Module.
Now update your 'run' (The Button) codes:
SC.Reset
SC.AllowUI = True
SC.TimeOut = NoTimeout
SC.AddObject "cscript", cScript, True
SC.AddCode Text1.Text
SC.Run "Main" You have added Your Class Module into your Engine.As well as Subs.
Run:
Sub Main()
MsgBox "MoHaxRules! I just leech."
End SubCongratulations! You are now ready to make your own Rip off of SCARDo it and DIE.
-Monster Hack