# **********************************************************************
# Code used to get GUI Map info
#
# Use GUI Map Editor to learn Notepad
# **********************************************************************

	set_window ("Untitled - Notepad", 1);
	win_activate ("Untitled - Notepad");

	rc1 = obj_mouse_click ("Edit", 215, 132, RIGHT);
	wait(0,250);

	i = 0;
	while (menu_get_desc ("{class: menu_item, index: " & i & "}", "class label", "class_index", "index", desc) == E_OK)
	{

		# Add the menu description to the new buffer.

		rc1 = GUI_add ("", "Untitled - Notepad", "menu_" & i, desc);
		i++;
		rc1 = obj_mouse_click ("Edit", 215, 132, RIGHT);
		wait(0,250);
	}

# You should rename the "menu_x" objects in the GUI map.
# So it is easier to use them.
# **********************************************************************
