Sign in to follow this  
Followers 0
spyrorocks

AutoIt VBScript handler

2 posts in this topic

Hello, all!

Something that has interested me recently is the scriptcontrol use in autoit. It allows you to execute vbscript using a COM object inside your autoit script.

See the examples here: http://rookscape.com/vbgaming/tutBQ.php (Its in VB though)

Now, what im wondering, is how would I transfer those VB examples of creating functions in autoit and allowing the vbscript to access my own autoit functions?

Thanks,

_Brad

Share this post


Link to post
Share on other sites



This is what I've been using in one of my projects (for Javascript).

$js = ObjCreate("ScriptControl")

$js.language = "Jscript"

$js.addcode("code here")

Use $js.Eval, Run or Execute to call it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0