Changes an item's key.

Syntax

Send_Message(Ctrl, "OLE.ChangeKeys", Item, NewKey)

Parameters

ParameterDescription
ItemThe key to an existing item
NewKeyThe item's new key

Remarks

The ChangeKeys method is useful when you need to change an item's key without the hassle of removing and readding it. Simply specify the key of an item whose key you want to change followed by the new key. If the new key is already in use, then this method will do nothing.

Example

// Take an item representing an unassigned entry and assign it its new unique key
Send_Message(@Window:".OLE_TREE", "OLE.ChangeKeys", "UNASSIGNED", "ENTRY1234")
  • No labels