Seite 1 von 1

Request: Remove leftover window when minimizing

Verfasst: Do 25. Dez 2008, 03:21
von Eyahlin
A very Merry Christmas to everyone!

I would just like to report this small bug (if you may call it that way) since way back. Sometimes, a little while after using MPE, I see something like this at the bottom half of my desktop:

Bild

The black screen there is my desktop (I'm minimalist, hehehe). The small weird grey screen on top of the "FJ Software" taskbar window is exactly what I'm talking about. I know it's from MPE because when I close MPE, the grey window disappears as well.

Can it be removed?[/img]

Re: Request: Remove leftover window when minimizing

Verfasst: Do 25. Dez 2008, 03:27
von Gast
Eyahlin hat geschrieben: Bild
Whoops. Image is too small. Here's a bigger version:

Bild

Verfasst: Do 25. Dez 2008, 03:39
von Eyahlin
Okay, that still didn't work. :P Let's try again. CLICK THIS for the properly-scaled image.

Verfasst: Do 25. Dez 2008, 16:33
von FJ
Can you give me some more infos when it happens so its easier for me to reproduce it ?

Does the bar appear while using MPE or directly after starting ?

Verfasst: Mi 7. Jan 2009, 04:23
von Eyahlin
FJ hat geschrieben:Can you give me some more infos when it happens so its easier for me to reproduce it ?

Does the bar appear while using MPE or directly after starting ?
The bar appears while using MPE. It usually appears when I attempt to minimize the main window. I'm using a keyboard shortcut utility which allows me to minimize any window using a hotkey instead of having to use the mouse the click on the minimize button.

From what I've observed, MPE seems to create an invisible window which doesn't appear in the taskbar. I think this is the window that gets minimized to the small grey rectangular window at the lower left when I use my hotkey.

Thanks!

Verfasst: Mi 7. Jan 2009, 07:12
von FJ
You mean "Minimize to Taskbar" and not "Minimize to tray" ?
Does it also happen if you minimize th window with the mouse and if no - which shortcut-utility you are using ?

Re:

Verfasst: Sa 10. Jan 2009, 16:18
von Eyahlin
FJ hat geschrieben:You mean "Minimize to Taskbar" and not "Minimize to tray" ?
Does it also happen if you minimize th window with the mouse and if no - which shortcut-utility you are using ?
Yes, I meant "Minimize To Taskbar". I wrote the hotkey myself using AutoHotkey. It just sends a WM_MINIMIZE to the current window.

It *rarely* happens when I click on it normally using a mouse.

Verfasst: Sa 10. Jan 2009, 16:23
von Eyahlin
I think what's happening here is that MPE creates an "invisible window" when it is minimized. Since it's invisible, it can rarely be affected by normal mouse clicks, because there is no minimize icon to click. I think what is happening is that my hotkey "sees through" the invisible window, so it minimizes it in a more low-level manner using WM_MINIMIZE. What do you think?

Verfasst: Sa 10. Jan 2009, 19:22
von FJ
There is only one invisible window - the splash-screen which stays loaded cause of technical reasons. But its set to invisible, so it should not appear.

I downloaded and installed AutoHotkey, could you please send me your script ? If i can reproduce it then it should be also fixable.

Verfasst: Mo 19. Jan 2009, 05:58
von Eyahlin
Thanks!

Please create a new script. Here is the source code:

Code: Alles auswählen

#SingleInstance force
#NoEnv
SendMode Input

MButton::PostMessage 0x112, 0xF020, , , A
This simple script just assigns the Middle button of your mouse to minimize the current window. After saving the script, double-click it to run.

Then please start MyPhoneExplorer. Send a new text message, and AFTER xxx the "Send" button, while the "Send message" progress indicator dialog is still flashing, click on your Middle mouse button to minimize it. The window should minimize to a grey rectangular box as I've showed.

Thanks!

Verfasst: Di 27. Jan 2009, 03:44
von Eyahlin
Hi!

Any developments?

Verfasst: Di 27. Jan 2009, 18:10
von FJ
Sorry, i will check it today....

Verfasst: Di 27. Jan 2009, 20:51
von FJ
Puuh it was alot of work.

The problem: Some controls of MPE (Listview, Explorerbar and DateTimeEditors) wrap original Windowclasses. cause of this they create unvisible windows to handle the messages. The problem is that i did not write this controls and so i cannot fix it directly. But i have a workaround for you:

Code: Alles auswählen

#SingleInstance force 
#NoEnv 
SendMode Input 

MButton::
WinHide, ahk_class Static
PostMessage 0x112, 0xF020, , , A 
return
With this script the unliked window gets hided and the post-message follows to the next active window.

Verfasst: Mi 28. Jan 2009, 17:23
von Eyahlin
I understand.

Thanks for all your efforts in "fixing" the "bug", even if it's already beyond your scope. I appreciate the workaround that you've incorporated in my script.

However, the error still persists. I recompiled the script with your suggested, and the rectangular bar still appears. The WinHide command fails to "hide" the invisible Static windows.

Maybe there's an easier way to fix it? Do the invisible windows really have to be created? Is there a way to separate the GUI section from the backend?

Verfasst: Mi 28. Jan 2009, 18:42
von FJ
Strange - i tried this script several times and it worked - on Windows Vista.

As is said: I have no control about those windows, cause they are created from the compiled controls i use. To be honest - i did not know about those windows until yesterday.

Verfasst: So 1. Feb 2009, 11:00
von Eyahlin
Okay. Thanks a lot for your efforts!

Verfasst: So 1. Feb 2009, 16:56
von FJ
I think i have another solution now: MPE hides this static window now after startup. It should work now with the original AutoHotkey-Script. Please try it with the current beta and report if its working: http://www.fjsoft.at/files/MyPhoneExplo ... Update.exe