findDisplay – Talk
Jump to navigation
Jump to search
I wrote this to help me see what I'm clicking on:
disableserialization; for [{_i = 0}, {_i < 10000}, {_i = _i + 1}] do { if (str (finddisplay _i) != "no display") then { //player sidechat str (finddisplay _i); for [{_j = 0}, {_j < 10000}, {_j = _j + 1}] do { if (str (finddisplay _i displayctrl _j) != "no control") then { //player sidechat str (finddisplay _i displayctrl _j); _ctrl = finddisplay _i displayctrl _j; _ctrl ctrlSetEventHandler ["mousebuttondown", "player sidechat str _this"]; }; }; }; };
--Doolittle 19:06, 10 October 2009 (CEST)