示例#1
0
 public void OnHexReturned(string hexCode)
 {
     mouseCoordinator.SetMouseNotificationColor(FloatingMouseWindow.MOUSE_NOTIFICATION_ON_COLOR);
     hexWindow.SetKeyAndHex(nextNodeName, hexCode);
     Thread.Sleep(FreezeConverter.GetFreezeTime());
     mouseCoordinator.SetMouseNotificationColor(FloatingMouseWindow.MOUSE_NOTIFICATION_IDLE_COLOR);
     xmlModifier.SetNextNodeVal(hexCode);
 }
示例#2
0
        public void OpenHexListener()
        {
            string executingAppPath = Process.GetCurrentProcess().MainModule.FileName;
            string parentDir        = Directory
                                      .GetParent(Directory.GetParent(Directory.GetParent(executingAppPath).ToString()).ToString()).ToString();
            string jarFilePath = @parentDir + "\\hex_listener\\hex_listener.jar";

            jarFilePath = AddQuotesIfRequired(jarFilePath);
            var    freezeTime = FreezeConverter.GetFreezeTime();
            string path       = "-jar " + jarFilePath + " " + freezeTime;

            p = new Process
            {
                StartInfo =
                {
                    UseShellExecute        = false,
                    CreateNoWindow         = true,
                    RedirectStandardOutput = true,
                    FileName  = "java.exe",
                    Arguments = path
                }
            };
            p.Start();
        }