OverviewExamples
number Page.GetObjectType ( |
Returns the "type" of a given object on a page.
(string) The name of the object.
(number) One of the following values representing the "type" of the object:
CONSTANT |
VALUE |
DESCRIPTION |
OBJECT_BUTTON |
0 |
Button object. |
OBJECT_LABEL |
1 |
Label object. |
OBJECT_PARAGRAPH |
2 |
Paragraph object. |
OBJECT_IMAGE |
3 |
Image object. |
OBJECT_FLASH |
4 |
Flash object. |
OBJECT_VIDEO |
5 |
Video object. |
OBJECT_WEB |
6 |
Web object. |
OBJECT_INPUT |
7 |
Input object. |
OBJECT_HOTSPOT |
8 |
Hotspot object. |
OBJECT_LISTBOX |
9 |
Listbox object. |
OBJECT_COMBOBOX |
10 |
Combobox object. |
OBJECT_PROGRESS |
11 |
Progress object. |
OBJECT_TREE |
12 |
Tree object. |
OBJECT_RADIOBUTTON |
13 |
RadioButton object. |
OBJECT_RICHTEXT |
14 |
RichText object. |
OBJECT_CHECKBOX |
15 |
CheckBox object. |
OBJECT_SLIDESHOW |
16 |
Slideshow object. |
OBJECT_GRID |
17 |
Grid object. |
OBJECT_PDF |
18 |
PDF object. |
OBJECT_QUICKTIME |
19 |
QuickTime object. |
OBJECT_XBUTTON |
20 |
xButton object. |
OBJECT_PLUGIN |
40 |
Plugin object. |
If no object can be found with the name you provided, or any other error occurs, -1 is returned. You can use Application.GetLastError to determine whether this action failed, and why.
When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.
See also: Related Actions