Sign in to follow this  
Followers 0
nend

Is it possible to detected of the taskbar is visible?

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



nend,

Are you asking how to detect if the taskbar is hidden or visible? :)

If so, this thread should give you the answer. :P

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

@melba23,

I’m sorry for my poor explanation (English is not my native language)Posted Image .

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. :P

If not, could you please explain more clearly what it is you are trying to do. :)

M23

Edited by nend

Share this post


Link to post
Share on other sites

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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  
Followers 0