Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting the caption of a window
#1
Reply

#2
It is a handle(H) window(WND), basicly it calls for all the other commands to gain access to a window.
Reply

#3
PLZ HALP PLZ *bump*
Reply

#4
thanks :'(
Reply

#5
Restart your computer




Troll
[Image: azuw.jpg]
Reply

#6
Fuu

damn you itsmods, after all i've done for you.....
Reply

#7
You made a thread with a question, you looked through the source, found out how it worked, asked what is HWND, @aosma8 answered, thread over.

We don't know what you wan't anymore.
[Image: MaEIQ.png]
Reply

#8
I'm still not able to retrieve the console contents....
Pretty obvious?
Reply

#9
Just read through the source some more and find out how they do it?
[Image: MaEIQ.png]
Reply

#10
Finally solved it:
CSHARP Code
  1. unsafe string MW3Console
  2. {
  3. get
  4. {
  5. IntPtr form = *(IntPtr*)0x5933A50;
  6. IntPtr txtbox = FindWindowEx(form, IntPtr.Zero, "Edit", null);
  7. IntPtr console = FindWindowEx(form, txtbox, "Edit", null);
  8. StringBuilder sb = new StringBuilder(9999999);
  9. int result = SendMessageTimeout(
  10. console,
  11. 0x0D /*WM_GETTEXT*/,
  12. 9999999,
  13. sb,
  14. 10 /*SMTO_ABORTIFHUNG | SMTO_NOTIMEOUTIFNOTHUNG*/,
  15. 500,
  16. IntPtr.Zero);
  17. return sb.ToString();
  18. }
  19. }
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Window view Arteq 27 10,468 05-03-2012, 11:13
Last Post: Pozzuh
  Remove MiniMap Red Dots / Remove Window Glare/Smudges?! koil 0 1,395 06-27-2011, 09:58
Last Post: koil

Forum Jump:


Users browsing this thread:
4 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.