Get Link for Item under Cursor

I’m trying to create some macros for handling master looting in raids. Does anyone know what LUA would be required to get an item link for whatever item is currently under the mouse cursor?

Can’t you just shift-click the link into chat? I’m not sure what exactly you want to do

If you are mouseovering an item you can do

/run print(select(2, GameTooltip:GetItem()))

There also is https://wow.gamepedia.com/API_GetLootSlotLink

1 Like

Thank you so much!

is there a way too link the item inside a macro?? using a mouse over ?

as example i use puglooter add on in raids and instead of me having to sit at the boss for 6 months while doing loot. id like to loot the items and then keep up with the grp while trash is getting cleared and have a macro that is /pugloot start [mouse over link item] as example instead of manually typing /pugloot start and then shift clicking every item one by one

any help would be amazing