Ejemplo n.º 1
0
 private void Copy()
 {
     ActionSimulator.HoldDownOnBtn(VirtualKeyCode.CONTROL);
     ActionSimulator.ClickOnBtn(VirtualKeyCode.VK_C);
     ActionSimulator.ReleaseBtn(VirtualKeyCode.CONTROL);
     Console.WriteLine("released clicked!");
 }
Ejemplo n.º 2
0
 private void SelectAll()
 {
     ActionSimulator.ClickRightMouseBtn();
     ActionSimulator.ClickOnBtn(VirtualKeyCode.DOWN);
     ActionSimulator.ClickOnBtn(VirtualKeyCode.DOWN);
     ActionSimulator.ClickOnBtn(VirtualKeyCode.DOWN);
     ActionSimulator.ClickOnBtn(VirtualKeyCode.DOWN);
     ActionSimulator.ClickOnBtn(VirtualKeyCode.DOWN);
     ActionSimulator.ClickOnBtn(VirtualKeyCode.DOWN);
     ActionSimulator.ClickOnBtn(VirtualKeyCode.RETURN);
 }
Ejemplo n.º 3
0
 //1) on first launch of the program, select the bottom item and click on it
 public void Select_USB_UIRT_InMenu()
 {
     Thread.Sleep(1000);
     ActionSimulator.ClickOnBtn(VirtualKeyCode.UP);
     ActionSimulator.ClickOnBtn(VirtualKeyCode.DOWN);
     ActionSimulator.ClickOnBtn(VirtualKeyCode.DOWN);
     ActionSimulator.ClickOnBtn(VirtualKeyCode.DOWN);
     ActionSimulator.ClickOnBtn(VirtualKeyCode.RETURN);
     WaitForWindowTitle(WINDOW_TITLE_HEX_CODE, this);
     //WaitForWindowTitle(WINDOW_TITLE_HEX_CODE, true, this);
 }
Ejemplo n.º 4
0
        //3) After the green screen will be filled, close the window and go back
        public void CloseRecordWindow()
        {
            if (!ExeWindowTitleReader.GetActiveWindowTitle().Equals(WINDOW_TITLE_LEARN_IR_CODE))
            {
                return;
            }

            ActionSimulator.ClickOnBtn(VirtualKeyCode.TAB);
            ActionSimulator.ClickOnBtn(VirtualKeyCode.TAB);
            ActionSimulator.ClickOnBtn(VirtualKeyCode.RETURN);
            //WaitForWindowTitle(WINDOW_TITLE_HEX_CODE, false, this);
        }
Ejemplo n.º 5
0
        internal void CheckForClosingDialog()
        {
            Console.WriteLine("sleeping");
            Thread.Sleep(CLOSE_WINDOW_WAIT_TIME);
            ActionSimulator.ClickOnBtn(WindowsInput.Native.VirtualKeyCode.SPACE);
            ActionSimulator.ClickOnBtn(WindowsInput.Native.VirtualKeyCode.SPACE);
            Console.WriteLine("waking! window: " + ExeWindowTitleReader.GetActiveWindowTitle());
            Console.WriteLine("is it close window? : " + ExeWindowTitleReader.GetActiveWindowTitle().Equals(CLOSE_WINDOW_TITLE));

            /*if (ExeWindowTitleReader.GetActiveWindowTitle().Equals(CLOSE_WINDOW_TITLE))
             * {
             *  Console.WriteLine("clicking space");
             *  ActionSimulator.ClickOnBtn(WindowsInput.Native.VirtualKeyCode.SPACE);
             * }*/
        }
Ejemplo n.º 6
0
 //2) click on "learn an ir code"
 public void ClickOnLearnIrCode()
 {
     Console.WriteLine("clicking tab");
     ActionSimulator.ClickOnBtn(VirtualKeyCode.TAB);
     Console.WriteLine("clicking tab");
     ActionSimulator.ClickOnBtn(VirtualKeyCode.TAB);
     Console.WriteLine("clicking tab");
     ActionSimulator.ClickOnBtn(VirtualKeyCode.TAB);
     Console.WriteLine("clicking tab");
     ActionSimulator.ClickOnBtn(VirtualKeyCode.TAB);
     Console.WriteLine("clicking tab");
     ActionSimulator.ClickOnBtn(VirtualKeyCode.TAB);
     Console.WriteLine("clicking return");
     ActionSimulator.ClickOnBtn(VirtualKeyCode.RETURN);
     Console.WriteLine("waiting for window title");
     WaitForWindowTitle(WINDOW_TITLE_LEARN_IR_CODE, this);
     //WaitForWindowTitle(WINDOW_TITLE_LEARN_IR_CODE, true, this);
 }
Ejemplo n.º 7
0
        /*    internal void releaseCtrl()
         *  {
         *      ActionSimulator.ReleaseBtn(VirtualKeyCode.RCONTROL);
         *      ActionSimulator.ReleaseBtn(VirtualKeyCode.CONTROL);
         *      ActionSimulator.ReleaseBtn(VirtualKeyCode.LCONTROL);
         *  }*/

        internal void CloseWindowsTryToFixWindow()
        {
            //releaseCtrl();
            ActionSimulator.ClickLeftMouseBtn();
            ActionSimulator.ClickOnBtn(VirtualKeyCode.RETURN);
        }