Ejemplo n.º 1
0
        public Main()
        {
            if (!mReader.FindProcess("ffxiv_dx11"))
            {
                MessageBox.Show("游戏未运行", "严重错误:上溢", MessageBoxButtons.OK);
                Environment.Exit(0);
            }

            InitializeComponent();
            LoadCFG();

            Process p = Process.GetProcessesByName("ffxiv_dx11").ToList().FirstOrDefault();

            mReader.process = p;
            mReader.OpenProcess();

            Thread F = new Thread(new ThreadStart(FindPtr));

            F.Start();

            hotbar = new HotbarCollection();
            InitTTS();
            BlackOutBL = LoadBlackOut();

            BLAP.Uninstall();
            AppHotKey.UnRegKey(Handle, HKID);

            uint Modifier = AppHotKey.ModifyKey(Settings.Default.AutoC, Settings.Default.AutoA, Settings.Default.AutoS);
            uint vK       = Simulator.Transcoding(Settings.Default.AutovK);

            AppHotKey.RegKey(Handle, HKID, Modifier, vK);
            IntPtr gameptr = FindWindow(null, "最终幻想XIV");

            BLAP.Install(gameptr, BLParam.Text, BLvK.Text);
        }
Ejemplo n.º 2
0
        public TowerExMain()
        {
            InitializeComponent();
            if (mReader.FindProcess("ffxiv_dx11"))
            {
                Process p = Process.GetProcessesByName("ffxiv_dx11").ToList().FirstOrDefault();
                mReader.process = p;
                mReader.OpenProcess();

                Actual_Base_Offset = 0;
                FindModulePtr(mReader);

                LoadHookHotkey();
                _keyboardHook = new KeyboardHook();

                loader = new XmlLoader();
                Loadxml();


                timer1.Enabled = true;
                int port = 7410;
                server = new PicoHttpServer(port);
                Thread Rx = new Thread(NetworkEvent);
                Rx.Start();
                NetworkStatus.Text = string.Format("正在监听本地端口{0}", port);
            }
            else
            {
                MessageBox.Show("游戏未运行", "严重错误:上溢", MessageBoxButtons.OK);
                Environment.Exit(0);
            }
        }
Ejemplo n.º 3
0
 public void Find_Game()
 {
     while (true)
     {
         Thread.Sleep(3000);
         if (mReader.FindProcess("ffxiv_dx11"))
         {
             Action isrunning = delegate()
             {
                 lGamestatus.Text      = "Game Is Running";
                 lGamestatus.ForeColor = Color.Green;
                 A.StartUpdate();
             };
             Invoke(isrunning);
         }
         else
         {
             Action notrunning = delegate()
             {
                 lGamestatus.Text      = "Game Is Not Running";
                 lGamestatus.ForeColor = Color.Red;
                 A.EndUpdate();
             };
             Invoke(notrunning);
         }
     }
 }
Ejemplo n.º 4
0
        public void Find_Game()
        {
            while (true)
            {
                Thread.Sleep(3000);
                if (mReader.FindProcess("ffxiv_dx11"))
                {
                    Process p = Process.GetProcessesByName("ffxiv_dx11").ToList().FirstOrDefault();
                    mReader.process = p;
                    mReader.OpenProcess();

                    Action isrunning = delegate()
                    {
                        GameOn.Text      = "游戏已运行";
                        GameOn.ForeColor = Color.Green;
                        TPBtn.Enabled    = true;
                        FindModulePtr();
                        timer1.Enabled = true;
                    };
                    Invoke(isrunning);
                }
                else
                {
                    Action notrunning = delegate()
                    {
                        GameOn.Text      = "游戏未运行";
                        GameOn.ForeColor = Color.Red;
                        TPBtn.Enabled    = false;
                        GameOn.Enabled   = false;
                        timer1.Enabled   = false;
                    };
                    Invoke(notrunning);
                }
            }
        }
Ejemplo n.º 5
0
 public MainForm()
 {
     InitializeComponent();
     if (mReader.FindProcess("ffxiv_dx11"))
     {
         FindPtr();
     }
     else
     {
         MessageBox.Show("游戏未运行", "严重错误:上溢", MessageBoxButtons.OK);
         Environment.Exit(0);
     }
 }
Ejemplo n.º 6
0
        static void Main(string[] args)
        {
            ProcessMemoryReader p = new ProcessMemoryReader();

            if (p.FindProcess("ffxiv_dx11"))
            {
                p.OpenProcess();
                //not found is 0
                Console.WriteLine(p.handle);

                IntPtr ptr = FindWindow(null, "最终幻想XIV");
                //not found is 0
                Console.WriteLine(ptr);
            }

            else
            {
                Console.WriteLine("Not Found");
            }


            Console.ReadLine();
        }