Jump to content

running autoit script from vbs


Recommended Posts

Hi

First I'd say anything you can do in vbs, autoit can do better. I'd say stick in autoit and convert all your vbs to autoit

Now on to your questions. You of course could pass a parameter from VBS to autoit, not a problem. To get a parameter back from autoit, I think you would need the autoit program to set an environmental variable or document the information in a text file which the VBS would then access.. How do you run an au3 from VBS. How about

Set objShell = CreateObject("Shell.Application")

objShell.ShellExecute "c:\hidetaskbar.au3", "", , , NORMAL_WINDOW

Finally. Once compiled as an exe, the file can be run on any computer even if it doesn't have autoit installed.

Good?

Picea

Link to comment
Share on other sites

  • 3 months later...

Hi

First I'd say anything you can do in vbs, autoit can do better. I'd say stick in autoit and convert all your vbs to autoit

Now on to your questions. You of course could pass a parameter from VBS to autoit, not a problem. To get a parameter back from autoit, I think you would need the autoit program to set an environmental variable or document the information in a text file which the VBS would then access.. How do you run an au3 from VBS. How about

Set objShell = CreateObject("Shell.Application")

objShell.ShellExecute "c:\hidetaskbar.au3", "", , , NORMAL_WINDOW

Finally. Once compiled as an exe, the file can be run on any computer even if it doesn't have autoit installed.

Good?

Picea

so is there a way to run vbs from autoit? I was told using scriptcontrol but I don't have the foggiest idea where to start

I initially wanted to run an autoit login script and give these values to a vbs script to run - can you advise?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...