When you are editing a script, you can open an object map by right clicking on an object map entry in the script and selecting Open Silk4NET Asset. This will open the object map in the GUI.
// VB .NET code <TestMethod()> Public Sub TestMethod1() With _desktop.Window("Untitled - Notepad").TextField("TextField").TypeKeys("hello") End With End Sub
// C# code [TestMethod] public void TestMethod1() { Window untitledNotepad = _desktop.Window("Untitled - Notepad"); untitledNotepad.TextField("TextField").TypeKeys("hello"); }In the previous code sample, right-click Untitled - Notepad to open the entry Untitled - Notepad in the object map, or right-click TextField to open the entry Untitled - Notepad.TextField in the object map.