WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Vista

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

253 Unable to Attach to Window

 Keywords: cSetFocus Roboscripter Control Manager Extender wwctl44i.dll 

Question:

I am using Roboscripter to try to navigate thru some windows. I am running Windows Vista with SP1. I am running under local admin acct. However, something simple as "CSETFOCUS" returns
wilextender error 253: unable to attach to window. 
I upgraded to 2008c to insure i have your latest code.But no matter what i do i get the same error, any ideas?

Answer:

Is UAC enabled on your system? If UAC is enabled, is your script running with elevation? Is the application that you're trying to control running with elevation? If the answers to those questions are, respectively, yes, no and yes, the problem that you are encountering is to be expected.

When UAC is enabled, the windows of apps running with elevation have more restrictive security settings applied to them which prevents apps running w/o elevation from interrogating or manipulating their windows. In the case of the Control Manager extender, it is directly affected by these differences in window security.

One of the requirements that Vista's User Account Control (UAC) puts on developers is that you must mark your applications with a 'manifest' to declare if the application would like to run elevated or not. This can complicate matters when trying to develop and debug scripts using WinBatch, WinBatch+Compiler and WinBatch Studio.

We have made available various WinBatch tools with all the possible manifest setting combinations.

The Control Manager Extender functions require the manifest uiAccess setting to be set to TRUE.

Search for 'Manifest' in the Consolidated WIL help file for details.


Article ID:   W18425
Filename:   253 Unable to Attach to Window.txt
File Created: 2012:11:26:09:57:24
Last Updated: 2012:11:26:09:57:24