コード例 #1
0
        private void Run(int val)
        {
            while (true)
            {
                if (loopc == 0)
                {
                    Game = new ProcessMemory("puyopuyotetris");
                    var roomtitle = Game.ReadStringUnicode(new IntPtr(
                                                               Game.ReadInt32(new IntPtr(
                                                                                  Game.ReadInt32(new IntPtr(
                                                                                                     Game.ReadInt32(new IntPtr(
                                                                                                                        Game.ReadInt32(new IntPtr(
                                                                                                                                           Game.ReadInt32(new IntPtr(
                                                                                                                                                              0x140460690
                                                                                                                                                              )) + 0x20
                                                                                                                                           )) + 0x20
                                                                                                                        )) + 0x20
                                                                                                     )) + 0x610
                                                                                  )) + 0x4
                                                               + 0xAC), 32);
                    Dispatcher.Invoke(DispatcherPriority.Normal, new Action(delegate
                    {
                        //사용할 메서드 및 동작

                        textBox1.Text = ("" + Regex.Replace(roomtitle, @"\0+", ""));
                    }));
                }
                Thread.Sleep(1000);
                loopc -= 1;
            }
        }
コード例 #2
0
 private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
 {
     Game = new ProcessMemory("puyopuyotetris");
     Game.WriteStringUnicode(new IntPtr(
                                 Game.ReadInt32(new IntPtr(
                                                    Game.ReadInt32(new IntPtr(
                                                                       Game.ReadInt32(new IntPtr(
                                                                                          Game.ReadInt32(new IntPtr(
                                                                                                             Game.ReadInt32(new IntPtr(
                                                                                                                                0x140460690
                                                                                                                                )) + 0x20
                                                                                                             )) + 0x20
                                                                                          )) + 0x20
                                                                       )) + 0x610
                                                    )) + 0x4
                                 + 0xAC),
                             "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");
     Game.WriteStringUnicode(new IntPtr(
                                 Game.ReadInt32(new IntPtr(
                                                    Game.ReadInt32(new IntPtr(
                                                                       Game.ReadInt32(new IntPtr(
                                                                                          Game.ReadInt32(new IntPtr(
                                                                                                             Game.ReadInt32(new IntPtr(
                                                                                                                                0x140460690
                                                                                                                                )) + 0x20
                                                                                                             )) + 0x20
                                                                                          )) + 0x20
                                                                       )) + 0x610
                                                    )) + 0x4
                                 + 0xAC),
                             textBox1.Text);
     loopc = 30;
 }
コード例 #3
0
        public void applyFT()
        {
            //RadioButton radioButton = sender as RadioButton;
            int ft = 1;

            if (a5.IsChecked == true)
            {
                ft = 5;
            }
            else if (a10.IsChecked == true)
            {
                ft = 10;
            }
            else if (a15.IsChecked == true)
            {
                ft = 15;
            }
            else if (a20.IsChecked == true)
            {
                ft = 20;
            }
            else if (a25.IsChecked == true)
            {
                ft = 25;
            }
            else if (a30.IsChecked == true)
            {
                ft = 30;
            }
            else if (a50.IsChecked == true)
            {
                ft = 50;
            }
            else if (a100.IsChecked == true)
            {
                ft = customft;
            }

            Game = new ProcessMemory("puyopuyotetris");
            Game.WriteInt32(new IntPtr(
                                Game.ReadInt32(new IntPtr(
                                                   Game.ReadInt32(new IntPtr(
                                                                      Game.ReadInt32(new IntPtr(
                                                                                         Game.ReadInt32(new IntPtr(
                                                                                                            Game.ReadInt32(new IntPtr(
                                                                                                                               0x140460690
                                                                                                                               )) + 0x20
                                                                                                            )) + 0x20
                                                                                         )) + 0x20
                                                                      )) + 0x610
                                                   )) + 0x4), ft);
        }
コード例 #4
0
        public void radioButtons_CheckedChanged(object sender, EventArgs e)
        {
            //RadioButton radioButton = sender as RadioButton;
            int ft = 1;

            if (a5.IsChecked == true)
            {
                ft = 5;
            }
            else if (a10.IsChecked == true)
            {
                ft = 10;
            }
            else if (a15.IsChecked == true)
            {
                ft = 15;
            }
            else if (a20.IsChecked == true)
            {
                ft = 20;
            }
            else if (a25.IsChecked == true)
            {
                ft = 25;
            }
            else if (a30.IsChecked == true)
            {
                ft = 30;
            }
            else if (a50.IsChecked == true)
            {
                ft = 50;
            }
            else if (a100.IsChecked == true)
            {
                ft = 100;
            }

            Game = new ProcessMemory("puyopuyotetris");
            Game.WriteInt32(new IntPtr(
                                Game.ReadInt32(new IntPtr(
                                                   Game.ReadInt32(new IntPtr(
                                                                      Game.ReadInt32(new IntPtr(
                                                                                         Game.ReadInt32(new IntPtr(
                                                                                                            Game.ReadInt32(new IntPtr(
                                                                                                                               0x140460690
                                                                                                                               )) + 0x20
                                                                                                            )) + 0x20
                                                                                         )) + 0x20
                                                                      )) + 0x610
                                                   )) + 0x4), ft);
        }