Jump to content
Sign in to follow this  
Guest shariawind

HELP! ----install script problem

Recommended Posts

Guest shariawind

I learned AUtoIt tool few days ago, and I think it a good tool to solve automation install problem.

But today I apply it on my job , but it failed.

The software I want to install called STAF(software testing automation framework), it based java. When run it, it will appear that preparing JAVA vitual machine first ,and then begin to install,

I write the AutoIt v3 script such as:

run("STAF267-setup-win32")

WinWaitActive("STAF V2.6.7","Welcome to")

Send("!n")

But when appear "STAF V2.6.7","Welcome to",it stopped,and Alt+n didn't run.

I puzzled,

Please help me!

Share this post


Link to post
Share on other sites

Try adding this to the top of your install script

Opt("TrayIconDebug", 1)
and see if it actually stops at the
WinWaitActive(("STAF V2.6.7","Welcome to")
or actually passes it.

This will show if WinWaitActive() or whether Send() is the problem. It will display the line that the script is at, by hovering your mouse over the icon, in the system tray, next to the clock.

The case of window titles and text are case sensitive, so double check these.

Share this post


Link to post
Share on other sites
Guest shariawind

I don't understand what you said clearly.

do you mean AutoIt can't run this software?

Share this post


Link to post
Share on other sites
Guest shariawind

please help me .

The boss give me big pressure!

Thank you!

Share this post


Link to post
Share on other sites
Guest shariawind

why do WaitForPixel twice?

does the function of WaitForPixel() is to find the correct window?

in addition,I run this code you give me and there's no effect

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...