Skip to Content
Former Member
Nov 16, 2011 at 06:58 PM

SAPGui Scripting SystemFocus or GUIFocus.


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,