cannot close a window, WinClose doesnt work, please help Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
morkovka18
Posts: 11
Joined: 16 Mar 2024, 11:49

cannot close a window, WinClose doesnt work, please help

18 Mar 2024, 15:46

hello, AHK
i have the following issue

Im using app WindowManager

I try to launch it on startup, and then close it or minimize it to tray (because by default this app goes to the tray if windows gets closed, so no difference)

the problem is : I cant close it with the script
here is WindowSpy info
WindowManager
ahk_class #32770
ahk_exe WindowManager.exe
ahk_pid 6392


and this is my script

Code: Select all

winTitle = WindowManager ahk_exe WindowManager.exe
WinWait, %winTitle%
WinClose
return
it doesnt work, the window is still visible, and nothing happens.

I tried to replace ahk_exe with ahk_class , I tried to run without ahk_exe, I tried another combinations in the script, but even WinKill also not working.
whatever I try, no result.

can you please help ?
gregster
Posts: 9036
Joined: 30 Sep 2013, 06:48

Re: cannot close a window, WinClose doesnt work, please help  Topic is solved

18 Mar 2024, 16:10

Could be UAC-related: https://www.autohotkey.com/docs/v1/FAQ.htm#uac
WindowManager sounds like something which needs elevated rights to work.
morkovka18
Posts: 11
Joined: 16 Mar 2024, 11:49

Re: cannot close a window, WinClose doesnt work, please help

18 Mar 2024, 16:21

gregster wrote:
18 Mar 2024, 16:10
Could be ...
you are right. I launched the script with admin preveledges, and it worked.
but my UAC is already disabled on system level manually, and also this is not a system software, this is a general 3rd party software ...
anyway, thank you very much for the suggestion !

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: erann, FanaticGuru, rubeusmalfoy, Satheeshkumar and 207 guests