Jump to content

Help automating a setup


anyone72
 Share

Recommended Posts

I came across this awesome software a couple of days ago. I like the idea of using to automate a setup for the company I work for. I have the following code (novice typing here). The areas that I need help are after the line demarcated with the '#' sign. Any help would be greatly appreciated.

Run("Setup.exe")

; Initial Setup Screen

WinWaitActive("Workstation Setup")

Send("!y")

WinWaitActive("Workstation Setup", "Welcome to the InstallShield")

Send("!n")

WinWaitActive("Workstation Setup", "License Agreement")

Send("!y")

WinWaitActive("Workstation Setup")

Send("!n")

WinWaitActive("Workstation Setup")

Send("!n")

WinWaitActive("Workstation Setup", "Select the Workstation")

Send("!n")

###########################################################

Here is a problem that I have, a list of check boxes come up and I have to choose the proper

configuration to install, how do I do this? I am able to install the default one

###########################################################

WinWaitActive("Workstation Setup", "Select Workstation Type")

Send("!n")

###########################################################

a pop up window that will not respond to the "enter command"

###########################################################

;server configuration

WinWaitActive("Workstation Setup", "Server Configuration"

Send("{ENTER}")

WinWaitActive("Workstation Setup", "Country Configuration")

Send("{ENTER}")

##########################################################

on the last screen, i have the option of restating right away or later; radio type selection

##########################################################

WinWaitActive("Workstation Setup", "please login to")

Send("No, I will restart my computer later.")

Send("{ENTER}")

Link to comment
Share on other sites

First, did you test to see if the control you are trying to interact with is able to be changed with a tab, shift, or arrow keystroke? If so, you could just do a send("{RIGHT}) to do a keystroke to the right for example. Review the send command to see what keystroke you need to use.

A second method is to use controlsend. More stable to use.

A third method is to use the macro tool available in the full SciTe version. It will record your keystrokes and mouseclicks so you can get the idea on how you need to do what you want.

Link to comment
Share on other sites

Yes, they are navigable using the tab, space, enter, up/down arrow. Now, the syntax, if I want to use the down error would be ControlSend("{DOWN}") and then send a command for enter. Am I correct?

First, did you test to see if the control you are trying to interact with is able to be changed with a tab, shift, or arrow keystroke? If so, you could just do a send("{RIGHT}) to do a keystroke to the right for example. Review the send command to see what keystroke you need to use.

A second method is to use controlsend. More stable to use.

A third method is to use the macro tool available in the full SciTe version. It will record your keystrokes and mouseclicks so you can get the idea on how you need to do what you want.

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...