Jump to content

Looking to hide taskbar button(s)


Recommended Posts

I'm looking for something similar but the code in this thread isn't working for me.
Say for example I'm looking to hide Notepad from the taskbar and make it have all it's options in the tray instead. I got the tray side of things working but still can't get rid of the taskbar button (you know, where it minimizes to).

Can anyone shed some light on an up-to-date script for this? Maybe the above doesn't work in Windows 7 / 8 & 10. Many thanks in advance.

Edited by Melba23
Link to comment
Share on other sites

  • Moderators

snomi,

When you posted in the above linked thread, did you notice that the last post dates from over 10 years ago?

Please do not necro-post like this again - just open a new thread and link to the old one ( like I have now done for you) if it is absolutely necessary for understanding the problem. We ask you to do this for two main reasons:

- 1. The language advances and the functionality might well be included in core or UDF code by now

- 2. The changes in language syntax mean that it is likely that code from more than a couple of years ago may well not run under the current release interpreter without significant modification.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

I'm aware I brought up an old topic, I'm sorry for resurrecting such an old thread and I'm sorry for doing it incorrectly; this stuff is going to happen when people use search engines. However, I am still in need of some advice regarding the topic.

Link to comment
Share on other sites

I'm aware I brought up an old topic, I'm sorry for resurrecting such an old thread and I'm sorry for doing it incorrectly; this stuff is going to happen when people use search engines. However, I am still in need of some advice regarding the topic.

​no - this stuff happens when people do not read when the thread was created that they end up necroing. .

Link to comment
Share on other sites

Almost there. But I want to do this for another application so say for example Notepad. I found something that almost does it but it also hides the Notepad window completely. 

 

Edit: not sure what happened to the quote there but I did leave it intact.

Edited by Jon
Forum broke the quote.
Link to comment
Share on other sites

One way is to use ObjCreateInterface : look at the help file, the example does exatly what you want.

​That seems to do the trick. Thanks. Although as an experimental feature I can only hope it stays :D

Link to comment
Share on other sites

I'm having trouble finding further documentation for this. So far I have the following:

$oTaskbarList.DeleteTab($windowhandle)

That deletes the item from the taskbar which is great but I can't seem to find a way to bring it back again. Is that even possible after it's been deleted?

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