On May 12, 11:40*am, Tony Logan <TonyLo...@xxxxxx>
wrote:
> "Pegasus [MVP]" wrote:
> > The Sendkeys method should only be used as a very last resort. Scripts that
> > use it are inherently unstable because the Sendkeys method can get derailed
> > for many reasons, most of which are unpredictable. >
> > If you want your PCs to use the Windows XP start menu style then you must
> > locate the registry key that dermines this mode. Using Sendkeys is a waste
> > of time. >
> Thanks, Pegasus. Guess the users aren't getting the XP Start Menu then...:-)
>
> I've isolated the reg keys that will make the change, but the problem with
> that method is that I have to log off the user and reboot the PC in orderfor
> the changes to take effect and actually change the appearance of the Start
> Menu, which isn't an acceptable solution. So I think I'll recommend sticking
> with the Classic Start Menu, and just adding some requested shortcuts on the
> user's desktops and possibly in Start\Programs as an alternate solution.
>
> So, just out of curiousity, can VBScript be used to determine what items
> (tabs, radio buttons, etc.) are selected in a dialog, or is that more of a
> Visual Basic thing? VBScript cannot detect anything about the currently active dialog.
Using trial and error against possible candidates can make a
particular dialog window the active one, but that's not really the
same thing, though it can sometimes be useful.
However, in this case, it would appear that more horsepower than WSH
can deliver is needed. There is a free third party control - AutoItX
out on the 'net that can provide the name of the tab, I think. In
addition, when MS Office is on a machine, its VBA functions and
objects can be highjacked by script to perform extended function, like
calling the Windows API. With the right knowledge of the API, nearly
anything is possible; maybe even refreshing the Taskbar properties
without rebooting after altering the registry. Unfortunately, other
than knowing that these things exists, I don't possess the knowledge
you'd need to accomplish your current goal. Maybe more research on
these subjects can turn up your solution.
Tom Lavedas
***********