Jump to content
bumyplum

Controls Listbox column  2

Recommended Posts

So i'm attempting to get whats in the second column of the controls list box, i can get the text from the left side but not the right,
09eb3af9663fe089d40c080dadef8630.png?wid

_data = ((findDisplay 4) displayCtrl 102) lbText 0;
// Returns Inventory. How do i get the information from the ASSIGNED KEYS section
I've also tried 
_text = ((findDisplay 4) displayCtrl 102)  lbTextRight 0;
how ever it doesn't return it, any infomation is helpful, thanks

Share this post


Link to post
Share on other sites
On 9/23/2019 at 12:51 PM, killzone_kid said:

well for starters you should use lnb commands instead of lb

 

    _data = ((findDisplay 4) displayCtrl 102) lbText 0;
    _data2 = ((findDisplay 4) displayCtrl 102) lnbText [0,0];

   _data   // returns "Inventory"
   _data2 // returns nothing

I'm not sure what i'm doing wrong

Share this post


Link to post
Share on other sites
36 minutes ago, bumyplum said:

returns nothing


Also it can’t return nothing, empty string is default value

Share this post


Link to post
Share on other sites
2 minutes ago, killzone_kid said:

What does ctrlType ((findDisplay 4) displayCtrl 102) return?

 

ctrlType ((findDisplay 4) displayCtrl 102) // Returns 5

Share this post


Link to post
Share on other sites
4 minutes ago, bumyplum said:

 

ctrlType ((findDisplay 4) displayCtrl 102) // Returns 5

Here is your answer then the control is indeed lb so the other side must be a different lb control and engine just draws them both synchronised somehow.

Share this post


Link to post
Share on other sites
29 minutes ago, killzone_kid said:

Here is your answer then the control is indeed lb so the other side must be a different lb control and engine just draws them both synchronised somehow.

    for "_i" from -1 to 99999 do {

        _data = ctrlType ((findDisplay 4) displayCtrl _i);
        if (_data isEqualTo 5 or _data isEqualTo 42 or _data isEqualTo 102) then {
            systemChat format["ctrlType: %1 | displayCtrl: %2", _data, _i];
        }

    };

 

^^^ returns //
ctrlType : 5 |  displayCtrl 102   // CT_LISTBOX
ctrlType : 42 |  displayCtrl 105   // CT_XLISTBOX
//

 

 

_data2 = ctrlShown ((findDisplay 4) displayCtrl 105); // Returns False
_data3 = ((findDisplay 4) displayCtrl 105)  lbText 0; // Returns Reversed

_data4 = ((findDisplay 4) displayCtrl 105)  lbText 1; // Returns Normal


displayCtrl 5 is for Inverting Y axis on mouse therefore i can't find any other list boxes

https://gyazo.com/f48f52e150511533045f9b240deacf30 // Image of all IDC and Class names for display 4

Share this post


Link to post
Share on other sites

"IDC: -1, Class Name: BackgroundDisable Type: 0 |||IDC: 1, Class Name: CA_ButtonContinue Type: 16 |||IDC: 2, Class Name: CA_ButtonCancel Type: 16 |||IDC: 101, Class Name: CA_ButtonDefault Type: 16 |||IDC: 102, Class Name: CA_ValueKeys Type: 5 |||IDC: 103, Class Name: CA_ValueXAxis Type: 3 |||IDC: 104, Class Name: CA_ValueYAxis Type: 3 |||IDC: 105, Class Name: CA_ValueYReversed Type: 42 |||IDC: 106, Class Name: CA_ValueJoystick Type: 16 |||IDC: 108, Class Name: CA_ControlsPage Type: 4 |||IDC: 109, Class Name: PlayersName Type: 0 |||IDC: 110, Class Name: CA_MouseFiltering Type: 3 |||IDC: 113, Class Name: CA_MouseAcceleration Type: 7 |||IDC: 114, Class Name: ButtonPresets Type: 16 |||IDC: 125, Class Name: RscText Type: 0 |||IDC: 1000, Class Name: Title Type: 0 |||IDC: 1002, Class Name: CA_ControlsPageText Type: 0 |||IDC: 1003, Class Name: TextAction Type: 0 |||IDC: 1004, Class Name: TextAssignedKeys Type: 0 |||IDC: 1005, Class Name: CA_TextMouseSens Type: 0 |||IDC: 1006, Class Name: TextYReversed Type: 0 |||IDC: 1007, Class Name: TextXAxis Type: 0 |||IDC: 1008, Class Name: TextYAxis Type: 0 |||IDC: 1009, Class Name: CA_TextMouseSmoothing Type: 0 |||IDC: 1010, Class Name: CA_TextMouseAcceleration Type: 0 |||IDC: 1011, Class Name: TextGeneral Type: 0 |||IDC: 1080, Class Name: TitleBackground Type: 0 |||IDC: 1081, Class Name: MainBackground Type: 0 |||IDC: 1082, Class Name: TabsBackground Type: 0 |||IDC: 2300, Class Name: KeyboardGroup Type: 15 |||IDC: 2301, Class Name: MouseGroup Type: 15 |||IDC: 2400, Class Name: ButtonKeyboard Type: 16 |||IDC: 2401, Class Name: ButtonMouse Type: 16 |||"


Details for display 4

Share this post


Link to post
Share on other sites
12 minutes ago, killzone_kid said:

Never mind

Has any one got a clue on what to do because i'm stumped with this one

Share this post


Link to post
Share on other sites

I didnt mean never mind I'm outta here. Just typed something then deleted. Anyway, this thing on the right is a child display of the display 4 from RscDisplayConfigureAction config it seems. Because it is engine display that is made on the fly each time you change the group option, I dont think you can get a reference to it. So there is that 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×