Read the open backpack
if (!LokiPoe.InGameState.InventoryUi.IsOpened)
return;
var grid = LokiPoe.InGameState.InventoryUi.InventoryControl_Main;
if (grid?.Inventory == null)
return;
foreach (var item in grid.Inventory.Items)
{
var itemName = item.Name;
var localId = item.LocalId;
}Read items from the grid that owns them; refresh the grid after moving an item.