private void OpenChooseGameWindow()
        {
            oldProcess = WzqGameProcess;

            WindowProcess windowProcess = new WindowProcess();

            windowProcess.ProcessWithWindow    = UtilityTool.GetSysProcessWithWindow();;
            windowProcess.MouseMoveWinProcess += WindowProcess_MouseMoveWinProcess;
            windowProcess.MouseDownWinProcess += WindowProcess_MouseDownWinProcess;
            windowProcess.StartGetWinProcess();
        }
Beispiel #2
0
        private void OpenChooseGameWindow()
        {
            //设置鼠标光标
            string curFile           = Path.Combine(AppContext.BaseDirectory, "Cursor\\aero_cross_xl.cur");
            IntPtr colorCursorHandle = Win32Helper.LoadCursorFromFile(curFile);

            Win32Helper.SetSystemCursor(colorCursorHandle, Win32Helper.OCR_NORMAL);

            oldProcess = WzqGameProcess;

            windowProcess = new WindowProcess();
            windowProcess.ProcessWithWindow    = UtilityTool.GetSysProcessWithWindow();;
            windowProcess.MouseMoveWinProcess += WindowProcess_MouseMoveWinProcess;
            windowProcess.MouseDownWinProcess += WindowProcess_MouseDownWinProcess;
            windowProcess.StartGetWinProcess();
        }