Results 1 to 2 of 2

Hybrid View

  1. #1
    LOLxFUN's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    105
    Reputation
    10
    Thanks
    19
    My Mood
    Doh

    is it possible to bind Teleportation keys from Ultimate server control hack to Keys?

    is it possible to bind Teleportation keys from Ultimate server control hack to Keys?
    Thanks
    Last edited by LOLxFUN; 07-14-2012 at 10:55 AM.

  2. #2
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,112
    My Mood
    Angelic
    Quote Originally Posted by LOLxFUN View Post
    is it possible to bind Teleportation keys from Ultimate server control hack to Keys?
    Thanks
    Yes, but not an fun job to do :P
    I think it's very easy. (Haven't tested. But from what I know from some other stuff. It should be)


    ---------- Post added at 07:03 PM ---------- Previous post was at 06:46 PM ----------

    @
    LOLxFUN

    Here is something I managed to mix up.
    I didn't write the whole code, I just took a snippet and fixed it a little.
    Credit to [
    Rami Helmy]
    Code:
    [DllImport("User32.dll")]
            public static extern Int32 FindWindow(String lpClassName, String lpWindowName);
            [DllImport("user32.dll", CharSet=CharSet.Auto)]
            public static extern int SendMessage(int hWnd, int msg, int wParam, IntPtr lParam);
            [DllImport("user32.dll", SetLastError = true)]
            public static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string className,  string  windowTitle);
            private const int BN_CLICKED = 245;
    
            private void button1_Click(object sender, EventArgs e)
            {
                int hwnd = 0;
                IntPtr hwndChild = IntPtr.Zero;
                //Get a handle for the Application main window
                hwnd = FindWindow(null, "Calculator");
                
    
                //Get a handle for the buttons NAME (In the Code)
                hwndChild = FindWindowEx((IntPtr)hwnd, IntPtr.Zero, "Button", "1");
    
                //Send BN_CLICKED message (Means, it presses it)
                SendMessage((int)hwndChild, BN_CLICKED, 0, IntPtr.Zero);
    
                //Get a handle for the buttons NAME (In the Code)
                hwndChild = FindWindowEx((IntPtr)hwnd, IntPtr.Zero, "Button", "2");
    
                //Send BN_CLICKED message (Means, it presses it)
                SendMessage((int)hwndChild, BN_CLICKED, 0, IntPtr.Zero);
            }
    Last edited by Jorndel; 07-14-2012 at 11:05 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  3. The Following User Says Thank You to Jorndel For This Useful Post:

    LOLxFUN (07-14-2012)

Similar Threads

  1. trading keys from SC2 & C&C4 TT + Guest passes
    By Skyline. in forum Trade Accounts/Keys/Items
    Replies: 11
    Last Post: 04-11-2011, 12:11 AM
  2. [Solved] Is it possible to play CF Philiphines from Europe
    By TheAvenger in forum CrossFire Help
    Replies: 12
    Last Post: 02-13-2011, 05:58 PM
  3. Possible to take one scope from one game and transfer it to another?
    By felix55 in forum Combat Arms Mod Request
    Replies: 11
    Last Post: 09-01-2010, 06:33 AM
  4. reading any ea games key from registry..
    By popsot in forum C++/C Programming
    Replies: 0
    Last Post: 09-04-2009, 12:59 PM