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.Code:SC.AddCode Text1.Text
* 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
Congratulations! You can now run 'scripts' from your engineCode:MsgBox "This is the Start of your Script Engine"
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.Code:Public cScript As New clscScript
Write your Functions/Subs in your new Class Module.
Now update your 'run' (The Button) codes:
You have added Your Class Module into your Engine.Code:SC.Reset SC.AllowUI = True SC.TimeOut = NoTimeout SC.AddObject "cscript", cScript, True SC.AddCode Text1.Text SC.Run "Main"
As well as Subs.
Run:
Congratulations! You are now ready to make your own Rip off of SCARCode:Sub Main() MsgBox "MoHaxRules! I just leech." End Sub
Do it and DIE.
-Monster Hack



.
Reply With Quote
















But something like that.

