Sign in to follow this  
Followers 0
MCP

I need to hide the task bar

17 posts in this topic

Is there a registry key or what I can set to make the dekstop taskbar disappear? Iwould like to change its settings according to my script.

Thanks in advance.

Share this post


Link to post
Share on other sites



Don't want your wife to find it?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Opt('WinTitleMatchMode', 4) 
WinSetState("classname=Shell_TrayWnd", "", @SW_HIDE)
Sleep(5000)
WinSetState ( "classname=Shell_TrayWnd", "", @SW_SHOW)

EDIT: I think that's what you want...

EDIT2: Forgot the Opt

Edited by Piano_Man

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

ControlHide will hide it.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

You use Google for your AutoIt related searches??

Not usually. I guess I'm used to looking for VB versions of scripts first. It's bass ackwards, I know.

Share this post


Link to post
Share on other sites

Opt('WinTitleMatchMode', 4) 
 WinSetState("classname=Shell_TrayWnd", "", @SW_HIDE)
 Sleep(5000)
 WinSetState ( "classname=Shell_TrayWnd", "", @SW_SHOW)

EDIT: I think that's what you want...

EDIT2: Forgot the Opt

Yes, this does the trick, but what I am looking for is to change the setting so that the taskbar becomes sensible to the mouse and comes up when you are in its neighborhood and goes away as soon as you leave it...

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Well, just combine what I have with a simple mouse checking position.

Something like this:

Opt('WinTitleMatchMode', 4)
While 1
$pos = MouseGetPos()
If $pos[0] > @DesktopWidth - 25 then
WinSetState ( "classname=Shell_TrayWnd", "", @SW_SHOW)
Else
WinSetState("classname=Shell_TrayWnd", "", @SW_HIDE)
EndIf
Sleep(40)
WEnd

EDIT: Tested it... note I use a taskbar on the side

Edited by Piano_Man

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

What's wrong with the taskbar Auto-Hide feature?


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

Well, just combine what I have with a simple mouse checking position.

Something like this:

Opt('WinTitleMatchMode', 4)
  While 1
  $pos = MouseGetPos()
  If $pos[0] > @DesktopWidth - 25 then
  WinSetState ( "classname=Shell_TrayWnd", "", @SW_SHOW)
  Else
  WinSetState("classname=Shell_TrayWnd", "", @SW_HIDE)
  EndIf
  Sleep(40)
  WEnd

EDIT: Tested it... note I use a taskbar on the side

Wow... I am really impressed <_<

EDIT: I know this is not my field cos I am a systems engineer, but you guys of this great community make me feel a complete newbie... Jeez!!

Edited by MCP

Share this post


Link to post
Share on other sites

Right click Taskbar -> Properties

Posted Image

Seriously, what's wrong with this thread? Why duplicate standard winblows functionality?


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Right click Taskbar -> Properties

Posted Image

Seriously, what's wrong with this thread? Why duplicate standard winblows functionality?

They say imitation is the highest form of flattery. I say Bill Gates head is big enough.

Share this post


Link to post
Share on other sites

Right click Taskbar -> Properties

Posted Image

Well, I know this flag, but I do not know if it corresponds to a registry key I can toggle: thus, at the moment, the solution provided by Piano_Man is the only one that works from inside my app.

Share this post


Link to post
Share on other sites

Well, I know this flag, but I do not know if it corresponds to a registry key I can toggle: thus, at the moment, the solution provided by Piano_Man is the only one that works from inside my app.

It's very simple to check if it's a registry key or not. You should look for sysinternals (now belongs to Microsoft) tool called regmon. You start it, then you change something and monitor what has changed in registry <_< Simple as that.


My little company: Evotec (PL version: Evotec)

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