adamsj13 Posted April 5, 2004 Posted April 5, 2004 Hi all, I'm tring to write a small script and a window at the end of the install pops up but in inactive. How can I get that to press ok for the script to finish? But it doesn't pop up every time. Thanks for all your help. Please let me know if I need more information,.
Gene Posted April 5, 2004 Posted April 5, 2004 Post your code, even if it doesn't work, it will show us where you are and more importantly where you want to go. Gene [font="Verdana"]Thanks for the response.Gene[/font]Yes, I know the punctuation is not right...
GrahamS Posted April 5, 2004 Posted April 5, 2004 The Adlib function can look out for the window pop-up (provided that it has a unique title). For example AdlibEnable("myadlib") ;... Exit Func myadlib() If WinActive("UniqueTitle") Then Send("{ENTER}") EndIf EndFunc GrahamS
adamsj13 Posted April 6, 2004 Author Posted April 6, 2004 Thats my problem, I don't know what code to put in. This is what the script is doing run, y:\\cicero\\cicero5.exe winwaitactive, Level8 Cicero 5.0 Installer sleep, 200 send, {enter} winwaitactive, Unable to change Display Settings send, {enter} winwaitactive, Installation Completed send, {enter}The text in blue is what comes up as not active and needs to press ok on the box.
adamsj13 Posted April 6, 2004 Author Posted April 6, 2004 I just tried this and failed run, c:\\cicero\\cicero5.exe winwaitactive, Level8 Cicero 5.0 Installer sleep, 200 send, {enter} IfWinNotActive, <Unable to change Display Settings>, [<Setup was unable to change the system display setting to 1280x1024x24x75. This change will have to be done manually.>], <{enter}> IfWinActive, <Unable to change Display Settings>, [<Setup was unable to change the system display setting to 1280x1024x24x75. This change will have to be done manually.>], <{enter}> IfWinNotExist, <Unable to change Display Settings>, [<Setup was unable to change the system display setting to 1280x1024x24x75. This change will have to be done manually.>], <{enter}> IfWinExist, <Unable to change Display Settings>, [<Setup was unable to change the system display setting to 1280x1024x24x75. This change will have to be done manually.>], <{enter}> sleep, 200 winwaitactive, Installation Completed send, {enter}
adamsj13 Posted April 6, 2004 Author Posted April 6, 2004 Larry Thanks for the response, unfortunatly the Unable to change Display Settings box has to go away before installation completed box comes up.
adamsj13 Posted April 6, 2004 Author Posted April 6, 2004 Just tried it, I stalled on the Unable to change Display Settings box. I had to make it active for the script to continue.
adamsj13 Posted April 6, 2004 Author Posted April 6, 2004 Hi Lar, I tried that one and still hangs at the Unable to change Display Settings box. But once I make that box active by clicking on its tool bar, it will go right on through. I actually used the reveal mode to get the text. I appreciate all your help.
adamsj13 Posted April 6, 2004 Author Posted April 6, 2004 The Adlib function can look out for the window pop-up (provided that it has a unique title). For example AdlibEnable("myadlib") ;... Exit Func myadlib() If WinActive("UniqueTitle") Then Send("{ENTER}") EndIf EndFuncThanks for the suggestion, but Im confused with it:-) Bare with me as I'm a new be with this. Thanks
adamsj13 Posted April 6, 2004 Author Posted April 6, 2004 :{ Thanks for tring, What should make the box active and be able to press ok?
Recommended Posts