Sign in to follow this  
Followers 0
Tukata

Hide/Show TaskBar

6 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

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.


[center]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.[/center]

Share this post


Link to post
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

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