Code archives/User Libs/HideWindow DLL
This code has been declared by its author to be Public Domain code.
Download source code
| |||||
Description: Use to hide/show a window currently running. Use the HideWindow function once putting the "hidewindow.dll" and "hidewindow.decls" files in the Blitz3D\UserLibs folder. HideWindow takes one parameter f_procName$ which is the name of the TITLE of the window. Also use ShowWindow the same way. Download: http://rapidshare.com/files/150758760/HideWindowDLL.zip.html | |||||
;Can change Title$ to whatever you want to hide. AppTitle "HideWindow Example" Title$ = "HideWindow Example" Result% = HideWindow(Title$) If Result% Print Title$ + " hidden!" Else Print "Failed to hide " + Title$ End If Delay 2000 Print Result% = ShowWindow(Title$) If Result% Print Title$ + " shown!" Else Print "Failed to show " + Title$ End If Print Print "Press any key to quit." Print WaitKey End |
Comments
| ||
Thank you!!! Now no one will know i have a hacker checker in my game! |
| ||
You can do this without the need for an extra DLL file using WinAPI. Create your window, use the GetWinOSHandle function to return the hWnd, then invoke the show/hide function. You can also use this to maximize/minimize windows. Function GetWinOSHandle(win) Return(QueryObject(win,1)) End Function Function HideWindow(hWnd) ShowWindowA(hWnd,0) End Function Function ShowWindow(hWnd) ShowWindowA(hWnd,5) End Function ;--------------------------------------- ;WinAPI Declarations ;---------------------------------------- .lib "user32.dll" ShowWindowA%(hWnd%,com%):"ShowWindow" |
Code Archives Forum