EveWindow NET

A_L_F

Member
Could you anyone help me with these two questions (NET CODE)

1.How to open on station the corporate hangar?
In old code I used EVEGlobal.Instance.Extension.EVEWindow("OpenHangarFloor");


2.How to stack all items on station (items and ships)
In old code I used EVEGlobal.Instance.Extension.EVEWindow.("hangarFloor").StackAll();
EVEGlobal.Instance.Extension.EVEWindow("shipHangar").StackAll();

The class EVEGlobal define the basic
public sealed class EVEGlobal
{
public static readonly EVEGlobal Instance = new EVEGlobal();
public Extension Extension { get; private set; }
public Character Character { get; private set; }
public EVE.ISXEVE.EVE Eve { get; private set; }
public LavishNav lavishNew { get; private set; }


private EVEGlobal()
{
Extension = new Extension();
Character = Extension.Me;
Eve = Extension.EVE();
}
 

stealthy

ISX Specialist
Could you anyone help me with these two questions (NET CODE)

1.How to open on station the corporate hangar?
In old code I used EVEGlobal.Instance.Extension.EVEWindow("OpenHangarFloor");


2.How to stack all items on station (items and ships)
In old code I used EVEGlobal.Instance.Extension.EVEWindow.("hangarFloor").StackAll();
EVEGlobal.Instance.Extension.EVEWindow("shipHangar").StackAll();

The class EVEGlobal define the basic
public sealed class EVEGlobal
{
public static readonly EVEGlobal Instance = new EVEGlobal();
public Extension Extension { get; private set; }
public Character Character { get; private set; }
public EVE.ISXEVE.EVE Eve { get; private set; }
public LavishNav lavishNew { get; private set; }


private EVEGlobal()
{
Extension = new Extension();
Character = Extension.Me;
Eve = Extension.EVE();
}
Stacking, cargo fetching, etc. should now be done through the EveInvWindow object, accessed from EVEWindow.GetInventoryWindow()
 

A_L_F

Member
Stealthy, could you show me some simple example?
If I use EVEGlobal.Instance.Extension.EVEWindow. - there is no methods
If I try to use static methods, there are only
GetWindowByName and GetWindowByCaption
 

A_L_F

Member
Bump, anyone can help?
I dont see in wrapper EVEWindow.GetInventoryWindow()

namespace EVE.ISXEVE
{
public class EVEWindow : LavishScriptObject
{
public EVEWindow(LavishScriptObject Obj);
public EVEWindow(string name);

public string Caption { get; }
public string HTML { get; }
public long ItemID { get; }
public bool Minimized { get; }
public string Text { get; }

public bool ClickButtonCancel();
public bool ClickButtonClose();
public bool ClickButtonNo();
public bool ClickButtonOK();
public bool ClickButtonYes();
public bool Close();
public static EVEWindow GetWindowByCaption(string caption);
public static EVEWindow GetWindowByName(string name);
public bool Maximize();
public bool Minimize();
}
}
 

A_L_F

Member
Wrapper was filled in, but I have the last question
How I stack thing in hangar? (NET)
I tried to use EVEWindow("item hangar").StackAll() but it doesnt work.
Maybe I have to MakeChildenActive to item hangar, but how? in the wiki is
Some possible names for Child windows for reference:
- StationItems
- StationShips
- Corporation hangars (The child for the main Corporation Hangars)
- StationCorpHangar (Used for each of the Corporation Hangars folders, different IDs for each)
- StationCorpDelveries


But in wrapper there are 2 params, so InvWindow.MakeChildActive("Station Items", "") - this isnt work

Thanks for help
 

stealthy

ISX Specialist
Wrapper was filled in, but I have the last question
How I stack thing in hangar? (NET)
I tried to use EVEWindow("item hangar").StackAll() but it doesnt work.
Maybe I have to MakeChildenActive to item hangar, but how? in the wiki is
Some possible names for Child windows for reference:
- StationItems
- StationShips
- Corporation hangars (The child for the main Corporation Hangars)
- StationCorpHangar (Used for each of the Corporation Hangars folders, different IDs for each)
- StationCorpDelveries


But in wrapper there are 2 params, so InvWindow.MakeChildActive("Station Items", "") - this isnt work

Thanks for help
You can only stack the active inventory window.
You can determine the necessary parameters for MakeChildActive using Amadeus' inventory window dump script found here: http://www.isxgames.com/forums/showthread.php/5892-New-Inventory-Window-Iterating-Children-Example
 

A_L_F

Member
If I use Amadeus scipt I get ID of hangar, so I can use it to make item hangar active - it works. Is this ID still unchanged aafter restart, downtime, etc?

Still dont work StackAll function, the EVEWindow function has one parameter (string name) and I cant find which string should be, I try to read it drom amadeus output but...dont know.

I need simple stack all ships and items on station (not in container, only in first level of station)
 

stealthy

ISX Specialist
That's what I'm trying to tell you. It's not so 'simple' any more. Stacking will only stack the active inventory window's cargo.

Making the station hangar active:

Code:
			var inventoryWindow = EVEWindow.GetInventoryWindow();
			inventoryWindow.MakeChildActive("StationItems");
Making the ship cargohold active:
Code:
        	var inventoryWindow = EVEWindow.GetInventoryWindow();
        	inventoryWindow.MakeChildActive(StealthBot._Me.Ship.ID, "CargoHold");
Stacking cargo:
Code:
			var inventoryWindow = EVEWindow.GetInventoryWindow();
			inventoryWindow.StackAll();
 
Top Bottom