hwp_selection_param_action
Execute HWP actions using selection and navigation parameter sets. Control text selection, cursor position, list properties, and scroll view in HWP documents.
Instructions
Execute HWP action with selection/navigation HParameterSet.
Supported param_set_name values and their key properties:
HSelectionOpt: SelectionType (0=normal, 1=block, 2=column), StartList, StartPara, StartPos, EndList, EndPara, EndPos
HGotoE: SetID (list index), ParaID (paragraph index), Pos (character offset), SubList, Direction (0=absolute, 1=relative)
HListParaPos: ListID, ParaID, Pos, SetID
HListProperties: ListType, ItemCount, StartNumber, NumFormat, Indent, Spacing, AlignType
HMousePos: X (screen x), Y (screen y), DocX (document x), DocY (document y), ListID, ParaID, CharPos
HScrollPosInfo: HScrollPos, VScrollPos, PageIndex, ZoomLevel, ViewMode (0=page, 1=continuous)
Args: doc_id: Document ID from open_document action_name: HWP action to execute param_set_name: Must be one of the selection param sets listed above params: Properties to set on the param set
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| params | No | ||
| action_name | Yes | ||
| param_set_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||