Sign in to follow this  
Followers 0
s0urce

Hidden Windows in Windows 10

7 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

What's the Windows bar, the Windows taskbar, the Titlebar from window?  What's the name from 3th paty app?

Thx for more infos.

 

 

Edited by AutoBert

Share this post


Link to post
Share on other sites

Yeah, the Windows taskbar. The app is an selfwritten one. Delphi compile to exe.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

_WinAPI_GetWindowLong($hWnd3thParty, $GWL_HWNDPARENT) should help. It returns the needed WindowHandle from Parentwindow. 

1 person likes this

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0

  • Similar Content

    • DLS
      By DLS
      I have a working script that changes the core affinity and process priority of multiples of a specific application I have running.  
      I have that part figured out.

      I would like to make a little modification to it.

      Windows10 introduced virtual desktops.  I am trying to have different core affinity and priority of processes on the visible and non-visible desktops.  
      What I need is a bool function that could be described as IsWindowOnCurrentDesktop($hWnd).  I have searched the winAPI.au3 but I do not believe anything like that exists built it.
      I have searched multiple places before asking for help. I found a Microsoft supplied example of the function I need using C#, but I am unfamiliar with C# to a degree that I cannot port the system call over.
      https://blogs.msdn.microsoft.com/winsdk/2015/09/10/virtual-desktop-switching-in-windows-10/
      Help is appreciated but not expected.  Thanks in advanced.   In the meantime I will be learning C# syntax and class structure.
    • therks
      By therks
      Does anybody know how I would go about getting the window title bar colour on Windows 10? I tried using _WinAPI_GetSysColor, and manually reading the registry (HKCU\Control Panel\Colors, ActiveTitle) but in either case I get the same (0x99B4D1, wrong) result.
      RegRead('HKCU\Control Panel\Colors', 'ActiveTitle') ; Returns 153 180 209 (aka 99B4D1) _WinAPI_GetSysColor ($COLOR_ACTIVECAPTION) ; Returns 0xD1B499 (aka 99B4D1)  
    • therks
      By therks
      As the title says, does anyone know of a way to open the Windows 10 action center using AutoIt. Maybe via rundll or some other applet?
      My intention is to just hide the normal icon, then have an AutoIt system tray icon that will open the action center on click. And I can't just send the Win+A hotkey because I have it disabled. 
      Thanks for reading.
    • TMelanson
      By TMelanson
      Hi folks,
      I'm hoping someone can help me out here.
      Background:
      I have the need to run a program with admin credentials (#RequireAdmin), and then get the SID of the locally logged in account. Not the admin account.
      If you look at the attached script, Line 16 uses the @UserName variable and returns the SID for the admin account I used to launch the app.
      I want to use line 17 which passes the result of the _GetUsername function which is a username using  ($UserName) to the WMIService.
      I'm getting " The requested action with this object has failed.:" error message.
      Any suggestions would be appreciated!
       
      test1.au3
    • onlineth
      By onlineth
      I’m wondering how to add a Windows Hello option to the additional PIN, Fingerprint, and Facial Recognition options? I'd like an interface that could be linked to the Windows Hello authentication system and AutoIt itself.
      I understand that this discussion did not meet the Forum Rules, I apologize about that. I'd like to point out that this post is asking for a way to attach into the Windows Hello service. I'd like to follow the same concept that YubiKey's interact with Windows Hello as seen here: https://www.yubico.com/2016/09/yubikey-works-windows-hello/.