Autohide taskbar in seamless mode

Discussions about using Windows guests in VirtualBox.
Post Reply
avih
Posts: 13
Joined: 3. Jan 2010, 16:59
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win, Linux, other
Contact:

Autohide taskbar in seamless mode

Post by avih »

Hi,

I'm using vbox 3.1.2 with windows 7 guest and I have a problem in seamless mode. I prefer to keep vbox running in seamless mode, without taking any screen real-estate while I'm using my host, and so I've turned the guest's autohide feature of the taskbar on. Theoretically it should both leave my host desktop clean, and keep the guest available when I move the mouse pointer to the side at which the guest's taskbar hides (left on my case, host's taskbar hides at the bottom).

It mostly works well, and the guest's taskbar properly autohides when the focus goes to a guest seamless window. But when there are no guest windows open, the taskbar sometimes keeps staying open. It's probably a combination of windows' behavior with the taskbar (when a [last] window is closed, open the taskbar) and vbox's seamless mode (one can't click the guest's desktop in this mode to close the taskbar).

So I've written a small quick'n'dirty .net application that sits at the (guest's) tray, and simulates a single mouse click at the middle of the desktop if no mouse activity is detected for 3 seconds, and the current active window doesn't have a title (usually indicates the taskbar). After it did one click, it won't do it again unless the mouse was moved.

I've put it on my guest autostart folder, and it does the trick well enough.

Usage:
- Just execute, either manually or automatically (by putting it at the startup folder)
- If, for some reason, the guest's taskbar doesn't close, it probably mean it isn't the active window, and you should just click an empty spot on it to make it active, and take the mouse away. It'll hide in few seconds.
- To exit: right click the tray icon and click "Exit"

Note:
If you have an application window open on the guest machine, it will get the mouse click (exact center of the screen). Hasn't been an issue for me though.

It's useful for me, so I share it here.

Feel free to do with it whatever you like, distribute it, etc.
Feedback is welcome.

Enjoy
Attachments
mouseofftbar2.zip
Autohides windows taskbar when mouse is idle by simulating a single mouse click at the center of the screen.
(14.86 KiB) Downloaded 164 times
Browse smoothly with the SmoothWheel extension for Firefox.
Machine spec.: E8400/4G/GTX260+/XP32/SP3
Post Reply