Example #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);
            }
Example #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;
            }
Example #3
0
            public static IEnumerator GoToHotspotConfig(JavaOMI item, float timeToWaitWinToOpne = 2.5f)
            {
                item.WindowCommand("control /name Microsoft.WindowsUpdate");
                yield return(new WaitForSeconds(timeToWaitWinToOpne));

                item.Keyboard(JavaKeyEvent.VK_M);
                item.Keyboard(JavaKeyEvent.VK_O);
                item.Keyboard(JavaKeyEvent.VK_B);
                item.Keyboard(JavaKeyEvent.VK_I);
                item.Keyboard(JavaKeyEvent.VK_L);
                item.Keyboard(JavaKeyEvent.VK_E);
                yield return(new WaitForSeconds(1f));

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

                item.Keyboard(JavaKeyEvent.VK_ENTER);
                yield break;
            }
Example #4
0
 internal static void GoToControlPanel(JavaOMI item)
 {
     item.WindowCommand("control panel");
     item.Keyboard(JavaKeyEvent.VK_ENTER);
 }