I don't quite understand why you deleted your thread from the GS2 forum, that was in the CORRECT forum for this question. But here is what I had posted there.
Your problem is because you're using getselectedtext(). That does not do what you want it to do. You want to be using gettext().
http://wiki.graal.us/GScript - Please use this, it can be your best friend when you need to look something up.
I took this right from the wiki:
Quote:
GuiButtonBaseCtrl (GuiControl):
buttontype - string
checked - boolean
groupnum - integer
text - string
gettext() - returns string
performclick()
settext(str)
|