Forum Discussion
AlexKaras
12 years agoCommunity Hero
Hi Jinith,
Just a quick idea:
-- Either iterate through all controls on the given form and search for the one that is focused (control.Focused = True) and assume that this is the control used by the user; or
-- Create a User Form with the Object Picker control on it, ask a user to point to the object he/she was using and pass the selected object (or its full name) to your script.
Just a quick idea:
-- Either iterate through all controls on the given form and search for the one that is focused (control.Focused = True) and assume that this is the control used by the user; or
-- Create a User Form with the Object Picker control on it, ask a user to point to the object he/she was using and pass the selected object (or its full name) to your script.