Guest shariawind Posted June 2, 2005 Share Posted June 2, 2005 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! Link to comment Share on other sites More sharing options...
MHz Posted June 2, 2005 Share Posted June 2, 2005 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. Link to comment Share on other sites More sharing options...
Guest shariawind Posted June 2, 2005 Share Posted June 2, 2005 I don't understand what you said clearly. do you mean AutoIt can't run this software? Link to comment Share on other sites More sharing options...
Guest shariawind Posted June 2, 2005 Share Posted June 2, 2005 please help me . The boss give me big pressure! Thank you! Link to comment Share on other sites More sharing options...
Guest shariawind Posted June 2, 2005 Share Posted June 2, 2005 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now