Esempio n. 1
0
        public static void ClickLMB()
        {
            PegUI pegUI = PegUI.Get();

            if (pegUI != null)
            {
                pegUI.OnAppFocusChanged(true, Client.intptr_0);
            }
            Input.PressLMB();
            PegUI pegUI2 = PegUI.Get();

            if (pegUI2 != null)
            {
                pegUI2.OnAppFocusChanged(true, Client.intptr_0);
            }
            Input.ReleaseLMB();
            using (TritonHs.Memory.ReleaseFrame(true))
            {
                Thread.Sleep(Client.DelayAfterMouseClick);
            }
        }
Esempio n. 2
0
        private static void smethod_0(int int_0, int int_1, bool bool_0)
        {
            PegUI pegUI = PegUI.Get();

            if (pegUI != null)
            {
                pegUI.OnAppFocusChanged(true, Client.intptr_0);
            }
            Input.SetMousePos(int_0, int_1);
            using (TritonHs.Memory.ReleaseFrame(true))
            {
                Thread.Sleep(Client.DelayAfterMouseMove);
            }
            if (bool_0)
            {
                Client.ClickLMB();
                return;
            }
            using (TritonHs.Memory.ReleaseFrame(true))
            {
                Thread.Sleep(Client.DelayAfterMouseClick);
            }
        }