Jump to content

Recommended Posts

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]
Link to post
Share on other sites

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 by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...