Results 1 to 4 of 4
  1. #1
    Hideo Kuze's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0

    How Can I Add Key Class In Class Library [C#]

    I 'm Working On C# Language Nowadays but I Cant Add Keys In The Class Library .How Can I Do It ???



    if (e.KeyCode == Keys.A)
    {

    SayToPlayer(attacker,"Hello");

    }
    Last edited by Hideo Kuze; 06-24-2015 at 12:05 PM.

  2. #2
    [NEWACCOUNT]Yano's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Location
    CL_WritePacket();
    Posts
    305
    Reputation
    13
    Thanks
    5,011
    My Mood
    Relaxed
    if (GetAsyncKeyState(0x41))
    {

    SayToPlayer(attacker,"Hello");

    }

    Should work like this
    Code:
    __asm mov [RecoilVec], 0

  3. #3
    Hideo Kuze's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    But SendKeys ???

  4. #4
    81|DrizZle's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    145
    Reputation
    12
    Thanks
    630
    My Mood
    Aggressive
    You should fucking explain what you exactly want. Global Keyboard Hooking?
    //Edit
    Something like that?:
    Code:
                    
            [DllImport("User32.dll")]
            private static extern short GetAsyncKeyState(System.Windows.Forms.Keys vKey);
            [DllImport("User32.dll")]
            private static extern short GetAsyncKeyState(System.Int32 vKey);
            public const int VK_F1 = 0x70;
            long RetF1 = 0;
            public const int VK_F2 = 0x71;
            long RetF2 = 0;
            public const int VK_F3 = 0x72;
            long RetF3 = 0;
            public const int VK_F4 = 0x73;
            long RetF4 = 0;
            public int chat_offset = 0xB3A284;
            public int F1_count = 0;
            public int F2_count = 0;
            public int F3_count = 0;
            public int F4_count = 0;       
             if (Convert.ToBoolean(RetF1 & 0x8000))
               {   
                     //F1 pressed.
                }
                else if (Convert.ToBoolean(RetF2 & 0x8000))
                {
                    //F2 pressed
                }
                else if (Convert.ToBoolean(RetF3 & 0x8000))
                {
                    //F3 pressed.
                }
                else if (Convert.ToBoolean(RetF4 & 0x8000))
                {
                    //F4 pressed
                }
    Last edited by 81|DrizZle; 08-16-2015 at 10:53 PM.

Similar Threads

  1. how can i add it to my mod?
    By idiot2010 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 9
    Last Post: 10-08-2010, 05:43 AM
  2. How can I add bunkers to my QCZM??
    By Yamato in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 5
    Last Post: 09-21-2010, 06:19 AM
  3. [Question] How can i add an Avatar to my Profile?
    By ikasya in forum Help & Requests
    Replies: 0
    Last Post: 03-31-2010, 02:04 PM
  4. how can i add my Flash music thingy o.o
    By DavidKiller in forum Debate Fort
    Replies: 0
    Last Post: 07-15-2009, 11:31 PM
  5. How can i add hotkeys in Visual c++
    By nbr1dan in forum C++/C Programming
    Replies: 7
    Last Post: 11-03-2007, 03:32 PM