hammingus Posted May 20, 2008 Share Posted May 20, 2008 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") Link to comment Share on other sites More sharing options...
herewasplato Posted May 20, 2008 Share Posted May 20, 2008 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] Link to comment Share on other sites More sharing options...
hammingus Posted May 21, 2008 Author Share Posted May 21, 2008 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 Link to comment Share on other sites More sharing options...
BrettF Posted May 21, 2008 Share Posted May 21, 2008 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?ThanksMake sure it is active, you could try control send to the HWND of the window? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
James Posted May 21, 2008 Share Posted May 21, 2008 ControlClick() maybe? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
MHz Posted May 21, 2008 Share Posted May 21, 2008 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. Link to comment Share on other sites More sharing options...
herewasplato Posted May 22, 2008 Share Posted May 22, 2008 2 lines match in both loops...Doh - I missed that.Good catch. [size="1"][font="Arial"].[u].[/u][/font][/size] 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