I have a menu where I would like to whether certain items were enabled or not.

The menu basically results in me right clicking an item and moving the cursor menu item "Team" which brings about a sub menu which contains a command such as "Disconnect" Problem is I have to use ordinal numbers. I've tried something like

Attach ActiveName()
TreeViewCtrl "~1", "\PluginTest01 [TEST]\source\com.alcplugin03.test03\CybMer01.java", 'Right SingleClick', 'Label'
ret = IsMenu( ActiveName() , "Popup#Team~" , "#1", "enabled" )

I am not getting the results that I expect. I'm not sure if I am getting the Menu Name and Menu Item right.