Jump to content

Hidden Windows in Windows 10


Recommended Posts

Hello folks,

I try to set the window state of 3th party windows (win32 gui) to "@SW_HIDE". This seems not to work properly in windows 10. The window is hidden, but it is still visible in the windows bar. If I click on it, nothing happens. Thx for some infos.

Br, s0urce

Link to comment
Share on other sites

3 hours ago, AutoBert said:

You hided the wrong window. Delphi uses a Form for Project, and the hided one is the Child of this Project.

Oh, good to know, thank you very much. Do you maybe have a solution to hide the parent "process"? I found this option "_WinAPI_GetParentProcess(WinGetProcess($title))" to get a parent process, but I found no way to hide a window with it's pid.

Link to comment
Share on other sites

Thank you AutoBert, this was the solution. Here is my ready function, maybe someone else looking for this:

#include <WinAPI.au3>

func _WinAndParentSetState($title,$state)
  $childHandle=WinGetHandle($title)
  $parentLong=_WinAPI_GetWindowLong($childHandle,$GWL_HWNDPARENT)
  $parentHandle=HWnd($parentLong)
  WinSetState($parentHandle,'',$state)
  WinSetState($childHandle,'',$state)
endfunc
Edited by s0urce
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...