Doug,

Yes, I think I've done this several times, but I appreciate your help, and I
don't mind doing it again.

yes, it's the list view which Jeff and I cannot set focus to.  yes, it's the
list view I want.  yes, I've verified there is only one list view in a
windows explorer window, and it's the one I want, the list of files.

aside from my script, you can see this issue by doing what I laid out before
using Jamal's focus control script.

go to a windows explorer window.  set the focus to be any control other than
the list view.  press the ins-f9 hot key for focus control script.  it will
bring up a list of focusable controls in the active window.

when I choose the list view from this list, I get an error, which replicates
the error I am getting from my own "real" script, and from the "test"
example script.

all of these scripts are unable to set the focus to the list view control.

in my example script I needed to move focus away from the list view, so I
could show a failure setting focus back to it.  I simply did not understand
what you did when you ran with that and said it was the problem; I think you
said I could not just choose any control; it might not work?

so, I'm suggesting you do this part manually with my script by commenting
out the line which calls "setfocustosomethingelse", and manually choosing
some other control in the windows explorer window, alt-tabbing away, and
alt-tabbing back to the windows explorer window.

my test script will then try to set the list view control focus, and for me,
will fail.

Does this help?

thanks again,

Chip

Reply via email to