vbscript code

vbscript code

Hi, I'm using DesktopX shareware version.

I want to position an object right on top of the taskbar using the following code, object.Bottom = system.ScreenHeight - taskbar.Height. Not sure what the correct syntax is for the taskbar.Height should be. Is this possible with vbscript?

Thanks

4,443 views 3 replies
Reply #1 Top
Nope. There is Taskbar object in DesktopX. Nor in VBScript. Not sure if it's even possible to obtain the height through the registry.

All though, you could possible use System.WorkareaBottom as a substitute. But that assumes that the taskbar is at the bottom. If the taskbar moves the script doesn't know.
Reply #3 Top
IN the DX API's there are 2 desktop size functions. One is to get the entire desktop size, the other is to get the working area which is basically the desktop height minus the taskbar height. If you use that you'll get what you want. If you can't find the API just post back here and I'll look it up but it's very easy to find.