converting to vbs language

Posted on 2009-04-18
Last Modified: 2012-05-06
Hi I wonder if any one can convert an autoIT script to vbs. If possible.

Opt("TrayIconHide", 1) 






WinWait("NetScreen-Remote Setup","Welcome to the NetSc")

If Not WinActive("NetScreen-Remote Setup","Welcome to the NetSc") Then WinActivate("NetScreen-Remote Setup","Welcome to the NetSc")

WinWaitActive("NetScreen-Remote Setup","Welcome to the NetSc")

WinSetState("NetScreen-Remote Setup","Welcome to the NetSc", @SW_HIDE)

ControlClick("NetScreen-Remote Setup","Welcome to the NetSc", "Button5") 

WinWait("Confirm Uninstall","Do you want to compl")

If Not WinActive("Confirm Uninstall","Do you want to compl") Then WinActivate("Confirm Uninstall","Do you want to compl")

WinWaitActive("Confirm Uninstall","Do you want to compl")

ControlClick("Confirm Uninstall","Do you want to compl", "Button1") 

WinWait("Uninstall IPSec Security Policy","Would you like to de")

If Not WinActive("Uninstall IPSec Security Policy","Would you like to de") Then WinActivate("Uninstall IPSec Security Policy","Would you like to de")

WinWaitActive("Uninstall IPSec Security Policy","Would you like to de")

ControlClick("Uninstall IPSec Security Policy","Would you like to de", "Button1") 

WinWait("NetScreen-Remote Setup","NetScreen-Remote Set")

If Not WinActive("NetScreen-Remote Setup","NetScreen-Remote Set") Then WinActivate("NetScreen-Remote Setup","NetScreen-Remote Set")

WinWaitActive("NetScreen-Remote Setup","NetScreen-Remote Set")

ControlClick("NetScreen-Remote Setup","NetScreen-Remote Set", "Button1")

Open in new window

Question by:Zak
    1 Comment
    LVL 4

    Accepted Solution

    I am pretty sure that AutoIt just uses some windows APIs to manipulate an application's user interface.  While you could research this on your own and create COM objects to do this in vbscript, my question would be... why? AutoIt does a great job of this, it does not need to be installed on the end user's computer that is running it.  The user, or system, just needs to start the compiled AutoIt script and it does everything it is supposed to do as if it were installed.  It's a self contained full autoit install without leaving anything behind when its done. Its pretty darn good for most scripting jobs.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Recently I finished a vbscript that I thought I'd share.  It uses a text file with a list of server names to loop through and get various status reports, then writes them all into an Excel file.  Originally it was put together for our Altiris server…
    When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now