Important alert: (current site time 7/16/2013 3:42:46 AM EDT)
 

winzip icon

Script Engine: Allow end users to extend your app using VB

Email
Submitted on: 5/29/2000 5:52:26 PM
By: Anoop Madhusudanan  
Level: Advanced
User Rating: By 40 Users
Compatibility: VB 5.0, VB 6.0
Views: 47674
author picture
(About the author)
 
     Hi Folks: Hurray, I made that!!. Dont shiver with excitation, but now you can interpret VBScript to extend the interfaces of your application. Allow your end users to extend your program using the power of Visual Basic. Hm.., I can't find any reason for these US Software companies not to provide me an H1 visa to join them :). You can interpret VB from your own application. Getting a little confused? Imagine this. Your end users can write VB code to extend your application interfaces. Simply like Microsoft uses VBA to extend Microsoft Office, you can now use VBScript to extend your apps. This means that you can allow your users to develop custom scripting, and you can make programs that work on macros. Amazing, right? In this engine, I shows you how to add forms and class interfaces to the Script Control. Just run the application before even taking a look at the code. One last word, VOTE FOR ME IF YOU FIND THIS USEFULL::: Also, r u a US based programmer? I am looking for creating tie-ups with established US companies for implementing Web Phone services and Voice chat apps using the latest broadcasting technology I developed, and is planning to relocate to US shortly. Kindly visit my website http://www.geocities.com/streamingaudio if u have enough time. I would be gratefull if you can provide me information regarding finding investors/sponsors in US for my ventures. Regards, Anoop,anoopj12@yahoo.com, http://www.geocities.com/streamingaudio

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 12 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
5/29/2000 8:22:29 PM\/îÞè® Tè¢.

Where can I download msscript.ocx?
(If this comment was disrespectful, please report it.)

 
5/29/2000 10:43:00 PMChris

This is brilliant. Exactly what I needed. Thanks!!!
(If this comment was disrespectful, please report it.)

 
5/29/2000 10:43:34 PMAnoop

It comes as a part of Microsoft Development Environment. I think it will get installed on your system with PWS/IIS
(If this comment was disrespectful, please report it.)

 
5/30/2000 12:37:04 AMDetonate

WOOOHOOO! Excellent !
Been looking for something like this since I was 7 !
Very nice :-)

(If this comment was disrespectful, please report it.)

 
5/30/2000 1:10:57 AMARRiVE

This is great! I have been wondering on how to do this!

Thanks
ARRiVE
(If this comment was disrespectful, please report it.)

 
5/30/2000 2:18:30 AMAnDy2552

I have written programs using the ms script control before, so it is not something new.
Anyhow a good way to teach ppl. over the PSC community. Keep it up.
(If this comment was disrespectful, please report it.)

 
5/30/2000 4:54:36 AMDa_Mental_One

This Is Kewl! :) Just The Sort Of Added Functionality That VB End Users Will Want! :) Keep It Up!
(If this comment was disrespectful, please report it.)

 
5/30/2000 5:07:49 AM\/îÞè® Tè¢.

Does anyone know where I can download msscript.ocx. I used to have it, but my comp got destroyed (burrned to death in fire, that sux...)
(If this comment was disrespectful, please report it.)

 
5/30/2000 1:28:53 PMMarty

The msscript control and doumentation can be obtained from file

sct10en.exe at

http://msdn.microsoft.com/scripting/default.htm?/scripting/scriptcontrol/default .htm

(If this comment was disrespectful, please report it.)

 
6/8/2000 8:59:49 AMthe juggalo

wow, i've been looking for a way to do this for a while. this is definately going in my windows shell enhancement i'm doing and you're getting your name in big letters on the 'about this program' page. thanks man.
(If this comment was disrespectful, please report it.)

 
6/11/2000 4:04:16 PMSteve G

I click the link and the file no longer exists.....Whats up with that?
(If this comment was disrespectful, please report it.)

 
6/17/2000 7:49:41 PMOscar Hernandez

Excellent Job!!!!
just a great piece of code...
go on...!!!
(If this comment was disrespectful, please report it.)

 
6/28/2000 8:15:28 PMbo

you can get the script control fromhttp://guest.btinternet.com/~awingrove/scripting/download/sct10en.exe
(If this comment was disrespectful, please report it.)

 
6/30/2000 10:52:48 AMDetonate

Does anybody know of a way to activate events using ScriptControl.State = Connected ?
(If this comment was disrespectful, please report it.)

 
7/3/2000 7:40:03 PMSkull Dugrey

Well commented, easy to understand. Simple, easy to use interface. For some reason I could never get the Script Control to work before, I knew it had to be easy. I like it, thank you.
(If this comment was disrespectful, please report it.)

 
7/20/2000 5:49:23 AMhandbrake

How can I detect an event, eg a click on a button, in a script? Is it possible?
Thanks.
(If this comment was disrespectful, please report it.)

 
1/28/2001 10:33:25 AMManuel Fernandez

Well done, Anoop!, you just got 4 globes from me 'cause you didn't show methods and properties of the classes inside the script. Otherwise this would have been a five globes code... Maybe next version??? :)

Keep up the good work...
(If this comment was disrespectful, please report it.)

 
3/8/2001 2:55:08 AMAndy

Hi,
(If this comment was disrespectful, please report it.)

 
3/8/2001 2:34:39 PMDion Campbell

Howdy,

For anyone wanting more information about using the script control to customise their apps, the following resources may be useful:
Visual Basic Programmers Journal, November 2000

Script control and doucmentation - msdn.microsoft.com/scripting

Various Microsoft Knowledge Base articles (search.support.microsoft.com/kb/c.asp) such as Q185889, Q184740, Q184745, Q185697, Q184742, Q184743, Q185461, Q184741.

This list of references comes from the VBPJ article Make Your Apps Scriptable.

Happy programming!
(If this comment was disrespectful, please report it.)

 
3/8/2001 2:35:00 PMPeter

Wouldn't using Microsoft's VBA SDK perform a lot better and provide universal connectivity between other programs?
(If this comment was disrespectful, please report it.)

 
3/9/2001 12:38:02 PMH3c70r R4u1

Hi, I'm from Mexico and let me tell you that i admire you people from India, in my opinion you are actually who have most advanced knowledge about programing, i hope to go soon there to learn a lot of you... about the code, it's very good 'cause i'm learning vbscripts...
bye and thanks.
(If this comment was disrespectful, please report it.)

 
3/29/2001 12:04:09 AMDouglas

Wonderful code, boy.
I see about script control, but not with explanation.
Clever!
Please, The search engine Brasilian arent good to site Indian. Please, give me example of goods Indian sites about VB.
(If this comment was disrespectful, please report it.)

 
11/19/2001 7:33:21 PMJeff Kern / Lucky Strike Designs

KICK A$$ CODE! Actually, letting users extend your program is a good idea, but it works even better in a video game! You write the scripts into separate files, and load each script into the game, when it is needed! It would save time, space, and energy instead of making a different subroutine for each (script), especially if you only need to use it once!
(If this comment was disrespectful, please report it.)

 
5/16/2002 10:00:16 PMKeir Gordon

Very nice, I knew this could be done, but was not sure how to implement it. Got my vote.
(If this comment was disrespectful, please report it.)

 
7/4/2002 12:32:28 AMAndrew

Great Work Man!!!!!!!!!! 5 Globes from moi!!!!
(If this comment was disrespectful, please report it.)

 
7/29/2002 4:42:23 PMKlemens

Beautiful Code! 5 Globes from me!

How can I detect an event (click
on a button) in a script? Is it
possible?

I search on the ms-homepage, but i don't found a suitable code!

Please help me!
Thanks.
(If this comment was disrespectful, please report it.)

 
9/5/2002 12:06:02 AMRandy Girard

hmmmm, I was working on something just like this not to long ago, but quit cuz I got bored with it. I was just thinkin about startin it up again and I saw this *DOH!* all well. Looks like you did a nice job... I may use some of the source code if it's ok, in a program I'm workin on (allows users to customize it through the scripts, etc) you'll get credit.
(If this comment was disrespectful, please report it.)

 
9/10/2002 9:04:34 PMRandy Girard

I was just lookin at your code... and I decided I'm gonna finish my version and submit it to psc... cuz mine, you can add forms, controls, etc at runtime, and other options which yours does not (I should say YET) support. it's not bad though
(If this comment was disrespectful, please report it.)

 
5/6/2004 10:04:40 PMGrayda

Excellent!! 5 Globes. I only just found this code, but it works a lot better than caling VBA6.dll, which crashes a LOT in my program. Now I can create "scripts" for my programs. Now, need to test the limit on objects...
(If this comment was disrespectful, please report it.)

 
1/1/2005 4:08:37 PMConstantin Popescu

Yup... this is coding. 5
There should be more people like you Anoop! Keep it up.
(If this comment was disrespectful, please report it.)

 
5/5/2005 1:34:11 PM

great.....
but still.... it lacks of debugger facility that could do step debug.
would be great if it has so.
(If this comment was disrespectful, please report it.)

 
10/18/2007 12:28:18 PMPiter

Nice article,
try also Script.NET:
http://www.protsyk.com/scriptdotnet
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.