Jump to content

Recommended Posts

Posted

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.

Posted
54 minutes ago, Jos said:

Moved to the appropriate forum.

Moderation Team

Yeah sorry wasn't exactly sure where to put this.

Posted
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.  

Posted

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

 

Posted
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

Posted
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?

Posted
#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)

Posted
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?

 

Posted
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

Posted
18 minutes ago, JockoDundee said:

Can you run in tablet mode?

9086A025-3BEB-4785-AE34-465D0B8D096A.png.a9c62ecaec1f847887caaa1dddad45c2.png

No I don't think it does since I don't have touch supported hardware.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...