• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 5 of 5
    1. #1
      Coder
      Kappa
       
      Hacking
       
      Szaka's Avatar
      Join Date
      Mar 2013
      Posts
      168
      Thanks (-->)
      1
      Thanks (<--)
      6

      Getting HWND of inejcted window

      Silent VPN
      Hello. I got a small problem and no idea how to resolve it. I launch game, then .exe injector which injects DLL into the game. This is a windows form app. I need this dll to get HWND of the window he is injected into. Now using FindWindow because i want to run multiple games with bot inside it, so every bot has to detect its OWN client. How to? I need to PostMessage using HWND

      Right now i can hook CreateWindowEx to het the HWND, but do you know any simpler way?
      Last edited by Szaka; 08-19-2013 at 08:08 AM.

    2. #2
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      brinkz's Avatar
      Join Date
      Sep 2012
      Posts
      213
      Thanks (-->)
      5
      Thanks (<--)
      74
      GetActiveWindow() ?

    3. #3
      Coder
      Kappa
       
      Hacking
       
      Szaka's Avatar
      Join Date
      Mar 2013
      Posts
      168
      Thanks (-->)
      1
      Thanks (<--)
      6
      I triend and it seems to work wrong in my case. What im trying to do now, is to get HWNDs of all windows with same PID and compare Title text, that will work for sure

      Edit: Bingo, works
      Last edited by Szaka; 08-19-2013 at 09:18 AM.

    4. #4
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      edgar's Avatar
      Join Date
      Dec 2012
      Posts
      29
      Thanks (-->)
      2
      Thanks (<--)
      11
      I did this in my window hook code that I posted a while back. Since I was already hooking CreateDevice I let the target application give me it's main window handle.

    5. #5
      Coder
      Kappa
       
      Hacking
       
      Szaka's Avatar
      Join Date
      Mar 2013
      Posts
      168
      Thanks (-->)
      1
      Thanks (<--)
      6
      Silent VPN
      I assume that user can start bot when game is launched

    Similar Game Hacker Threads

    1. [Help] Getting String Data from a Window
      By zero462usa in forum Hacking Help
      Replies: 2
      Last Post: 03-14-2016, 03:59 PM
    2. [Tutorial] Creating a HWND to Chrome
      By Kilo in forum C/C++
      Replies: 0
      Last Post: 11-04-2015, 02:25 AM
    3. [Release] Console Window Graphics
      By Solaire in forum Tutorials and Snippets
      Replies: 3
      Last Post: 06-21-2015, 07:19 PM
    4. [Source Code] Win 32 window base (c++)
      By dmo in forum Tutorials and Snippets
      Replies: 3
      Last Post: 12-14-2014, 11:28 PM
    5. DirectX Text in hwnd!
      By j3b in forum Hacking Help
      Replies: 5
      Last Post: 07-08-2013, 12:12 PM

    Tags for this Thread