Jump to content

Hide/Show TaskBar


Tukata
 Share

Recommended Posts

Hi,

I need a simple script to Show/Hide TaskBar and hope someone has done it before.

I want also to send a Command Line: 0=Hide , 1=Show

like this:

Compiled.exe , 0

Compiled.exe , 1

TaskBar must not show if another application is open while hidden.

Thanks in advance

Tuk

Edited by Tukata
Link to comment
Share on other sites

i think the autoit flags used are:

@SV_HIDE

@SV_SHOW

if you used this instead of the 0,1 it might make a difference but i dont know. i'm only starting to get into autoit programming, and i've just finished my 1st prog but it didnt have any hiding or anything in it so this is just a guess

Link to comment
Share on other sites

Hi,

I need a simple script to Show/Hide TaskBar and hope someone has done it before.

I want also to send a Command Line: 0=Hide , 1=Show

Did you search the forum?

Anyway, this should work:

Opt("WinTitleMatchMode", 4);advanced classname match
If $CmdLine[0] =0 Then Exit;No command line parameters!
    
If $CmdLine[1] = 0 Then
    WinSetState("classname=Shell_TrayWnd","",@SW_HIDE)
Else;non-zero command line arg
    WinSetState("classname=Shell_TrayWnd","",@SW_SHOW)
EndIf
Edited by CyberSlug
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

Many many thanks.

Sure I searched the forum but found nothing :o

I have a question:

I added EXIT at the end of the script because I want to make two compiled scripts,

one to hide and one to show. They work like this:

If Param = 0 >>> Hide

If Param = 1 or 2 >>> Show

It is ok for what I need but I have a feeling I made it wrong.

Thank you

Tuk

Edited by Tukata
Link to comment
Share on other sites

  • Moderators

Doesn't hide the 'TaskBar' but it hides individual windows in the taskbar that are open, but looking at it you could have figured out I think... anyway http://www.autoitscript.com/forum/index.php?showtopic=21714 But, cyberslugs accomplishes exactly what your looking for.

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

It does hide the task bar.

I am a bit confused about the parameters because when I send 0 (zero) it hides the TB and when I send 1 or 2 it show TB. Is that the way it suposed to work ? Anyway this is what I needed, just want to learn.

Thank you

Tuk

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...