Tobyg Posted September 3, 2021 Posted September 3, 2021 I would like to remove those buttons as I am trying for a project in my class to make the 'best' visitor using windows server and so far I have use the custom user interface with edge which gives me a just a edge window. No taskbar or anything but that means if they minimise edge just disappears until you alt-tab to get it back in a hypothetical situation I can't expect everyone to know alt tab, if there is away to remove those buttons that would great. I did find some autoitscript scripts on the forums that kind of work but I can't get them to work for edge.
Developers Jos Posted September 3, 2021 Developers Posted September 3, 2021 Moved to the appropriate forum. Moderation Team 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.
Zedna Posted September 3, 2021 Posted September 3, 2021 (edited) $gui = GUICreate("Title", 400, 300, -1, -1, BitOR($WS_CAPTION, $WS_POPUP, $WS_SYSMENU)) or $gui = GUICreate("Title", 400, 300, -1, -1, BitOR($WS_CAPTION, $WS_POPUP, $WS_SYSMENU), $WS_EX_TOOLWINDOW) Edited September 3, 2021 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Tobyg Posted September 3, 2021 Author Posted September 3, 2021 54 minutes ago, Jos said: Moved to the appropriate forum. Moderation Team Yeah sorry wasn't exactly sure where to put this.
Tobyg Posted September 3, 2021 Author Posted September 3, 2021 22 minutes ago, Zedna said: $gui = GUICreate("Title", 400, 300, -1, -1, BitOR($WS_CAPTION, $WS_POPUP, $WS_SYSMENU)) or $gui = GUICreate("Title", 400, 300, -1, -1, BitOR($WS_CAPTION, $WS_POPUP, $WS_SYSMENU), $WS_EX_TOOLWINDOW) I am a real newbie at autoitscript so I not entirely sure what to with this as looking through that it doesn't mention edge at all.
Zedna Posted September 3, 2021 Posted September 3, 2021 So you want to disable Minimize/Maximize buttons in EXTERNAL (not AutoIt) application? Resources UDF ResourcesEx UDF AutoIt Forum Search
Nine Posted September 3, 2021 Posted September 3, 2021 How about Send("{F11}") ? “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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Zedna Posted September 3, 2021 Posted September 3, 2021 This is working: #include <WindowsConstants.au3> #include <WinAPISysWin.au3> $hWnd = WinGetHandle('Title') If IsHWnd($hWnd) Then _WinAPI_SetWindowLong($hWnd, $GWL_STYLE, BitOR($WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_VISIBLE)) EndIf This is more general, but doesn' work: #include <WindowsConstants.au3> #include <WinAPISysWin.au3> $hWnd = WinGetHandle('Title') If IsHWnd($hWnd) Then $style = _WinAPI_GetWindowLong($hWnd, $GWL_STYLE) _WinAPI_SetWindowLong($hWnd, $GWL_STYLE, BitAND($style, BitNOT($WS_MINIMIZE), BitNOT($WS_MAXIMIZE))) EndIf Resources UDF ResourcesEx UDF AutoIt Forum Search
Tobyg Posted September 3, 2021 Author Posted September 3, 2021 10 hours ago, Zedna said: So you want to disable Minimize/Maximize buttons in EXTERNAL (not AutoIt) application? Yeah I want to remove minimise maximize buttons in Microsoft edge the browser
Tobyg Posted September 3, 2021 Author Posted September 3, 2021 7 hours ago, Zedna said: $hWnd = WinGetHandle('Title') Is there a way to use the exe instead of the title of the edge (Microsoft browser, external application) so using something like ProcessList ( ["name"] ) and pull the exe from that maybe?
Zedna Posted September 3, 2021 Posted September 3, 2021 (edited) Look here (CLASS) https://www.autoitscript.com/autoit3/docs/intro/windowsadvanced.htm Edited September 3, 2021 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Tobyg Posted September 3, 2021 Author Posted September 3, 2021 1 hour ago, Zedna said: Look here (CLASS) https://www.autoitscript.com/autoit3/docs/intro/windowsadvanced.htm I am really confused on what do with that information.
Tobyg Posted September 3, 2021 Author Posted September 3, 2021 #include <WinAPI.au3> #include <Constants.au3> #include <WindowsConstants.au3> #include <GuiMenu.au3> $windows = WinList() For $i =1 To $windows[0][0] $windowState = WinGetState($windows[$i][1]) $isVisible = BitAND($windowState,2) = 2 If $windows[$i][0] = '' Or not $isVisible Then ContinueLoop $h = $windows[$i][1] $iOldStyle = _WinAPI_GetWindowLong($h, $GWL_STYLE) $iNewStyle = BitXOr($iOldStyle, $WS_SYSMENU) _WinAPI_SetWindowLong($h, $GWL_STYLE, $iNewStyle) _WinAPI_ShowWindow($h, @SW_SHOW) Next I found this one online but it doesn't work for Microsoft edge (browser)
Nine Posted September 4, 2021 Posted September 4, 2021 You can't remove those buttons from Edge. Only way is to use F11. “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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Tobyg Posted September 4, 2021 Author Posted September 4, 2021 6 hours ago, Nine said: You can't remove those buttons from Edge. Only way is to use F11. Is there a way to force this so it can't be disabled and when you are in f11 mode thee is no url bar so could this be turned on?
Nine Posted September 4, 2021 Posted September 4, 2021 Nope, what you see is what you get. Only other way is to embed Edge into a GUI, then you can do whatever you want... “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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Tobyg Posted September 4, 2021 Author Posted September 4, 2021 54 minutes ago, Nine said: Nope, what you see is what you get. Only other way is to embed Edge into a GUI, then you can do whatever you want... Embedding edge might be exactly what I want, do you have any idea on how to do this
Nine Posted September 4, 2021 Posted September 4, 2021 Good luck ! “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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
JockoDundee Posted September 4, 2021 Posted September 4, 2021 Can you run in tablet mode? Code hard, but don’t hard code...
Tobyg Posted September 4, 2021 Author Posted September 4, 2021 18 minutes ago, JockoDundee said: Can you run in tablet mode? No I don't think it does since I don't have touch supported hardware.
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