Loc Posted September 18, 2023 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
OJBakker Posted September 18, 2023 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)
Loc Posted September 18, 2023 Author 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
Loc Posted September 18, 2023 Author 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
Loc Posted September 18, 2023 Author 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
Loc Posted September 18, 2023 Author 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
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