Stickies
« Zbar phantom taskbar entries »

Welcome Guest. Please Login or Register.
May 29th, 2017, 2:00pm


Click to go to the
Zhorn Software Web Site
Click to go to the
Knowledgebase

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Zbar phantom taskbar entries  (Read 1230 times)
Paul
New Member
Image


member is offline

Avatar




PM


Posts: 4
xx Zbar phantom taskbar entries
« Thread started on: Jun 2nd, 2014, 03:43am »

When using Zbar with PowerGUI or PowerShellStudio i get phantom taskbar entries when the intellisense popup window appears.

User Image
User Image

When analysing the intellisense popup windows with the application "Window Detective", i got this information:

Class Name:
WindowsForms10.Window.8.app.0.3b95145_r16_ad1
WindowsForms10.Window.0.app.0.3b95145_r16_ad1
WindowsForms10.Window.8.app.0.3c47a4f_r16_ad1

Style: BS_HOLLOW

Hatch: HS_HORIZONTAL

I would appreciate it if you can fix this, so i don't have to close Zbar each time i have to script something.
User IP Logged

Paul
New Member
Image


member is offline

Avatar




PM


Posts: 4
xx Re: Zbar phantom taskbar entries
« Reply #1 on: Jun 2nd, 2014, 03:59am »

When i set the option "Leave Main Taskbar Alone", the phantom windows won't appear on the main monitor.
If i move PowerGUI to the second monitor, the phantom windows will appear when the intellisense popup windows appears.
User IP Logged

Tom Revell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 3540
xx Re: Zbar phantom taskbar entries
« Reply #2 on: Jun 2nd, 2014, 2:44pm »

In order to avoid catching those windows, either the need to behave according to MS guidelines (which would need you to get the other author to change how their app works!) or instead there needs to be a unique way to identify the windows which should be excluded.

The two things which ZBar can use to identify windows like that are the title and the class. The class you've posted is unfortunately a generic thing which the development environment puts out, and is likely shared by the rest of the windows which PowerGUI puts out, so that's no good. Can you use WD to see whether those windows have a title which is only ever used by them?

Tom
User IP Logged

Paul
New Member
Image


member is offline

Avatar




PM


Posts: 4
xx Re: Zbar phantom taskbar entries
« Reply #3 on: Jun 3rd, 2014, 02:37am »

Thanks for you're help! Unfortunately there is no unique window title to distinguish them.
However, i have a workaround now by keeping de application on my main monitor and having the option "Leave Main Taskbar Alone" turned on.

Paul
User IP Logged

zMike
New Member
Image


member is offline

Avatar




PM


Posts: 3
xx Re: Zbar phantom taskbar entries
« Reply #4 on: Sep 18th, 2014, 07:50am »

on Jun 2nd, 2014, 2:44pm, Tom Revell wrote:
In order to avoid catching those windows, either the need to behave according to MS guidelines (which would need you to get the other author to change how their app works!) or instead there needs to be a unique way to identify the windows which should be excluded.

The two things which ZBar can use to identify windows like that are the title and the class. The class you've posted is unfortunately a generic thing which the development environment puts out, and is likely shared by the rest of the windows which PowerGUI puts out, so that's no good. Can you use WD to see whether those windows have a title which is only ever used by them?

Tom


Tom, sorry to bring this up again, but I have the same problem, but with an application I have written myself in Visual Studio 2010. Child windows have "ShownInTaskbar" set as "False", but they are still showing up in ZBar

I will be happy for you to contact me directly if you want to play around with any settings or testing.
I have written a very simple application if you want it. It has two buttons: one to show a form with a taskbar button and one without.

I have used "Window Detective" to check the differences, and all I can see is that the one that should be shown has "WS_EX_APPWINDOW" as an Extended Style, the other does not.
User IP Logged

Tom Revell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 3540
xx Re: Zbar phantom taskbar entries
« Reply #5 on: Sep 21st, 2014, 10:35am »

This is probably a good thing to read:

http://stackoverflow.com/questions/2262726/determining-if-a-window-has-a-taskbar-button

The short version is that MS don't provide a way to ask the task bar what buttons it's showing. This means that ZBar has to guess based on the rules you can see detailed on that page, and also perhaps this one:

http://msdn.microsoft.com/en-gb/library/windows/desktop/cc144179(v=vs.85).aspx

The exact rule set which ZBar uses is:

if a window is not visible then don't show it ever
if the window is visible: if it (has WS_EX_APPWINDOW), or (has no parent and is not a tool window), then show it.

Does that help explain what you're seeing?

Tom
User IP Logged

zMike
New Member
Image


member is offline

Avatar




PM


Posts: 3
xx Re: Zbar phantom taskbar entries
« Reply #6 on: Sep 22nd, 2014, 05:12am »

That does help.

I am seeing a toolbar item being shown though for a window without "WS_EX_APPWINDOW". It does have a parent. The window style is set to "FixedDialog"
User IP Logged

Tom Revell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 3540
xx Re: Zbar phantom taskbar entries
« Reply #7 on: Sep 22nd, 2014, 12:32pm »

You said you've got a little test exe - can you send that to me so I can look to see what's going on with it please?

Tom
User IP Logged

zMike
New Member
Image


member is offline

Avatar




PM


Posts: 3
xx Re: Zbar phantom taskbar entries
« Reply #8 on: Sep 23rd, 2014, 04:14am »

Sent
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls