Results 1 to 4 of 4
  1. #1
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,417
    Reputation
    611
    Thanks
    11,989
    My Mood
    Cheerful

    [CODERS ONLY] Fix for game not found

    FOR HACK CREATORS ONLY

    Hi guys! I got idea this morning, so I decided to search trough my source codes and I found this .
    This is fix for "game not found" error.
    This error usually gets reported by users that use Nosteam BO2 version.
    This is universal way that will work for any BO2 version.


    C#:
    Code:
            public bool HandleMeJorni(string ProcessWindowName) //lolol
            {
    
                try
                {
                    Process[] ProcList = Process.GetProcesses();
                    foreach (Process proc in ProcList)
                    {
                        if (proc.MainWindowTitle.Contains(ProcessWindowName))
                        {
                            pHandel = proc.Handle;
                            return true;
                        }
                    }
                    return false;
                
                }			
                catch (Exception ex)
                { Console.Beep(); Console.WriteLine("Window_Handle - " + ex.Message); return false; }
            }
    VB.NET:
    Code:
      
        Public Function Window_Handle(ProcessWindowName As String) As Boolean
    
    	Try
    		Dim ProcList As Process() = Process.GetProcesses()
    		For Each proc As Process In ProcList
    			If proc.MainWindowTitle.Contains(ProcessWindowName) Then
    				pHandel = proc.Handle
    				Return True
    			End If
    		Next
    
    		Return False
    	Catch ex As Exception
    		Console.Beep()
    		Console.WriteLine("Window_Handle - " + ex.Message)
    		Return False
    	End Try
    End Function
    This is made to be used with @Jorndel's memory class.
    Thanks goes to Jorn for his memory class & original process handle.

    Usage:
    Code:
    If(Window_Handle(---BO2 Window Name----))
    {
    }
    Code:
    If Window_Handle(---BO2 Window Name----)Then
    
    End If

    Yep. I added nice Anti C&P .
    Last edited by Lovroman; 07-12-2013 at 03:33 PM.

  2. #2
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    To improve your code it would be wise to do something like:
    Code:
    public bool HandleMeJorni(string ProcessWindowName) //lolol
            {
    
                try
                {
                    Process[] ProcList = Process.GetProcesses();
                    foreach (Process proc in ProcList)
                    {
                        if (proc.MainWindowTitle.Contains(ProcessWindowName))
                        {
                            pHandel = proc.Handle;
                            return true;
                        }
                    }
                    return false;
                
                }			
                catch (Exception ex)
                { Console.Beep(); Console.WriteLine("Window_Handle - " + ex.Message); return false; }
            }
    Just to avoid spelling and you'll have a way better chance of selecting your window without having the copyright marks etc
    Last edited by Jorndel; 07-12-2013 at 02:26 PM.

     
    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:

    Lovroman (07-12-2013)

  4. #3
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,417
    Reputation
    611
    Thanks
    11,989
    My Mood
    Cheerful
    Quote Originally Posted by Jorndel View Post
    To improve your code it would be wise to do something like:
    Code:
    public bool HandleMeJorni(string ProcessWindowName) //lolol
            {
    
                try
                {
                    Process[] ProcList = Process.GetProcesses();
                    foreach (Process proc in ProcList)
                    {
                        if (proc.MainWindowTitle.Contains(ProcessWindowName))
                        {
                            pHandel = proc.Handle;
                            return true;
                        }
                    }
                    return false;
                
                }			
                catch (Exception ex)
                { Console.Beep(); Console.WriteLine("Window_Handle - " + ex.Message); return false; }
            }
    Just to avoid spelling and you'll have a way better chance of selecting your window without having the copyright marks etc
    Oh, thanks!
    This is old code I took from "my CE".
    I didn't read it or did anything to improve it, I only C&P-ed it here .
    Fixed
    Last edited by Lovroman; 07-12-2013 at 03:33 PM.

  5. #4
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,417
    Reputation
    611
    Thanks
    11,989
    My Mood
    Cheerful
    Bump,bump, guys use this!

Similar Threads

  1. [TUT]Potential fix for hack crashes after 1 or 2 games.
    By unkowen133 in forum Combat Arms Discussions
    Replies: 44
    Last Post: 09-03-2009, 03:34 AM
  2. hey i think i found a fix for CE !!!!
    By Luke420 in forum Combat Arms Hacks & Cheats
    Replies: 33
    Last Post: 08-22-2009, 01:44 PM
  3. i look for warrock coders only for netherlands
    By hardcore4hack in forum WarRock - International Hacks
    Replies: 0
    Last Post: 01-10-2009, 10:33 AM
  4. found a fix for disconnect with new pub
    By DMITCHELL in forum General
    Replies: 7
    Last Post: 01-05-2009, 08:51 PM
  5. I HAVE A FIX FOR NOT VIEWING THREADS
    By sanchez in forum Trade Accounts/Keys/Items
    Replies: 1
    Last Post: 11-16-2007, 01:42 PM