Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    xreality14's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    98
    Reputation
    46
    Thanks
    18
    My Mood
    Aggressive

    Getting Cross Fire Handle \ window

    I am coding console application for Cross Fire and when crossfire start and after my console do FindWindow() it fail, tried with other games and my console worked perfect, so the problem isn't from my code.


    https://i.imgur.com/rW1ofaI.jpg
    Last edited by BACKD00R; 06-10-2013 at 11:24 AM.

  2. #2
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored
    Findwindow("Cross Fire");
    You can check the name on the taskbar...
    Also, you need OpenProcess for external hacks
    so if you use C#:
    Process.GetProcessesByName("crossfire");

    And then use the handle...
    Or check some trainer tutorial on the web...

    But don't forget:
    in the loop:
    Close the process on the end, and add some delay, cuz Xtrap will fuck up everything...







  3. #3
    xreality14's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    98
    Reputation
    46
    Thanks
    18
    My Mood
    Aggressive
    Quote Originally Posted by rabir007 View Post
    Findwindow("Cross Fire");
    You can check the name on the taskbar...
    Also, you need OpenProcess for external hacks
    so if you use C#:
    Process.GetProcessesByName("crossfire");

    And then use the handle...
    Or check some trainer tutorial on the web...

    But don't forget:
    in the loop:
    Close the process on the end, and add some delay, cuz Xtrap will fuck up everything...
    Don't worry i did close handle and some shits so xtrap won't show up

    uhm.. I'll go try "Cross Fire" with space between cross and fire.

  4. #4
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored
    Quote Originally Posted by xreality14 View Post
    Don't worry i did close handle and some shits so xtrap won't show up

    uhm.. I'll go try "Cross Fire" with space between cross and fire.
    If you can TeamViewer i might help you, i worked on an external Crossfire trainer too...
    But Which prog lang are you using ?







  5. #5
    xreality14's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    98
    Reputation
    46
    Thanks
    18
    My Mood
    Aggressive


    "Cross Fire" won't work cause Crossfire window name is CrossFire ...
    @rabir007 c++

  6. #6
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored
    Quote Originally Posted by xreality14 View Post


    "Cross Fire" won't work cause Crossfire window name is CrossFire ...
    @rabir007 c++
    :/ I used C# for my trainer...







  7. #7
    xreality14's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    98
    Reputation
    46
    Thanks
    18
    My Mood
    Aggressive
    Quote Originally Posted by rabir007 View Post


    :/ I used C# for my trainer...
    anyway ... here's how i do it.

  8. #8
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored
    Quote Originally Posted by xreality14 View Post
    anyway ... here's how i do it.
    Try to get the handle for a process by name, not by the Window...







  9. #9
    xreality14's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    98
    Reputation
    46
    Thanks
    18
    My Mood
    Aggressive
    Quote Originally Posted by rabir007 View Post


    Try to get the handle for a process by name, not by the Window...
    Okay, let me go and test

  10. #10
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,174
    Reputation
    170
    Thanks
    2,558
    My Mood
    Bitchy
    xtrap is doing it's job.

  11. #11
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored
    Quote Originally Posted by Synns View Post
    xtrap is doing it's job.
    It does everything, except its job...







  12. #12
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    loop until FindWindow(TEXT("Crossfire"), NULL); returns something
    works fine here /

    also here is a bad alternation that may work with any window, regardless of its name
    Code:
    BOOL WINAPI EnumProc(HWND hWnd, LPARAM lParam)
    {
    	DWORD PID;
    	GetWindowThreadProcessId(hWnd, &PID); //check window process
    	if (PID == GetCurrentProcessId())
    	{
    		RECT rect;
    		GetWindowRect(hWnd, &rect);
    		if ((rect.right-rect.left > 50) && (rect.bottom-rect.top > 50)) //check window size
    		{
    			*(HWND*)(lParam) = hWnd;
    			return FALSE;
    		}
    	}
    	return TRUE;
    }
    
    HANDLE hWnd = NULL;
    while (!hParent)
    {
    	EnumWindows(EnumProc, (LPARAM)&hWnd);
    	Sleep(100);
    }


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  13. The Following User Says Thank You to giniyat101 For This Useful Post:

    xreality14 (06-10-2013)

  14. #13
    DarkPladin's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    (◔̯◔)
    Posts
    365
    Reputation
    10
    Thanks
    610
    My Mood
    Devilish
    find window has something like bugs , if u open a folder with the same name it will handle it and that may cause some errors if.u didn't close.the crossfire folder haha , it has.just happened to me

  15. #14
    xreality14's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    98
    Reputation
    46
    Thanks
    18
    My Mood
    Aggressive
    Quote Originally Posted by DarkPladin View Post
    find window has something like bugs , if u open a folder with the same name it will handle it and that may cause some errors if.u didn't close.the crossfire folder haha , it has.just happened to me
    This isn't my problem.
    Last edited by xreality14; 06-10-2013 at 05:17 AM.

  16. #15
    DarkPladin's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    (◔̯◔)
    Posts
    365
    Reputation
    10
    Thanks
    610
    My Mood
    Devilish
    Check the loop , try to open game first and then open the console . If it works then your loop has error

Page 1 of 2 12 LastLast

Similar Threads

  1. [Info] How you can finally get free gift cards to buy zp in Cross Fire.
    By armando1234 in forum CrossFire Clan Recruitment & Advertising
    Replies: 3
    Last Post: 06-04-2013, 07:13 AM
  2. [Solved] please can any one know how can i get cross fire loader?
    By sonik12317 in forum CrossFire Help
    Replies: 8
    Last Post: 08-04-2011, 04:06 PM
  3. How to Get/Post a Cross Fire Screen Shot!
    By Takari in forum CrossFire Tutorials
    Replies: 7
    Last Post: 07-31-2011, 05:11 AM
  4. Getting mad amounts of free ZP in Cross Fire
    By Daitaro in forum CrossFire Hacks & Cheats
    Replies: 52
    Last Post: 02-27-2010, 10:28 PM
  5. How do u get CA in a window?
    By combatarmsfreak in forum Combat Arms Hacks & Cheats
    Replies: 1
    Last Post: 08-15-2008, 08:58 PM