Leo1906 Posted August 10, 2021 Share Posted August 10, 2021 Where do these values come from? I can't find them in the official documentation on MSDN. They equal to 64 and 65. I assume that the ShowWindow function gets used internally? ShowWindow function (winuser.h) - Win32 apps | Microsoft Docs Or do disable and enable use a different method than hide, maximize, etc.? Link to comment Share on other sites More sharing options...
Nine Posted August 10, 2021 Share Posted August 10, 2021 Cannot tell for sure, but using those macro are probably calling EnableWindow behind the scene... Leo1906 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Leo1906 Posted August 10, 2021 Author Share Posted August 10, 2021 Yes I just came across hat function as well So I assume there are some checks on the numbers provided going on in the background autoit core code and it then decides which function to take. It is just more convenient this way to have it all in one function. Thank to you @Nine my question is solved now That was quick ... Link to comment Share on other sites More sharing options...
Developers Jos Posted August 10, 2021 Developers Share Posted August 10, 2021 It is an extra buildin functionality for WinSetState() that does a "window()->enable(true)" for @SW_ENABLE and "window()->enable(false)" for @SW_DISABLE. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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