示例#1
0
            public static IEnumerator WindowSearchAndValidate(JavaOMI item, string toSearch)
            {
                item.Keyboard(JavaKeyEvent.VK_WINDOWS);
                yield return(new WaitForSeconds(0.5f));

                item.PastText(toSearch);
                yield return(new WaitForSeconds(0.5f));

                item.Keyboard(JavaKeyEvent.VK_ENTER);
            }
示例#2
0
            public static IEnumerator GoToParametersWithSearch(JavaOMI item, string keywordToSearch, float timeToWaitWinToOne = 2.5f, float enterDelayTime = 1f)
            {
                item.WindowCommand("control /name Microsoft.WindowsUpdate");
                yield return(new WaitForSeconds(timeToWaitWinToOne));

                item.PastText(keywordToSearch);
                yield return(new WaitForSeconds(1f));

                item.Keyboard(JavaKeyEvent.VK_ENTER);
                yield return(new WaitForSeconds(1f));

                item.Keyboard(JavaKeyEvent.VK_ENTER);
                yield break;
            }