nend Posted March 10, 2011 Share Posted March 10, 2011 Is it possible to detected of the taskbar is visible? I meant not minimize, but to detected of there is a window on top on to the taskbar? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 10, 2011 Moderators Share Posted March 10, 2011 nend, Are you asking how to detect if the taskbar is hidden or visible? If so, this thread should give you the answer. If not, could you please explain more clearly what it is you are trying to do. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
nend Posted March 10, 2011 Author Share Posted March 10, 2011 (edited) @melba23, I’m sorry for my poor explanation (English is not my native language) . What I meant to say is when you play a game or watch a movie the game/movie gets full screen and the taskbar is there but he is not visible. Is it possible to detect that there is another window that cover-up the taskbar? I hoop you understand my explanation. nend, Are you asking how to detect if the taskbar is hidden or visible? If so, this thread should give you the answer. If not, could you please explain more clearly what it is you are trying to do. M23 Edited March 10, 2011 by nend Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 10, 2011 Moderators Share Posted March 10, 2011 nend, I’m sorry for my poor explanation (English is not my native language)No need to apologise - I just wanted to be sure that I answered the correct question. I would get the size of the active window and check it against @DesktopWidth and @DesktopHeight like this: While 1 ; Resolution might be changed so check each time $iW = @DesktopWidth $iH = @DesktopHeight ; Get GUI size $aPos = WinGetPos("[ACTIVE]") ; Just for testing ConsoleWrite($aPos[2] & " - " & @DesktopWidth & @CRLF) ConsoleWrite($aPos[3] & " - " & @DesktopHeight & @CRLF) ; Does the active GUI fill the screen If $aPos[2] >= $iW And $aPos[3] >= $iH Then SplashTextOn("Active", "FullScreen") ConsoleWrite("FullScreen" & @CRLF) Else SplashTextOn("Active", "Not FullScreen") ConsoleWrite("Not FullScreen" & @CRLF) EndIf ; Allow splash to be seen Sleep(2000) SplashOff() ; Set this to a suitable value to check at intervals Sleep(5000) WEnd That works for me with fullscreen streaming video. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
nend Posted March 10, 2011 Author Share Posted March 10, 2011 @melba23, Thanks it works perfectly. So simple but I just could not come up with this. I was looking (and trying) for this for a long time. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 10, 2011 Moderators Share Posted March 10, 2011 nend,Alstublieft! 7M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area 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