static void Main(string[] args) { Console.WriteLine("Change overlay attached window by pressing F5"); Console.WriteLine("It will attach to currently active window"); Console.WriteLine("Trackbar can be controled with mouse wheel"); System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); input = new InputUtilities(); var hWnd = WinAPI.GetForegroundWindow(); using (SHDXOverlay = new SharpDXOverlay()) { SHDXOverlay.Attach(hWnd); SHDXOverlay.TickEvent += overlay_TickEvent; InitializeComponents(); SharpDXRenderer renderer = SHDXOverlay.Renderer; TextFormat smallFont = renderer.CreateFont("smallFont", "Century Gothic", 10f); TextFormat largeFont = renderer.CreateFont("largeFont", "Century Gothic", 14f); TextFormat heavyFont = renderer.CreateFont("heavyFont", "Century Gothic", 14f, SharpDX.DirectWrite.FontStyle.Normal, FontWeight.Heavy); windowMenu.Font = smallFont; windowMenu.Caption.Font = largeFont; SHDXOverlay.ChildControls.Add(windowMenu); System.Windows.Forms.Application.Run(SHDXOverlay); } }
public static void Main(string[] args) { System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); Console.Title = "SteamMonsterGame"; Console.WriteLine("> Waiting for steam to start up..."); while (!ProcUtils.ProcessIsRunning("Steam")) Thread.Sleep(250); proc = new ProcUtils("Steam", WinAPI.ProcessAccessFlags.QueryLimitedInformation); hWnd = IntPtr.Zero; Console.WriteLine("> Waiting for steam-window to start up..."); do hWnd = WinAPI.FindWindowByCaption(hWnd, "Steam"); while (hWnd == IntPtr.Zero); Console.WriteLine("> Initializing utils"); keys = new KeyUtils(); lastClickerPos = new Vector2(); Console.WriteLine("> Initializing overlay"); using (overlay = new SharpDXOverlay()) { overlay.ChildControls.Clear(); Console.WriteLine("> Attaching overlay"); overlay.Attach(hWnd); overlay.TickEvent += overlay_TickEvent; overlay.DrawOnlyWhenInForeground = false; overlay.BeforeDrawingEvent += overlay_BeforeDrawingEvent; Console.WriteLine("> Setting up fonts"); SharpDXRenderer renderer = overlay.Renderer; renderer.CreateFont("smallFont", "Century Gothic", 12f); renderer.CreateFont("tallFont", "Century Gothic", 16f); Console.WriteLine("> Initializing controls"); InitializeComponent(); Console.WriteLine("> Setting up controls"); lblCaption.Font = renderer.GetFont("tallFont"); lblDescription.Font = renderer.GetFont("smallFont"); btnToggleMenu.Font = renderer.GetFont("smallFont"); wndWindow.Font = renderer.GetFont("tallFont"); lblAutomation.Font = renderer.GetFont("smallFont"); chbAutoClicker.Font = renderer.GetFont("smallFont"); chbMoveMouse.Font = renderer.GetFont("smallFont"); rdbUsePost.Font = renderer.GetFont("smallFont"); rdbUseSend.Font = renderer.GetFont("smallFont"); lblVisuals.Font = renderer.GetFont("smallFont"); chbVisDrawClicker.Font = renderer.GetFont("smallFont"); lblPerformance.Font = renderer.GetFont("smallFont"); lblFpsLogic.Font = renderer.GetFont("smallFont"); lblFpsLogicAverage.Font = renderer.GetFont("smallFont"); lblFpsDraw.Font = renderer.GetFont("smallFont"); lblFpsDrawAverage.Font = renderer.GetFont("smallFont"); pnlPanel.ChildControls.Clear(); pnlPanel.AddChildControl(lblCaption); pnlPanel.AddChildControl(lblDescription); pnlPanel.InsertSpacer(); pnlPanel.AddChildControl(btnToggleMenu); wndWindow.Panel.AddChildControl(lblAutomation); wndWindow.Panel.InsertSpacer(); wndWindow.Panel.AddChildControl(chbAutoClicker); wndWindow.Panel.AddChildControl(chbMoveMouse); wndWindow.Panel.AddChildControl(rdbUsePost); wndWindow.Panel.AddChildControl(rdbUseSend); wndWindow.Panel.InsertSpacer(); wndWindow.Panel.AddChildControl(lblVisuals); wndWindow.Panel.InsertSpacer(); wndWindow.Panel.AddChildControl(chbVisDrawClicker); wndWindow.Panel.InsertSpacer(); wndWindow.Panel.AddChildControl(lblPerformance); wndWindow.Panel.InsertSpacer(); wndWindow.Panel.AddChildControl(lblFpsLogic); wndWindow.Panel.AddChildControl(pgbFpsLogic); wndWindow.Panel.AddChildControl(lblFpsLogicAverage); wndWindow.Panel.AddChildControl(lblFpsDraw); wndWindow.Panel.AddChildControl(pgbFpsDraw); wndWindow.Panel.AddChildControl(lblFpsDrawAverage); overlay.ChildControls.Add(pnlPanel); overlay.ChildControls.Add(wndWindow); overlay.ChildControls.Add(clkWindow); Console.WriteLine("> Running overlay (close this console to terminate!)"); System.Windows.Forms.Application.Run(overlay); } }
public static void Main(string[] args) { System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); while (!ProcUtils.ProcessIsRunning("Clicker Heroes")) Thread.Sleep(250); InitializeComponent(); proc = new ProcUtils("Clicker Heroes", WinAPI.ProcessAccessFlags.QueryLimitedInformation); keys = new KeyUtils(); lastClickerPos = new Vector2(); using (overlay = new SharpDXOverlay()) { overlay.ChildControls.Clear(); overlay.Attach(proc.Process.MainWindowHandle); overlay.TickEvent += overlay_TickEvent; overlay.DrawOnlyWhenInForeground = false; overlay.BeforeDrawingEvent += overlay_BeforeDrawingEvent; SharpDXRenderer renderer = overlay.Renderer; renderer.CreateFont("smallFont", "Century Gothic", 12f); renderer.CreateFont("tallFont", "Century Gothic", 16f); lblCaption.Font = renderer.GetFont("tallFont"); lblDescription.Font = renderer.GetFont("smallFont"); btnToggleMenu.Font = renderer.GetFont("smallFont"); wndWindow.Font = renderer.GetFont("tallFont"); lblAutomation.Font = renderer.GetFont("smallFont"); chbAutoClicker.Font = renderer.GetFont("smallFont"); chbAutoSpells.Font = renderer.GetFont("smallFont"); rdbUsePost.Font = renderer.GetFont("smallFont"); rdbUseSend.Font = renderer.GetFont("smallFont"); lblVisuals.Font = renderer.GetFont("smallFont"); chbVisDrawClicker.Font = renderer.GetFont("smallFont"); chbVisDrawLevels.Font = renderer.GetFont("smallFont"); lblPerformance.Font = renderer.GetFont("smallFont"); lblFpsLogic.Font = renderer.GetFont("smallFont"); lblFpsLogicAverage.Font = renderer.GetFont("smallFont"); lblFpsDraw.Font = renderer.GetFont("smallFont"); lblFpsDrawAverage.Font = renderer.GetFont("smallFont"); segments.Width = overlay.Width; segments.Height = overlay.Height; pnlPanel.ChildControls.Clear(); pnlPanel.AddChildControl(lblCaption); pnlPanel.AddChildControl(lblDescription); pnlPanel.InsertSpacer(); pnlPanel.AddChildControl(btnToggleMenu); wndWindow.Panel.AddChildControl(lblAutomation); wndWindow.Panel.InsertSpacer(); wndWindow.Panel.AddChildControl(chbAutoClicker); wndWindow.Panel.AddChildControl(chbAutoSpells); wndWindow.Panel.AddChildControl(rdbUsePost); wndWindow.Panel.AddChildControl(rdbUseSend); wndWindow.Panel.InsertSpacer(); wndWindow.Panel.AddChildControl(lblVisuals); wndWindow.Panel.InsertSpacer(); wndWindow.Panel.AddChildControl(chbVisDrawClicker); wndWindow.Panel.AddChildControl(chbVisDrawLevels); wndWindow.Panel.InsertSpacer(); wndWindow.Panel.AddChildControl(lblPerformance); wndWindow.Panel.InsertSpacer(); wndWindow.Panel.AddChildControl(lblFpsLogic); wndWindow.Panel.AddChildControl(pgbFpsLogic); wndWindow.Panel.AddChildControl(lblFpsLogicAverage); wndWindow.Panel.AddChildControl(lblFpsDraw); wndWindow.Panel.AddChildControl(pgbFpsDraw); wndWindow.Panel.AddChildControl(lblFpsDrawAverage); overlay.ChildControls.Add(pnlPanel); overlay.ChildControls.Add(segments); overlay.ChildControls.Add(wndWindow); System.Windows.Forms.Application.Run(overlay); } }
public static void Main(string[] args) { System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); PrintSuccess("[>]=-- Zat's CSGO-ESP"); PrintEncolored("[www.unknowncheats.me - Leading the game hacking scene since 2000]", ConsoleColor.Cyan); Thread scroller = new Thread(new ThreadStart(LoopScroll)); scroller.IsBackground = true; scroller.Start(); KeyUtils = new KeyUtils(); ConfigUtils = new CSGOConfigUtils(); //ESP ConfigUtils.BooleanSettings.AddRange(new string[] { "espEnabled", "espBox", "espSkeleton", "espName", "espHealth", "espAllies", "espEnemies" }); //Aim ConfigUtils.BooleanSettings.AddRange(new string[] { "aimDrawFov", "aimEnabled", "aimToggle", "aimHold", "aimSmoothEnabled", "aimFilterSpotted", "aimFilterSpottedBy", "aimFilterEnemies", "aimFilterAllies", "aimFilterSpottedBy" }); ConfigUtils.KeySettings.Add("aimKey"); ConfigUtils.FloatSettings.AddRange(new string[] { "aimFov", "aimSmoothValue" }); ConfigUtils.IntegerSettings.Add("aimBone"); //RCS ConfigUtils.BooleanSettings.Add("rcsEnabled"); ConfigUtils.FloatSettings.Add("rcsForce"); //Trigger ConfigUtils.BooleanSettings.AddRange(new string[] { "triggerEnabled", "triggerToggle", "triggerHold", "triggerFilterEnemies", "triggerFilterAllies", "triggerBurstEnabled", "triggerBurstRandomize" }); ConfigUtils.KeySettings.Add("triggerKey"); ConfigUtils.FloatSettings.AddRange(new string[] { "triggerDelayFirstShot", "triggerDelayShots", "triggerBurstShots" }); //Radar ConfigUtils.BooleanSettings.AddRange(new string[] { "radarEnabled", "radarAllies", "radarEnemies" }); ConfigUtils.FloatSettings.AddRange(new string[] { "radarScale", "radarWidth", "radarHeight" }); //Crosshair ConfigUtils.BooleanSettings.AddRange(new string[] { "crosshairEnabled", "crosshairOutline" }); ConfigUtils.IntegerSettings.AddRange(new string[] { "crosshairType" }); ConfigUtils.UIntegerSettings.AddRange(new string[] { "crosshairPrimaryColor", "crosshairSecondaryColor" }); ConfigUtils.FloatSettings.AddRange(new string[] { "crosshairWidth", "crosshairSpreadScale", "crosshairRadius" }); //Windows ConfigUtils.BooleanSettings.AddRange(new string[] { "windowSpectatorsEnabled", "windowPerformanceEnabled", "windowBotsEnabled", "windowEnemiesEnabled" }); ConfigUtils.FillDefaultValues(); if (!File.Exists("euc_csgo.cfg")) { ConfigUtils.SaveSettingsToFile("euc_csgo.cfg"); } ConfigUtils.ReadSettingsFromFile("euc_csgo.cfg"); PrintInfo("> Waiting for CSGO to start up..."); while (!ProcUtils.ProcessIsRunning(GAME_PROCESS)) { Thread.Sleep(250); } ProcUtils = new ProcUtils(GAME_PROCESS, WinAPI.ProcessAccessFlags.VirtualMemoryRead | WinAPI.ProcessAccessFlags.VirtualMemoryWrite | WinAPI.ProcessAccessFlags.VirtualMemoryOperation); MemUtils = new ExternalUtilsCSharp.MemUtils(); MemUtils.Handle = ProcUtils.Handle; PrintInfo("> Waiting for CSGOs window to show up..."); while ((hWnd = WinAPI.FindWindowByCaption(hWnd, GAME_TITLE)) == IntPtr.Zero) { Thread.Sleep(250); } ProcessModule clientDll, engineDll; PrintInfo("> Waiting for CSGO to load client.dll..."); while ((clientDll = ProcUtils.GetModuleByName(@"bin\client.dll")) == null) { Thread.Sleep(250); } PrintInfo("> Waiting for CSGO to load engine.dll..."); while ((engineDll = ProcUtils.GetModuleByName(@"engine.dll")) == null) { Thread.Sleep(250); } Framework = new Framework(clientDll, engineDll); PrintInfo("> Initializing overlay"); using (SHDXOverlay = new SharpDXOverlay()) { SHDXOverlay.Attach(hWnd); SHDXOverlay.TickEvent += overlay_TickEvent; SHDXOverlay.BeforeDrawingEvent += SHDXOverlay_BeforeDrawingEvent; InitializeComponents(); SharpDXRenderer renderer = SHDXOverlay.Renderer; TextFormat smallFont = renderer.CreateFont("smallFont", "Century Gothic", 10f); TextFormat largeFont = renderer.CreateFont("largeFont", "Century Gothic", 14f); TextFormat heavyFont = renderer.CreateFont("heavyFont", "Century Gothic", 14f, FontStyle.Normal, FontWeight.Heavy); windowMenu.Font = smallFont; windowMenu.Caption.Font = largeFont; windowGraphs.Font = smallFont; windowGraphs.Caption.Font = largeFont; windowSpectators.Font = smallFont; windowSpectators.Caption.Font = largeFont; windowBots.Font = smallFont; windowBots.Caption.Font = largeFont; graphMemRead.Font = smallFont; graphMemWrite.Font = smallFont; for (int i = 0; i < ctrlPlayerESP.Length; i++) { ctrlPlayerESP[i].Font = heavyFont; SHDXOverlay.ChildControls.Add(ctrlPlayerESP[i]); } ctrlRadar.Font = smallFont; windowMenu.ApplySettings(ConfigUtils); SHDXOverlay.ChildControls.Add(ctrlCrosshair); SHDXOverlay.ChildControls.Add(ctrlRadar); SHDXOverlay.ChildControls.Add(windowMenu); SHDXOverlay.ChildControls.Add(windowGraphs); SHDXOverlay.ChildControls.Add(windowSpectators); SHDXOverlay.ChildControls.Add(windowBots); SHDXOverlay.ChildControls.Add(cursor); PrintInfo("> Running overlay"); System.Windows.Forms.Application.Run(SHDXOverlay); } ConfigUtils.SaveSettingsToFile("euc_csgo.cfg"); }
public static void Main(string[] args) { System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); PrintSuccess("[>]=-- Zat's CSGO-ESP"); KeyUtils = new KeyUtils(); ConfigUtils = new CSGOConfigUtils(); ConfigUtils.SetValue("espEnabled", true); ConfigUtils.SetValue("espBox", false); ConfigUtils.SetValue("espSkeleton", true); ConfigUtils.SetValue("espName", false); ConfigUtils.SetValue("espHealth", true); ConfigUtils.SetValue("aimEnabled", true); ConfigUtils.SetValue("aimKey", WinAPI.VirtualKeyShort.XBUTTON1); ConfigUtils.SetValue("aimToggle", false); ConfigUtils.SetValue("aimHold", true); ConfigUtils.SetValue("aimFov", 30f); ConfigUtils.SetValue("aimSmoothEnabled", true); ConfigUtils.SetValue("aimSmoothValue", 0.2f); ConfigUtils.SetValue("aimFilterSpotted", false); ConfigUtils.SetValue("aimFilterSpottedBy", false); ConfigUtils.SetValue("aimFilterEnemies", true); ConfigUtils.SetValue("aimFilterAllies", false); ConfigUtils.SetValue("rcsEnabled", true); ConfigUtils.SetValue("rcsForce", 100f); ConfigUtils.ReadSettingsFromFile("euc_csgo.cfg"); PrintInfo("> Waiting for CSGO to start up..."); while (!ProcUtils.ProcessIsRunning("csgo")) Thread.Sleep(250); ProcUtils = new ProcUtils("csgo", WinAPI.ProcessAccessFlags.VirtualMemoryRead | WinAPI.ProcessAccessFlags.VirtualMemoryWrite | WinAPI.ProcessAccessFlags.VirtualMemoryOperation); MemUtils = new ExternalUtilsCSharp.MemUtils(); MemUtils.Handle = ProcUtils.Handle; PrintInfo("> Waiting for CSGOs window to show up..."); while ((hWnd = WinAPI.FindWindowByCaption(hWnd, "Counter-Strike: Global Offensive")) == IntPtr.Zero) Thread.Sleep(250); ProcessModule clientDll, engineDll; PrintInfo("> Waiting for CSGO to load client.dll..."); while ((clientDll = ProcUtils.GetModuleByName(@"bin\client.dll")) == null) Thread.Sleep(250); PrintInfo("> Waiting for CSGO to load engine.dll..."); while ((engineDll = ProcUtils.GetModuleByName(@"engine.dll")) == null) Thread.Sleep(250); Framework = new Framework(clientDll, engineDll); PrintInfo("> Initializing overlay"); using (SHDXOverlay = new SharpDXOverlay()) { SHDXOverlay.Attach(hWnd); SHDXOverlay.TickEvent += overlay_TickEvent; InitializeComponents(); SharpDXRenderer renderer = SHDXOverlay.Renderer; TextFormat smallFont = renderer.CreateFont("smallFont", "Century Gothic", 10f); TextFormat largeFont = renderer.CreateFont("largeFont", "Century Gothic", 14f); TextFormat heavyFont = renderer.CreateFont("heavyFont", "Century Gothic", 14f, FontStyle.Normal, FontWeight.Heavy); windowMenu.Font = smallFont; windowMenu.Caption.Font = largeFont; windowGraphs.Font = smallFont; windowGraphs.Caption.Font = largeFont; windowSpectators.Font = smallFont; windowSpectators.Caption.Font = largeFont; graphMemRead.Font = smallFont; graphMemWrite.Font = smallFont; for (int i = 0; i < ctrlPlayerESP.Length; i++) { ctrlPlayerESP[i].Font = heavyFont; SHDXOverlay.ChildControls.Add(ctrlPlayerESP[i]); } ctrlRadar.Font = smallFont; windowMenu.ApplySettings(ConfigUtils); SHDXOverlay.ChildControls.Add(ctrlRadar); SHDXOverlay.ChildControls.Add(windowMenu); SHDXOverlay.ChildControls.Add(windowGraphs); SHDXOverlay.ChildControls.Add(windowSpectators); SHDXOverlay.ChildControls.Add(cursor); PrintInfo("> Running overlay"); System.Windows.Forms.Application.Run(SHDXOverlay); } ConfigUtils.SaveSettingsToFile("euc_csgo.cfg"); }