Jump to content
Sign in to follow this  
Reiner

Pin Browser window although Crtl-D is pressed

Recommended Posts

Reiner

Hi,

I want to pin a browser window (firefox showing a monitoring solution) on the second screen.

If somebody minimizes the browser or Crtl-D is pressed the monitoring solution isn't on the screen anymore.

That's not unexpected but unwanted.

I've been looking for a solution that prevents that or is checking the window state and restore the browser window if minimized.

But the script does not do the trick.

I tried:

Local $hWnd = WinGetHandle("[CLASS:MozillaWindowClass]")
    WinActivate($hWnd)

in a loop.

Worked fine if another window is put over the browser but does not change the minimized state.

Also

  WinSetState($hWnd,"",@SW_RESTORE)

does not make me happy.

Has anybody a solution for my problem?

Thank's in advance (for reading)

Edited by Reiner

Share this post


Link to post
Share on other sites
JLogan3o13

What about creating an embedded IE object in a GUI, and then disabling?

#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <WindowsConstants.au3>

Local $oIE = _IECreateEmbedded()
GUICreate("My Monitoring Solution", 640, 580, (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, $WS_OVERLAPPEDWINDOW + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
GUICtrlCreateObj($oIE, 10, 10, 620, 560)


GUISetState(@SW_SHOW)
GUISetState(@SW_DISABLE)

_IENavigate($oIE, "http://www.google.com")


While 1
    Sleep(100)
WEnd

GUIDelete()
Exit

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×