Sign in to follow this  
Followers 0
mbusse

WinWaitActive Help

5 posts in this topic

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

Share this post


Link to post
Share on other sites



... and consider passing to v3.

Share this post


Link to post
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}>

Share this post


Link to post
Share on other sites

If I take this to version 3, is my logic still the same as what I showed for ver 2?

You can do everything better in v3... I should poll those that go back to v2, to prove it.

Lar.

<{POST_SNAPBACK}>

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Logic, no, but easier. Syntax, no, but easier.

Edited by this-is-me

Who else would I be?

Share this post


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