Jump to content

WinWaitActive Help


mbusse
 Share

Recommended Posts

Hello all, I have a question around WinWaitActive.

I am trying to automate SAP patch installations for my company. Here is my dilemma. I have 3 patches, of the 3 I am checking for 3 potential popup windows that may show up, then sending an enter or tab, enter based on the dialog of the window. This appears to be sloppy to me. I am wondering if there is any way to do a winwaitactive for some text, then do a if text="" then send, {ENTER}

else if text="" then send, {TAB}, {ENTER}

Here is some of my code to give you an idea. I only want to send the keystrokes

if the text condition is met. Below you will see where I wait for a potential of 3 windows that may or may not show themselves. I would have just done a registry check for the patch instead of waiting for windows, but there is no identifier in the registry for these patches.

Thanks in advance for any help on this..

runwait, %comspec% /c c:\\gui620_48-10001502.exe

winwaitactive, SAPSetup, Yes,10

send, {TAB}

send,{ENTER}

winwaitactive, SAPSetup Patch Wizard, Already at equal or higher Patch Level,30

send,{ENTER}

winwaitactive, SAPSetup Patch Wizard, Ready to Apply Patch,30

send,{ENTER}

winwaitactive, SAPSetup Patch Wizard, SAPSetup Patch Wizard Completed,90

send,{ENTER}

runwait, %comspec% /c c:\\sappatch48.vbs

sleep, 5000

GOTO, PATCH12

Link to comment
Share on other sites

I am not opposed to V3, can this be done cleaner in 3 vs. ADLIB in 2?

Hello all, I have a question around WinWaitActive.

I am trying to automate SAP patch installations for my company. Here is my dilemma. I have 3 patches, of the 3 I am checking for 3 potential popup windows that may show up, then sending an enter or tab, enter based on the dialog of the window. This appears to be sloppy to me. I am wondering if there is any way to do a winwaitactive for some text, then do a if text="" then send, {ENTER}

else if text="" then send, {TAB}, {ENTER}

Here is some of my code to give you an idea. I only want to send the keystrokes

if the text condition is met. Below you will see where I wait for a potential of 3 windows that may or may not show themselves. I would have just done a registry check for the patch instead of waiting for windows, but there is no identifier in the registry for these patches.

Thanks in advance for any help on this..

runwait, %comspec% /c c:\\gui620_48-10001502.exe

winwaitactive, SAPSetup, Yes,10

send, {TAB}

send,{ENTER}

winwaitactive, SAPSetup Patch Wizard, Already at equal or higher Patch Level,30

send,{ENTER}

winwaitactive, SAPSetup Patch Wizard, Ready to Apply Patch,30

send,{ENTER}

winwaitactive, SAPSetup Patch Wizard, SAPSetup Patch Wizard Completed,90

send,{ENTER}

runwait, %comspec% /c c:\\sappatch48.vbs

sleep, 5000

GOTO, PATCH12

<{POST_SNAPBACK}>

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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