Sign in to follow this  
Followers 0

Non Active Window

10 posts in this topic

Posted

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,.

Share this post


Link to post
Share on other sites



Posted

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

Share this post


Link to post
Share on other sites

Posted

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

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Posted

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}

Share this post


Link to post
Share on other sites

Posted

Larry Thanks for the response, unfortunatly the Unable to change Display Settings box has to go away before installation completed box comes up.

Share this post


Link to post
Share on other sites

Posted

Just tried it, I stalled on the Unable to change Display Settings box. I had to make it active for the script to continue.

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Posted

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
Thanks for the suggestion, but Im confused with it:-) Bare with me as I'm a new be with this. Thanks

Share this post


Link to post
Share on other sites

Posted

:{ Thanks for tring, What should make the box active and be able to press ok?

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.