It records by the name of the object regardless of the location. By default always tester goes for OOR. (or) In object oriented mode Robot records mouse and keyboard operations with respect to objects/window's .like as context sensitive mode in Win Runner.
Through coding you can change a status of an object by using object scripting concept. Exaample - remembering password in the password field so that you don't have to enter the password whenever you sign in.
object scripting is nothing but changing the object property during execution by inspector option. In log in window option called REMEMBER PASSWORD inorder to check this kind options we go for object scripting.