Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Autohide the Windows XP taskbar


  • Please log in to reply
5 replies to this topic
Alangar Manickam
  • Members
  • 40 posts
  • Last active: Apr 17 2015 10:28 PM
  • Joined: 03 Oct 2007
Hi all,
Please help me to create a macro to toggle the windows xp taskbar on and off. That is: make it to auto hide on and off.

Eg hot key can be: pressing Win+C to autohide the taskbar and Win+B to bring back to normal position.

Please help.....


Thanks all....
Alangar Manickam, Bangalore, India

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
Vanakkam.

#C::WinHide ahk_class Shell_TrayWnd
#B::WinShow ahk_class Shell_TrayWnd

:)

  • Guests
  • Last active:
  • Joined: --
Please help me to turn off and on the auto hide feature alone for the windows xp taskbar.

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

Please help me to turn off and on the auto hide feature alone for the windows xp taskbar.


Please use a nick Manickam!

/*

SHAppBarMessage Function : http://msdn2.microsoft.com/en-us/library/ms647647.aspx
ABM_SETSTATE Message     : http://msdn2.microsoft.com/en-us/library/bb787961.aspx
APPBARDATA Structure     : http://msdn2.microsoft.com/en-us/library/ms538008.aspx

Minimum OS: XP 

*/

ABM_SETSTATE    := 10

ABS_NORMAL      := 0x0
ABS_AUTOHIDE    := 0x1
ABS_ALWAYSONTOP := 0x2

VarSetCapacity( APPBARDATA , 36, 0 ) 
Off :=  NumPut(  36, APPBARDATA    ) 
Off :=  NumPut( WinExist("ahk_class Shell_TrayWnd"), Off+0 )

#F4::
 NumPut( ABS_ALWAYSONTOP, Off+24 )
 DllCall("Shell32.dll\SHAppBarMessage", UInt,ABM_SETSTATE, UInt,&APPBARDATA ) 
Return

#F5::
 NumPut( ABS_AUTOHIDE|ABS_ALWAYSONTOP, Off+24 )
 DllCall("Shell32.dll\SHAppBarMessage", UInt,ABM_SETSTATE, UInt,&APPBARDATA )
Return

:)

jak
  • Members
  • 159 posts
  • Last active: Dec 16 2010 11:26 PM
  • Joined: 28 Feb 2006
skan - i know this is from way back, but its not working for me... specifically i'm also trying to toggle 'alwaysontop' for the taskbar. F5 in the above example isnt doing anything.. any ideas?

(note i'm not trying to hide/unhide the taskbar, but rather i'm trying to toggle alwaysontop).

I'm using winxp, sp3. Also, as far as any combination of winset/winhide/winshow -- they only make the bar invisible, but they dont allow me to maximize windows to full screen. They keep a blank space at the bottom of the screen where the taskbar used to show up. I want to be able to make other windows fullscreen, hence I'm trying to make the taskbar toggle alwaysontop and not just become invisible...

thanks for any help...

knesl
  • Members
  • 1 posts
  • Last active: Jun 24 2014 09:45 PM
  • Joined: 29 Oct 2013

Thanks SKAN, works smoothly on Win 7