Sign in to follow this  
Followers 0
Sam31

Can we add vbscript in Autoit script?

5 posts in this topic

Can we add vbscript in Autoit script?

For exemple I want to run vbscript first and run Autoit script after.

Share this post


Link to post
Share on other sites



I doubt it. I dont know much about VBScript, but I assume you cannot make it into a .dll?

Maybe you could try compiling the VBScript then, and encoding it into hex and place that in your program, which can then write the vb file, run that then run the rest of the autoit code.

I hope that was clear?

Share this post


Link to post
Share on other sites

Ya I will do a bat file and run vbs first and autoit script after. Thanks anyway:)

Share this post


Link to post
Share on other sites

Yes you can.

Check this post #4).


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

This may be oversimplifying what you want, but I have a couple of scripts that call a vbscript, just using FileInstall. Then when you're done, continue with the AutoIt (or skip the headache altogether and convert the vbs to AutoIT :) ). Something like this:

FileInstall("C:myvbs.vbs", @TempDir & "myvbs.vbs", 1)
RunWait("cscript.exe " & @TempDir & "myvbs.vbs", "", @SW_HIDE)

;rest of your autoit code...

Edit: Corrected spelling ;)

Edited by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

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