Jump to content

VMWare &/OR AutoIt question


swampy

Recommended Posts

I'm making a silent install of crossword maestro, I need to close a window after install

In vmware, this works, but doesn't work in real windows

Opt("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 vmware

Opt("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


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

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...