Jump to content

Recommended Posts

Posted (edited)

I need to write a script to resize the taskbar. I've searched the forums and found methods

to determine the state/size of the taskbar but I still haven't been able to figure out how to resize it.

Here is the code that I have tried (without success):

AutoItSetOption("WinTitleMatchMode", 4)
WinMove("classname=Shell_TrayWnd","",0,734,1024,34)
Edited by mark2004
Posted

If you look at HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\Components\0 the Position value you can see how the binary data changes as you resize the taskbar and refresh the regedit window. You could probably write a script to manipulate this and then refresh explorer.exe. Infact, I modified the value, killed explorer and restarted it, and my new taskbar size took effect, so there's no doubt you can do this. Whether or not this can mess up anything though, I don't know. I'd test more, but I dont' want to screw up any of the workstations here at work. heh.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...