ID:172811
 
Quick question about client.command_text:

How would I add something to the command text line?

Example: say I was using the "chat/say" verb

I have typed: chat "

Then I have a text string saved, and i want to insert that in front of the (chat ") that I have already typed. I have tried client.command_text += string, but it doesnt keep the (chat ") part, and it keeps adding (string) to the command line. Any way of having it so I was in the middle of typing (chat ") and then i hit the verb for the string, it adds the string to what i have already typed? such as

chat "(hits the string verb) string blah blah

Thanks
Does anyone know? Or just choosing not to post for some reason??
In response to Valderalg
That question may never be answered, it's like saying to someone "Are you asleep? Just say yes if you are." ;)

As for the command_text stuff, I'm fairly certain there is no way to determine what is in the command line at any given time. The command_text variable merely sets the text in the command line to its text string when you enter the program and after every command given. If you set the command_text to "chat \"" first before adding the text then you could do command_text+="text", but not simply by typing in "chat \"" and adding "text" to command_text.

It would be nice if there were some way to get whatever text is in the command line at any given time, but not all text in that line would be a game command. Something like this would be extra useful in tandem with upgraded macro support so that we could, for instance, get the text on the command_line when enter is pressed to send it to everyone, send it to people in your group/party/allies when shift+enter is pressed, send it to a single person when ctrl+enter is pressed, or do other similarly beneficial things.
In response to Loduwijk
Loduwijk wrote:
That question may never be answered, it's like saying to someone "Are you asleep? Just say yes if you are." ;)

Haha, I know, just was wondering if anyone currently reading the forums might know =) thanks for your reply, ill have to find another way to do it, np they will just have to enter the text afterwards.