Results 1 to 7 of 7

Thread: hiding an external program

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Posts
    18

    hiding an external program

    hi,
    how can i hide a window that doesnt belong to my program/project?

    thanks!

  2. #2
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    get the windows caption, or its class name (if you have Spy++, open it and get the classname)

    VB Code:
    1. 'in module:
    2. Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal _
    3.   lpClassName As String, ByVal lpWindowName As String) As Long
    4. Public Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal _
    5.   hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
    6. Public Const HIDE_WINDOW = 0
    7.  
    8. 'somwhere else
    9. 'if you have caption
    10. w_handle = FindWindow(vbNullString,"Caption")
    11.  
    12. 'if you have the classname
    13. w_handle = FindWindow("ClassName",vbNullString)
    14.  
    15.  
    16. PostMessage w_handle,HIDE_WINDOW,CLng(0),CLng(0)

    thats it, hope that helps
    -nabeel
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Posts
    18
    where can i download spy++ ??

  4. #4
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    it comes with Visual Studio. i dont know if you can download it. if you know the programs caption you can use that too.
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Posts
    18
    the program i want to hide is borderless so i cant see the caption...
    when i press ALT+CTRL+DEL i see the name of the program and when i use "findWindow" using the name of the program it says that there a window with that caption... but it doesnt hide it...

  6. #6
    New Member
    Join Date
    Aug 2001
    Location
    Belgium
    Posts
    1

    Wink

    You can also use the freeware program "The Customiser", a very handy tool that can retrieve the class as well.

    Email me and I'll send you the program, since it's to big to add to this post (264kb zipped)
    Uberflütet chaos
    in sunder oder beter
    ein weises niemandsland
    bleibt ewig unerkannt
    ( Das Ich - Sagenlicht )

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Posts
    18
    Please send it over to me via e-mail. [email protected]

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width