topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday October 3, 2024, 2:28 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Hide Taskbar on Desktop  (Read 3380 times)

moeez25041993

  • Participant
  • Joined in 2020
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
Hide Taskbar on Desktop
« on: January 22, 2020, 07:05 AM »
Hi... I need your guys help. I currently am using SmartTaskbar application and it is working fine for me but I do not like the behavior of it, means that i wanted it to do something like:
When I go to the Desktop by clicking Aero Peek button or if all windows are in restore position, the Taskbar, it should hide the Taskbar whereas when using any application in Maximized window, it should unhide the taskbar. Right now, the case is vice versa i.e. when I go to the Desktop, it unhides the Taskbar whereas when using any application, it hides.
Please help me out so that I can alter this functionality. Screenshots of current screen are attached. Thank you.

Taskbar Visible
Taskbar Hidden

Although it's source code in available on Github but I am no Tech-Guy so I do not understand which file to modify and what to modify. Please help me out. If there is any alternate you guys can devise, it would be such a great help. Thank You.

Sorryformyen

  • Participant
  • Joined in 2019
  • *
  • default avatar
  • Posts: 10
    • View Profile
    • Donate to Member
Re: Hide Taskbar on Desktop
« Reply #1 on: February 17, 2020, 12:05 PM »
I don't know SmarTaskbar, but using Autohotkey (AHK) you can get 3 behaviors for the Windows taskbar, one of which may be what you expect.

1º - AHK Code for hide/show the Taskbar with a key combination
!t::     ;"!" is Alt key and "t" is T key 
   WinExist("ahk_class Shell_TrayWnd")
   t := !t
   If (t = "1") {
      WinHide, ahk_class Shell_TrayWnd     ;hiding Taskbar
      WinHide, Start ahk_class Button     ;hiding Start button
   } Else {
      WinShow, ahk_class Shell_TrayWnd     ;unhiding Taskbar
      WinShow, Start ahk_class Button     ;unhiding Start button
   }
return

2º - AHK Code for keep the Taskbar hiden if your program is active.
Loop
{
IfWinActive, SmartTaskbar.exe     ;I guessed the EXE name, but you will have to make sure of that.
WinHide, ahk_class Shell_TrayWnd     ;hiding Taskbar
WinHide, ahk_class Shell_TrayWnd     ;hiding Taskbar
}
Return

3º - AHK Code for keep the Taskbar displayed if any other program is active, except yours.
Loop
{
IfWinNotActive, SmartTaskbar.exe     ;I guessed the EXE name, but you will have to make sure of that.
WinShow, ahk_class Shell_TrayWnd     ;displaying Taskbar
WinShow, ahk_class Shell_TrayWnd     ;displaying Taskbar
}
Return
« Last Edit: February 17, 2020, 12:30 PM by Sorryformyen »