Loc Posted September 18, 2023 Share Posted September 18, 2023 I use the winsetstate($title, '', @SW_HIDE) function to hide the window. How can I read the hidden window name? I'm writing a program to hide and show windows using the winsetstate() function, so I'd really appreciate your help. Because my program can be turned on and off after the hidden window, saving the name before hiding is a bit inconvenient Link to comment Share on other sites More sharing options...
OJBakker Posted September 18, 2023 Share Posted September 18, 2023 You can use the handle to the window instead of the windowname. $hWnd = WinGetHandle($title) winsetstate($hWnd, '', @SW_HIDE) Sleep(2000) winsetstate($hWnd, '', @SW_SHOW) Link to comment Share on other sites More sharing options...
Loc Posted September 18, 2023 Author Share Posted September 18, 2023 I'm writing a program with a gui, so I need the window name to be displayed to the user, not the purpose for it to act. For example: That window has been hidden and when I turn on my program, it shows the name of that hidden window on my program gui Link to comment Share on other sites More sharing options...
Loc Posted September 18, 2023 Author Share Posted September 18, 2023 Oh! Forgot. The actions in my program are based on the pid number, so when I read the title of a hidden window, it says empty. I'm asking for help here for this Link to comment Share on other sites More sharing options...
Loc Posted September 18, 2023 Author Share Posted September 18, 2023 Solution: https://www.autoitscript.com/forum/topic/150831-how-do-you-get-the-window-title-of-exe-by-its-pid/?do=findComment&comment=1078056 Link to comment Share on other sites More sharing options...
Loc Posted September 18, 2023 Author Share Posted September 18, 2023 I followed the link above but it couldn't read the hidden window name. I was too quick to mark it as the solution. I'm sorry. And here is a picture of my tool writing Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now