Jump to content

I need to hide the task bar


MCP
 Share

Recommended Posts

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...
Link to comment
Share on other sites

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]
Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

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
Link to comment
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.

Link to comment
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.
Link to comment
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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...