Jump to content

cswann

Members
  • Posts

    2
  • Joined

  • Last visited

cswann's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Also, using the Window Title instead of class makes no difference and the WinClose() function is likewise ignored.
  2. I'm having a similar issue. The setup I'm running works fine. The /S opperator is for silent install however the installer leaves a window open that requires a user input to close. I'm trying to deploy this script in my MDT os deployments but can't for the life of me get a simple TAB then ENTER to close the window so my scripted deployment can continue. Can anyone see a reason the following code would not work? I know the #include's are'n't needed here, they're from various things I was trying/testing. On that topic, I was using an If/Then section with message boxes to tell me if the window with [CLASS:#32770] exists. Oddly I got my popup window telling me that it does exist, but it appears several seconds before the software installer even appears. I've tried ControlCommand, MouseMove and MouseClick and nothing I do will have any interaction with this window. The script finishes without any errors or drama but it never seems to be executing anything below the WinWaitActive line. #include <MsgBoxConstants.au3> #include <AutoItConstants.au3> CPSI_installer() Func CPSI_installer() ShellExecute("\\<servername>\e$\Software\CPSI\cpsetup.exe","-host=0.0.0.0 /S","") Sleep(12000) WinWaitActive("[CLASS:#32770]", "") Sleep(3000) Send("{TAB}") Sleep(200) Send("{ENTER}") EndFunc
×
×
  • Create New...