the_lord_mephy Posted October 16, 2004 Posted October 16, 2004 Is there a way to set the text of a control n number of times. For example. If I was making a hangman game and i wanted to set a variable as "_ " and i have a 5 letter word, how could i set the text of a control to _ _ _ _ _ My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
scriptkitty Posted October 16, 2004 Posted October 16, 2004 (edited) example for ya run("notepad.exe") sleep(1000) controlsend("Unt","","Edit1","hi^f") $x="-----" sleep(1000) controlsettext("Find","","Edit1",$x) Maybe a bit better example: run("notepad.exe") sleep(1000) controlsend("Unt","","Edit1","hi^f") $x="-----" sleep(1000) controlsettext("Find","","Edit1",$x) for $i = 1 to 5 $x=stringleft(stringleft("Death",$i)&"-----",5) controlsettext("Find","","Edit1",$x) sleep(1000) next Edited October 16, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now