swampy Posted May 10, 2005 Share Posted May 10, 2005 I'm making a silent install of crossword maestro, I need to close a window after installIn vmware, this works, but doesn't work in real windowsOpt("WinWaitDelay", 400)Run ("SETUP.EXE -s")Opt("MouseCoordMode",0)WinActivate("C:\Documents and Settings\All Users\Start Menu\Programs\Crossword Maestro","FolderView")WinWaitActive("C:\Documents and Settings\All Users\Start Menu\Programs\Crossword Maestro","FolderView")Send("{ALTDOWN}f{ALTUP}{DOWN 5}{ENTER}") In windows this works, but doesn't work in vmwareOpt("WinWaitDelay", 400)Run ("SETUP.EXE -s")Opt("MouseCoordMode",0)WinActivate("Crossword Maestro","FolderView")WinWaitActive("Crossword Maestro","FolderView")Send("{ALTDOWN}f{ALTUP}{DOWN 5}{ENTER}")Any ideas would be appreciated. Link to comment Share on other sites More sharing options...
MHz Posted May 10, 2005 Share Posted May 10, 2005 Strange how you get full window title in VMWare, but the usual folder title in windows.But, just use an Opt() to sort this script.("WinTitleMatchMode", 2)This will allow substring title recognition, rather then from the start of the title. Link to comment Share on other sites More sharing options...
MHz Posted May 10, 2005 Share Posted May 10, 2005 Post error, sorry. Link to comment Share on other sites More sharing options...
swampy Posted May 10, 2005 Author Share Posted May 10, 2005 I'm not great at autoit & I don't know how to implement your help.Would you be kind enough to edit my script ?TIA Link to comment Share on other sites More sharing options...
MHz Posted May 10, 2005 Share Posted May 10, 2005 Opt("WinWaitDelay", 400)Opt("WinTitleMatchMode", 2)Run ("SETUP.EXE -s")Opt("MouseCoordMode",0)WinWait("Crossword Maestro","FolderView"); Added also.WinActivate("Crossword Maestro","FolderView")WinWaitActive("Crossword Maestro","FolderView")Send("{ALTDOWN}f{ALTUP}{DOWN 5}{ENTER}")Certainly I can.Opt() just is added to the top of the script as shown. Link to comment Share on other sites More sharing options...
swampy Posted May 10, 2005 Author Share Posted May 10, 2005 thanks so much, I'm elsewhere now, can't wait to try tomorrow Oz time Link to comment Share on other sites More sharing options...
swampy Posted May 10, 2005 Author Share Posted May 10, 2005 It works. Thanks again. 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