mike1950r Posted August 10, 2023 Posted August 10, 2023 Hi, how can I Enable / Disable the "Close Window" entry in program button in taskbar? Thanks for assistance. Cheers mike
Andreik Posted August 10, 2023 Posted August 10, 2023 (edited) Do you mean the context menu item "Close Window" from taskbar app icons? Don't know if something like this is possible but you can hide the app from taskbar if the window has WS_EX_TOOLWINDOW extended style. Edited August 10, 2023 by Andreik
mike1950r Posted August 10, 2023 Author Posted August 10, 2023 hi andreik, yes this is what i mean. but i fear that this is not possible. it's just to prevent that the user closes the app while it is busy with a task. thanks anyway cheers mike
mike1950r Posted August 10, 2023 Author Posted August 10, 2023 just another question: which event (keystroke) sends the context menu item "Close Window" from taskbar? Thanks for info Cheers mike
Solution mike1950r Posted August 10, 2023 Author Solution Posted August 10, 2023 ok, finally found the solution: Opt("GUIOnEventMode", 1) GUISetOnEvent($GUI_EVENT_CLOSE, "Ignore", $hGUI1) Do, what has to be done without interuption ... Opt("GUIOnEventMode", 0) That's it. Cheers mike
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