Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

How to set autohide of taskbar?

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

How to set autohide of taskbar?

Post by molitar »

Ok I been working with a Media Player Classic script with a maximize but when I maximize I wish to set the taskbar to auto-hide so the screen will truely be maximized. How can I do in EG?
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: How to set autohide of taskbar?

Post by Bartman »

you should put the player in fullscreen mode not maximize the window.
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: How to set autohide of taskbar?

Post by molitar »

Bartman wrote:you should put the player in fullscreen mode not maximize the window.
Well when I do fullscreen it goes to my HDTV.. I don't always want that.. so this method I can determine fullscreen on monitor or fullscreen on HDTV.. because using minimal view with maximization is the same as fullscreen.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: How to set autohide of taskbar?

Post by Pako »

For the hide and unhide of the taskbar you can use the following scripts:

Code: Select all

#Script Hide Taskbar
from win32gui import SetWindowPos
from ctypes import windll
TOGGLE_HIDEWINDOW = 0x80
handleTaskBar = windll.user32.FindWindowA("Shell_TrayWnd", "")
SetWindowPos(handleTaskBar, 0, 0, 0, 0, 0, TOGGLE_HIDEWINDOW)

Code: Select all

#Script Unhide Taskbar
from win32gui import SetWindowPos
from ctypes import windll
TOGGLE_UNHIDEWINDOW = 0x40
handleTaskBar = windll.user32.FindWindowA("Shell_TrayWnd", "")
SetWindowPos(handleTaskBar, 0, 0, 0, 0, 0, TOGGLE_UNHIDEWINDOW)
Pako
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: How to set autohide of taskbar?

Post by molitar »

Thanks again Pako for the help!
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: How to set autohide of taskbar?

Post by molitar »

Pako, this worked great but ran into one little snag.. one of the custom trays I am running won't auto hide and does not have a handle so I can hide it. But I did find if I set the Taskbar to auto-hide the hooked software will hide also so how can I toggle the Auto-Hide of the taskbar?
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: How to set autohide of taskbar?

Post by Livin »

Pako,
this would be a good Action for EG. Maybe you could ask Bitmonster to add it to the next released build?
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: How to set autohide of taskbar?

Post by Pako »

@molitar:
Well.
I made a small plugin with which you can control the taskbar.
I discovered, that in Windows 7 is no longer possible for the taskbar disable feature "Allways On Top".
Thus, even in my plugin are these options only available in earlier versions of Windows.

@Livin:
No comment.

Pako
Attachments
__init__.py
Plugin Taskbar - version 1.0.0
(8.23 KiB) Downloaded 260 times
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: How to set autohide of taskbar?

Post by molitar »

Pako wrote:@molitar:
Well.
I made a small plugin with which you can control the taskbar.
I discovered, that in Windows 7 is no longer possible for the taskbar disable feature "Allways On Top".
Thus, even in my plugin are these options only available in earlier versions of Windows.

@Livin:
No comment.

Pako
Excellent thanks.. yeah Microsoft just keeps making windows have less and less customizations.. IE lost it's customization, taskbar lost it's, classic start menu gone unless you use classic shell 3rd party software to get it back. Thanks for the plugin.
Post Reply