Sign in to follow this  
Followers 0
kuhasu

running autoit script from vbs

21 posts in this topic

How can I let autoit script run in VBS by the way of ActiveX/COM?

It means the AutoitX can be run as a procedure in windows,right?

No need to compile the code by far.

Thank you very much!

Share this post


Link to post
Share on other sites



AutoItX does not run AutoIt au3 scripts. It just contains some functions that AutoIt has so you can call them from other languages.

Share this post


Link to post
Share on other sites

oops~

then is there any solutions let me can run autoit script in VBS?

I just wanna write some code to focus a window,send some orders,text,and key press...this kinda things.

And how can I let the ActiveX be activated with the VBS and let it stay in RAM unless I quit the VBS.

Thank you.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

BTW,I also need to put the value from a macro variable in the VBScript to another macro variable in autoit script in the code of vbs.

Any suggestions?

Thank you so~ much!

Edited by kuhasu

Share this post


Link to post
Share on other sites

You can just translate the AutoIt code to VBS. AutoItX has some of the AutoIt built in functions.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

so is there any materials for VBS?window control,paste the variables of macro variable,submit press?....just like autoit

Thank you.

Edited by kuhasu

Share this post


Link to post
Share on other sites

Look at the functions available in AutoItX. The help file is included under the extras in the start menu.

Share this post


Link to post
Share on other sites

thank you.

then how can I pass the value of a variable in VBS to the autoit script?

Actually AutoitX runs in a VBS way,so the macro variable can be recognized by autoitX directly,am I right?

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

I'm not entirely sure what you mean. Can you try explaining it differently?

Edited by Richard Robertson

Share this post


Link to post
Share on other sites

oops~

When we run autoitX scripts in VBS environment,actually we are running VBscript.And the autoitX in activeX or in dll is a package of some of the functions.Right?Thus,actually we are running VBS with VBS functions,not autoit scripts in VBS?

Share this post


Link to post
Share on other sites

Correct. But AutoItX lets you call some AutoIt style functions from VBS. Like WinList. AutoItX lets you call WinList in VBS.

Share this post


Link to post
Share on other sites

Thx,dude!

Share this post


Link to post
Share on other sites

But there are some functions were not in AutoITX. E.g : Msgbox, StringInStr,...

Share this post


Link to post
Share on other sites

Any language that can call AutoItX should have its own message box and string functions.

Share this post


Link to post
Share on other sites

Any language that can call AutoItX should have its own message box and string functions.

Then how can we call dll by autoitX in vbs?

you know vbs can not support dll calling directly

Share this post


Link to post
Share on other sites

DllCall is not implemented in AutoItX.

Why not just use AutoIt directly instead of VBS?

Share this post


Link to post
Share on other sites

DllCall is not implemented in AutoItX.

Why not just use AutoIt directly instead of VBS?

Well~vbs is a must...

Any ideas pls?

Share this post


Link to post
Share on other sites

#18 ·  Posted (edited)

Why is it a must?

And no, there are no suggestions because you already said it won't work.

And don't make two threads on the same topic.

Edited by Richard Robertson

Share this post


Link to post
Share on other sites

Why is it a must?

And no, there are no suggestions because you already said it won't work.

And don't make two threads on the same topic.

thank you.

Share this post


Link to post
Share on other sites

#20 ·  Posted

How can I let autoit script run in VBS by the way of ActiveX/COM?

Take a look here: AU3Automation

UDFS & Apps:


DDEML.au3 - DDE Client + Server[*]
Localization.au3- localize your scripts[*]
TLI.au3 - type information on COM objects (TLBINF emulation)[*]
TLBAutoEnum.au3 - auto-import of COM constants (enums)[*]
AU3Automation - export AU3 scripts via COM interfaces
TypeLibInspector

- OleView was yesterday

Coder's last words before final release: WE APOLOGIZE FOR INCONVENIENCE 

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