Reiner Posted February 11, 2015 Posted February 11, 2015 (edited) 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 February 11, 2015 by Reiner
Moderators JLogan3o13 Posted February 11, 2015 Moderators Posted February 11, 2015 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 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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