mbusse Posted November 8, 2004 Posted November 8, 2004 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
mbusse Posted November 8, 2004 Author Posted November 8, 2004 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 keystrokesif 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}>
mbusse Posted November 8, 2004 Author Posted November 8, 2004 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}>
this-is-me Posted November 8, 2004 Posted November 8, 2004 (edited) Logic, no, but easier. Syntax, no, but easier. Edited November 8, 2004 by this-is-me Who else would I be?
Recommended Posts