Ooops
October 29, 2020, 01:52:39 AM

Author Topic: [bb] HideWindow DLL by Xzider [ 1+ years ago ]  (Read 1205 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bb] HideWindow DLL by Xzider [ 1+ years ago ]
« on: June 29, 2017, 12:28:42 AM »
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[/url]


Code :
Code: BlitzBasic
  1. ;Can change Title$ to whatever you want to hide.
  2.  
  3. AppTitle "HideWindow Example"
  4.  
  5.                 Title$ = "HideWindow Example"
  6.                
  7.                 Result% = HideWindow(Title$)
  8.  
  9.   If Result%
  10.  
  11.                 Print Title$ + " hidden!"
  12.                
  13.   Else
  14.  
  15.                 Print "Failed to hide " + Title$
  16.                
  17.   End If
  18.  
  19.  
  20.                 Delay 2000
  21.                
  22.                 Print
  23.                
  24.                 Result% = ShowWindow(Title$)
  25.  
  26.   If Result%
  27.  
  28.                 Print Title$ + " shown!"
  29.                
  30.   Else
  31.  
  32.                 Print "Failed to show " + Title$
  33.                
  34.   End If
  35.  
  36.  
  37.                 Print
  38.                 Print "Press any key to quit."
  39.                 Print
  40.                
  41.                 WaitKey
  42.                 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.
Code: [Select]

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"



 

SimplePortal 2.3.6 © 2008-2014, SimplePortal