heheh Mr. CookieRevised
i has this code:
code:
function Combo_Text(PlusWnd, ControlId, Index){
var CB_GETCOUNT = 0x146;
var CB_GETLBTEXT = 0x148;
var CB_GETLBTEXTLEN = 0x149;
var CB_GETCURSEL = 0x147;
if (!Index) Index = Interop.Call("user32", "SendMessageW", PlusWnd.GetControlHandle(ControlId), CB_GETCURSEL, 0, 0);
if (Index < 0) return "";
var Data = Interop.Allocate(( Interop.Call("user32", "SendMessageW", PlusWnd.GetControlHandle(ControlId), CB_GETLBTEXTLEN, Index, 0) * 2) + 2);
PlusWnd.GetControlHandle(ControlId), CB_GETLBTEXT, Index, Data);
return Data.ReadString(0);
}
Edit.. Ohh.. you've posted before me
(Combo_GetItemText is better hehe , nice job ^^)