on 11-16-2011 6:58 PM
I can not seem to get the syntax correct for either of these commands.
I have a script and I am trying to determine the inout field where the cursor is placed.
my code looks something like this now, but it is obviously not correct:
msg = session.findbyid("wnd[0]").systemfocus
I am not trying to SET the focus, only determine where the field name where the cursor resides.
Thank you,
Mike
Hello Mike,
try this:
Set Focus = session.ActiveWindow().GUIFocus()
MsgBox Focus.Name & vbCrLf & Focus.Id & vbCrLF & Focus.Type
I hope you get the information you need.
Cheers
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Stefan,
It is possible to know from the various components where is the focus?
The result is shown in the user area, there are several GuiCheckBox I have to select what is to focus, but for that I have to get your ID.
Scripting Tracker - Analyser:
Object type: GuiCheckBox (42)
ID: /app/con[0]/ses[0]/wnd[0]/usr/chk[1,7]
Thank you very much.
Cheers.
Márcio.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.