Sign in to follow this  
Followers 0
ezzetabi

Hide the taskbar automatically.

12 posts in this topic

There is a way you know for hiding the taskbar automatically via Autoit?

Both setting on Autohide or just moving it down the the border of the screen ways are ok...

Just I can't find a way to autoit this thing.

Thanks!

Share this post


Link to post
Share on other sites



This works on Windows XP Home SP2. Sets the taskbar to AutoHide.

Opt("WinTitleMatchMode", 4)
ControlClick("classname=Shell_TrayWnd", "", "Button1", "Right")
ControlSend("classname=Shell_TrayWnd", "", "Button1", "r")
WinWait("Taskbar and Start Menu Properties")
ControlCommand("Taskbar and Start Menu Properties", "", "SysTabControl321", "TabLeft", "")
ControlClick("Taskbar and Start Menu Properties", "", "Button2")
ControlClick("Taskbar and Start Menu Properties", "", "Button11")

Perhaps there is a registry "AutoHide" value which could be changed? That would be a better way perhaps, if there is such a value.

Kendall

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Here's a script I just made to hide the taskbar completely using a hotkey.

You can switch between visible, hidden using CTRL+ALT+H.

I don't know if that's what you want...

I bet you can make your own autohide script using WinMove.

The taskbar doesn't have a title but I found the classname.

(See my script below)

Global $hidden
$hidden = 0

HotKeySet("^!h", "SwitchState")

Opt("WinTitleMatchMode", 4)

While 1
    Sleep(100)
WEnd

Func SwitchState()
    If $hidden = 0 Then
        $hidden = 1
        WinSetState("classname=Shell_TrayWnd", "", @SW_HIDE)
    Else
        $hidden = 0
        WinSetState("classname=Shell_TrayWnd", "", @SW_SHOW)
    EndIf
EndFunc

BTW:

Tested on Windows 2000 English version

Edited by SlimShady

Share this post


Link to post
Share on other sites

Yeah... I tried the same, but the windows do not use the task space... and this is my objective! :ph34r:

Share this post


Link to post
Share on other sites

Did you see lte5000's suggestion? That is the answer, but you can also use SlimShady's in conjunction to remove the small lip left at the bottom.


Who else would I be?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Yeah... I tried the same, but the windows do not use the task space... and this is my objective! :ph34r:

<{POST_SNAPBACK}>

Sorry... Edited by SlimShady

Share this post


Link to post
Share on other sites

Right click the taskbar, properties, UnCheck "keep the taskbar on top of other windows"

too-lazy to script it

You might also try

WinSetTrans ( "classname=Shell_TrayWnd", "", 0)

WinSetTrans ( "classname=Shell_TrayWnd", "", 255)


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Ok, Guys I read lte5000, but I was of course able to script a manual change of setting. But I have some problems, my script must work in more than one language. Also I'd prefere avoid seeing windows opening and closing.

I was wondering if there is a way that it is not just open the setting, change it and click Apply. Even the most noob can solve this way!

I'll try the tras idea... and also about it it may works also use the WinSetOnTop(), for deactivate the 'on top' and hide the control... mmn...

Share this post


Link to post
Share on other sites

What you have to do is have a program that sets the "Available desktop size" and THEN hide the bar. I have been looking for just such a program myself for some time, but have come up empty.


Who else would I be?

Share this post


Link to post
Share on other sites

What about this:

Opt('WinTitleMatchMode',4)
BlockInput(1)

$initpos = MouseGetPos()

MouseMove(@desktopwidth, @desktopheight,0)
$c = 0

While 1
   $c = $c + 5
   If $c > @desktopheight Then Exit
   MouseMove(@desktopwidth, @desktopheight - $c,0)
   If MouseGetCursor ( ) = 11 Then
      $pos = MouseGetPos()
      ExitLoop
   EndIf
   Sleep(2)
Wend

MouseClickDrag('Left',$pos[0],$pos[1],@desktopwidth, @desktopheight,0)
MouseMove($initpos[0],$initpos[1],0)
BlockInput(0)

:ph34r:

Share this post


Link to post
Share on other sites

MSDN says this:

"The taskbar supports two display options: Auto Hide and Always On Top. To set these options, the user must open the taskbar shortcut menu, click Properties, and select or clear the Auto Hide check box or the Always On Top check box. There is no way to set these options programmatically. To retrieve the state of these display options, use the ABM_GETSTATE message. If you would like to be notified when the state of these display options changes, process the ABN_STATECHANGE notification message in your window procedure.

The work area is the portion of the screen not obscured by the taskbar. To retrieve the size of the work area, call the SystemParametersInfo function with the SPI_GETWORKAREA value set. To retrieve the rectangle coordinates that describe the location of the taskbar, use the ABM_GETTASKBARPOS message."

So there is no registry entry way to change this.


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

I know you stipulated Autoit, but power-pro (pp) http://www.ppro.org can do this (and many other things!!) I use a combination of Autoit and pp to do a lot of my stuff, often running autoit exe's from a pp bar.

If power-pro was in memory you could run a pp script from autoit containing one line:

desktop hidshowtaskbar

If you haven't had a look a pp before, I totally recommend you do. There is an active yahoo group who count the author (Bruce Switzer) as a member and I know a lot of pp users are also members of this (autoit) forum. There has also been some attempt to include autoit functionality into pp but I have not investigated it (too busy at moment)

A totally awe-inspiring bit of software. I find it difficult using a pc without it (and autoit of course!!)

Steve

Edited by xircon

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