|
-
Aug 15th, 2001, 06:27 PM
#1
Thread Starter
Junior Member
hiding an external program
hi,
how can i hide a window that doesnt belong to my program/project?
thanks!
-
Aug 15th, 2001, 07:14 PM
#2
Fanatic Member
get the windows caption, or its class name (if you have Spy++, open it and get the classname)
VB Code:
'in module:
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal _
lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal _
hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Public Const HIDE_WINDOW = 0
'somwhere else
'if you have caption
w_handle = FindWindow(vbNullString,"Caption")
'if you have the classname
w_handle = FindWindow("ClassName",vbNullString)
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?
-
Aug 16th, 2001, 07:04 AM
#3
Thread Starter
Junior Member
where can i download spy++ ??
-
Aug 16th, 2001, 10:45 AM
#4
Fanatic Member
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?
-
Aug 16th, 2001, 10:59 AM
#5
Thread Starter
Junior Member
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...
-
Aug 16th, 2001, 12:57 PM
#6
New Member
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 )
-
Aug 16th, 2001, 01:57 PM
#7
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|