You can check a controls (hotrect || target==true) mouseover trait to determine if it's under the cursor.
Actually... Could I continuously poll for controls in the inventory list that have
mouseover==true? Is there a way they are exposed from the UI xml? (I'm assuming each item name displayed is a control/button in the UI, correct?) There should only ever be one with
mouseover=true, and if I set a ref var in script when it goes true, I can hold it until my menu hotkey is pressed. I would need to do another check to see if that item/control is still has
mouseover=true at the time of hotkey press, but that should be simple.
I think this would be getting more into the UI code and implementation. If you think it's more appropriate, please reply in http://www.gamesas.com/bgsforums/index.php?showtopic=980371.
Separate question: I must be missing something obvious, but is there a function, FOSE or otherwise, that returns an item's name? That is, the display name?
EDIT: changed 'target' to '
mouseover' for correction and clarity.