Jump to content
Sign in to follow this  
hammingus

Install not Finishing

Recommended Posts

hammingus

Hi, I am using Auto IT to package install of 3 apps. Everything works fine apart from the "hit F to Finish" final window not being activated. I can't figure out how I resolve this and would greatly appreciate some advice. I've tried everything I can think of and wasted too much time! Someone please show me what I am missing!

It just hangs at the final window - I have checked that name is correct. All I have to do is hit the F key so don't think I'm too far away!

Thanks in advance!

The last 2 commands are pasted below.

Do

Winactivate("Setup Wizard","Hit I to Install")

Sleep(500)

Until Winactive("Setup Wizard")

Send("I")

Do

Winactivate("Setup Wizard","Hit F to Finish")

Sleep(500)

Until Winactive("Setup Wizard")

sleep(500)

Send("F")

Share this post


Link to post
Share on other sites
herewasplato

Welcome to the forum.

You might try sending a lowercase "f" to to final window or maybe just "ENTER".


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
hammingus

Have tried "F", "!F", "f", "ENTER" - everything - but it still won't finish. I don't think the window is being activated even though I have double checked it is named correctly in script.

Any other ideas?

Thanks

Share this post


Link to post
Share on other sites
BrettF

Have tried "F", "!F", "f", "ENTER" - everything - but it still won't finish. I don't think the window is being activated even though I have double checked it is named correctly in script.

Any other ideas?

Thanks

Make sure it is active, you could try control send to the HWND of the window?

Share this post


Link to post
Share on other sites
MHz

2 lines match in both loops.

Until WinActive("Setup Wizard")oÝ÷ Øííl·§v+zf¢Ê)zwè­ª^®*jwr¢ç§µêíí§vZ(¦Ø^*.®Çª¹éÜzf²}¨¥RDz¢êí{ij¶¦z׫¶§²êÞrëyËh¥êÚ¶*'jëh×6Do
    WinActivate("Setup Wizard", "Hit I to Install")
    Sleep(500)
Until WinActive("Setup Wizard", "Hit I to Install")
Send("I")

Do
    WinActivate("Setup Wizard", "Hit F to Finish")
    Sleep(500)
Until WinActive("Setup Wizard", "Hit F to Finish")
Sleep(500)

Send("F")

If that fails, then you have another issue causing the problem. Check whether the Alt key needs to also be pressed with the F key using Send(). WinClose() maybe another option to try with the last window.

:)

Share this post


Link to post
Share on other sites
herewasplato

2 lines match in both loops...

Doh - I missed that.

Good catch.


[size="1"][font="Arial"].[u].[/u][/font][/size]

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.