[bb] HideWindow DLL by Xzider [ 1+ years ago ]

Started by BlitzBot, June 29, 2017, 00:28:42

Previous topic - Next topic

BlitzBot

Title : HideWindow DLL
Author : Xzider
Posted : 1+ years ago

Description : Description: Use to hide/show a window currently running. Use the HideWindow function once putting the "hidewindow.dll" and "hidewindow.decls" files in the Blitz3DUserLibs folder. HideWindow takes one parameter f_procName$ which is the name of the TITLE of the window. Also use ShowWindow the same way.

Download: <a href="http://rapidshare.com/files/150758760/HideWindowDLL.zip.html" target="_blank">http://rapidshare.com/files/150758760/HideWindowDLL.zip.html</a>


Code :
Code (blitzbasic) Select
;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 :


Nike(Posted 1+ years ago)

 Thank you!!! Now no one will know i have a hacker checker in my game!


em22(Posted 1+ years ago)

 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"