Hello, I am writing on a script that needs items that are not under the edit cursor to be deselected I could not find any clue on how to do that... is it somehow possible with this: RPR_SetMediaItemInfo_Value(Item_ID, "B_UISEL", ???) not sure what B_UISEL is supposed to be, writing in various numbers shows no reaction at all... EDIT: It works, as soon as you move the mouse over an env-lane after running the script. Cracy! I am using a while loop so far to identify if an item is not under the cursor. Code: