hi,guys
I have problem by installing a software. I want to install it in silent mode,So I use MacroScheduler to prepare.
the software is a big stuff,after showing some windows(Welcom,Accept,setup Folder) it begins to install, lasts 7mins ,so I may use waitwindowclose,but I found that the window title of the installing names "install software A" from begin to the end. the window titel doesnot change,but the label in the windows changes.such as (begin install,installing,finish install)
how can I do ?
donot tell me
" Wait>420
Press Enter "
thanks in advance!
waitWindowopen or close is not enough?
Moderators: Dorian (MJT support), JRL
-
- Junior Coder
- Posts: 28
- Joined: Wed Jun 08, 2005 2:48 pm
Hi,
You can try the command WaitPixelColor>ColorCode,X,Y,Timeout.
Observe carefully the Install window and look for changing colors in the window during install. Pick up the colorcode and coordinates and put them into the WaitPixelColor command. You can intercept dialog windows and give an answer to that dialog. The success of this technique is strongly dependent of the install program.
Note that a change in the install program (New version of program) needs new colorcodes and/or coordinates.
Success.
Luciano
You can try the command WaitPixelColor>ColorCode,X,Y,Timeout.
Observe carefully the Install window and look for changing colors in the window during install. Pick up the colorcode and coordinates and put them into the WaitPixelColor command. You can intercept dialog windows and give an answer to that dialog. The success of this technique is strongly dependent of the install program.
Note that a change in the install program (New version of program) needs new colorcodes and/or coordinates.
Success.
Luciano
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
You can have the last part of the installation update an INI file, or create a temp file to indicate completion.
Now you can loop checking the INI file for a value or checking to see IfFileExists>
Or do the install with Run Program and RP_WAIT=1.
Now you can loop checking the INI file for a value or checking to see IfFileExists>
Or do the install with Run Program and RP_WAIT=1.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
All,
For What It's Worth (FWIW), I strongly concur with Bob's elegant
solution here for the inherent "changing window title problem"
which seems to be similar in nature to what I've encountered.
I just wanted to say from actual experience the "if file exist" solution
does indeed work and works very well. It seems the way to go rather than trying to focus (no pun intended) on the changing window title
which is really squirreley.
Also FWIW I wanted to thank Bob for posting his helpful solutions,
tips and advice which for me has been instumental in my
utilizing Macro Scheduler (as well as posts from MJTNET support)
I really appreciate it.
Joel S.
For What It's Worth (FWIW), I strongly concur with Bob's elegant
solution here for the inherent "changing window title problem"
which seems to be similar in nature to what I've encountered.
I just wanted to say from actual experience the "if file exist" solution
does indeed work and works very well. It seems the way to go rather than trying to focus (no pun intended) on the changing window title
which is really squirreley.
Also FWIW I wanted to thank Bob for posting his helpful solutions,
tips and advice which for me has been instumental in my
utilizing Macro Scheduler (as well as posts from MJTNET support)
I really appreciate it.
Joel S.