mustafa06
06-28-2008, 10:49 AM
c1 = ComboBox.GetItemText("Combo1", ComboBox.GetSelected("Combo1"));
c2 = ComboBox.GetSelected("Combo1");
if c1 == "Random Selected" then
cx = Math.Random(2, 5);
ComboBox.SetSelected("Combo1", cx);
end
Input.SetText("Input1", "Text : "..c1.." İndex : "..c2);
Its true but ;
I show My Input : " Text : Random Selected İndex : 1 "
But Math.Random changed selected why ı show again Random Selected , ı want show my input Math.Random changed text
For example
İndex 1 : Random Selected
İndex 2 : 1
İndex 3 : 2
İndex 4 : 3
İndex 5 : 6
İf i click index 1 ( Random Selected ) then changed selected but ı show my ınput " Text : Random Selected İndex : 1 " why ? I want show index 2-3-4 or 5 thx ;)
c2 = ComboBox.GetSelected("Combo1");
if c1 == "Random Selected" then
cx = Math.Random(2, 5);
ComboBox.SetSelected("Combo1", cx);
end
Input.SetText("Input1", "Text : "..c1.." İndex : "..c2);
Its true but ;
I show My Input : " Text : Random Selected İndex : 1 "
But Math.Random changed selected why ı show again Random Selected , ı want show my input Math.Random changed text
For example
İndex 1 : Random Selected
İndex 2 : 1
İndex 3 : 2
İndex 4 : 3
İndex 5 : 6
İf i click index 1 ( Random Selected ) then changed selected but ı show my ınput " Text : Random Selected İndex : 1 " why ? I want show index 2-3-4 or 5 thx ;)