Chip,

Okay I've jumped through all your hoops and still can't find a problem.

1) I loaded Homer and I loaded the Focus control script. I'm in Windows Vista SP3 (32-bit). I bring up Windows Explorer. I tab to the treeview and press insert-f9. I get a dialog with a listbox.with 27 items but only one listview. I get on the listview item and hit enter and poof, the listivew gets focus and the items reads as it should.

2) I loaded your first test program and already reported the successful results from that.

3) I loaded your second test program and when I activate the Windows Explorer with the listview already in focus I hear:

setting the focus to something else
search edit box
setting the focus to the listview control
blah where blah is the listview item.

If I activate Windows Explorer with the listview not in focus I hear:

setting the focus to the listview control
blah where blah is the listview item

So in all three hoops I got exactly what I should so my bet is you have some other control that is running causing problems. For example when I first did the test with Jamal's Focus control script I forgot to disable your test script and of course that caused problems. But when I disabled your test script then Focus control worked perfectly.

Since Aaron has tried this on two machines and I have beaten up this Vista machine with several different tests and neither of us can get it to fail I think it points to something unique on your system and others as well and as I mentioned, I'm betting on other scripts fighting. I suggest turning off all scripts except the one you are testing and obviously the scripts they may be dependent on.

Regards,
Doug


Chip Orange wrote:
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


--
Doug Geoffray
GW Micro, Inc.
Voice 260-489-3671
Fax 260-489-2608
http://www.gwmicro.com

Reply via email to