I have made this project, it has a textbox and a button. When you click the button i need the sendkeys.send("text from the textbox") send so it should be like this :
Sendkeys.send("[color=blue]")
Sendkeys.send("The first letter of the textbox")
Sendkeys.send("[/color]")
'if there is more than 1 letter it will do the following
Sendkeys.send("[color=green]")
Sendkeys.send("The secound letter of the textbox")
Sendkeys.send("[/color]")
Sendkeys.send("[color=pink]")
Sendkeys.send("The third letter of the textbox")
Sendkeys.send("[/color]")
Sendkeys.send("[color=purple]")
Sendkeys.send("The thourth letter of the textbox")
Sendkeys.send("[/color]")
Does anyone know how i could make it do that, so that every letter it finds, makes it change the sendkeys.send([color=colorname])? And that if theres more than 1 letter it continues doing it?
Additional info: i making this for a SHOUTBOX, so it basicly a shoutbox talker that goes in a rainbow color.
THanks in advanced
EDIT: Title edited to be more descriptive
PsychoCoder

New Topic/Question
Reply




MultiQuote





|