Is there a way to determine which object has focus
I am using SetFocus() to set focus on an HtmlLink, and then using TypeKeys("<Tab>") to traverse the tab order, looking for a particular link. I need to get each object's caption and class. When I find the link I want, I can then click it. Does anyone know how to do this? GetFocus() does not work, as an HtmlLink is not considered an input control. Does Silk have any way of providing the window name of the object that currently has the focus? Without this information, I have no object upon which to make a GetClass() or GetCaption() call.
Re: Is there a way to determine which object has focus
try sorting this way i.e. Get all HTML links in a list & compare with one you want.
1.use Getchildren() of for a window & store all objects in a list
2.use Getclass() for these objects & store objects havng class HTMLlink in one more list.
3.Now you can do any action desired on these links.