how to check for the "not enough cargo space" EVEWindow

Arglebargle

Active Member
I'm writing a check to see if a looter script ran out of space during operation and I need to check for the "Not enough cargo space" window. I see that I can use EVEWindow[Bycaption,"<<blerg>>"] to find particular windows on screen but I don't know the caption of this window and I don't see a way to iterate all windows and list their captions. Can anyone help?
 

Vo1

Member
${Ship.CargoFreeSpace}
in obj_Ship.iss:

Code:
	member:float CargoFreeSpace()
	{
		if !${Me.Ship(exists)}
		{
			return 0
		}

		if ${Me.Ship.UsedCargoCapacity} < 0
		{
			return ${Me.Ship.CargoCapacity}
		}
		return ${Math.Calc[${Me.Ship.CargoCapacity}-${Me.Ship.UsedCargoCapacity}]}
	}
 
Top Bottom