コード例 #1
0
 // 현규오빠!
 private void Virtual_Desktop_Button_Click(object sender, RoutedEventArgs e)
 {
     Virtual_Desktop test = new Virtual_Desktop();
     test.Show();
 }
コード例 #2
0
        // 현규 오빠 여기서부터 하시믄되여!
        private void Virtual_Desktop_Button_Click(object sender, RoutedEventArgs e)
        {
            if (setVID == null && setPID == null)
            {
                MessageBox.Show("선택한 마우스가 없습니다.");
                //return;
            }
            
            Virtual_Desktop test = new Virtual_Desktop();
            test.Show();


            //int hwnd = FindWindowEx(0, 0, 0, "데굴데굴");
            //Console.WriteLine(hwnd);

            //IntPtr myhandle = (IntPtr)hwnd;
            //id = new InputDevice(myhandle);
            //NumKeyboard = id.EnumerateDevices();
            //id.MouseEvent += new InputDevice.MouseEventHandler(m_MouseEvent);
            //id.KeyPressed += new InputDevice.DeviceEventHandler(m_KeyEvent);

            //Console.WriteLine("\nnum " + NumKeyboard);
            //mouseHook.Install();
            //MessageBox.Show("you click desktop button!!");
        }