Example #1
0
        private void SifreGir(object sender, EventArgs e)
        {
            if (FrmAnasayfa.MouseButtons == MouseButtons.Middle || !Settings.Default.MakroKUllan)
            {
                Timer timer = sender as Timer;
                timer.Stop();
                KarakterKontrol(out var nick, out var sifre);
                while (!WindowsState.Durum("RiotClientUx", out _))
                {
                }
                if (WindowsState.Durum("RiotClientUx", out _))
                {
                    Timer timer2 = new Timer();
                    islemBitinceSilinecekler.Add(timer2);
                    timer2.Tick += new EventHandler(this.mouseTut);
                    mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
                    timer2.Start();
                    if (!Settings.Default.MakroKUllan)
                    {
                        Thread.Sleep(700);
                    }

                    SendKeys.SendWait("" + nick + "{tab}" + sifre + "{ENTER}");
                    timer2.Stop();
                    mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
                    if (Properties.Settings.Default.OyunAcilincaUygulamayiKapat)
                    {
                        Application.Exit();
                    }
                }

                foreach (var sil in islemBitinceSilinecekler)
                {
                    sil.Dispose();
                }
            }
        }
Example #2
0
 private void mouseTut(object sender, EventArgs e)
 {
     WindowsState.Durum("RiotClientUx", out Point konum);
     Cursor.Position = konum;
     mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
 }