Jump to content
Sign in to follow this  
iSeeCream

Beginner Script

Recommended Posts

iSeeCream

Hi, im new to autoit and i made a script that goes like this,

ProgressOn("Loading...", "Please wait while it is loading", "0 percent")
For $i = 5 to 100 step 5
    sleep(1000)
    ProgressSet( $i, $i & " percent")
Next
ProgressSet(100 , "Done", "Complete")
sleep(500)
ProgressOff()
Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("Hello, thank you for testing my script. This script was made by Daniel Yi. It has no purpose except to be a test for my script.")

But, the text loads too quickly. Is there a way i can slow the rate of the text being entered? Sorry, im just a beginner :blink:

Share this post


Link to post
Share on other sites
iSeeCream

Cool thanks, but now i have another problem, how can i make the text only appear in notepad?

cause if i open another program, such as msn, it will start typing in there, any suggestions?

Share this post


Link to post
Share on other sites
jaberwacky

#AutoIt3Wrapper_AU3Check_Parameters=-w 1 -w 2 -w 3 -w 4 -w 6 -d

Opt("SendKeyDelay", 75)

ProgressOn("Loading...", "Please wait while it is loading", "0 percent")

For $i = 5 To 100 Step 5

    Sleep(100)

    ProgressSet($i, $i & " percent")
Next

ProgressSet(100, "Done", "Complete")

Sleep(500)

ProgressOff()

Run("Notepad.exe")

WinWaitActive("Untitled - Notepad")

ControlSend("Untitled - Notepad", '', "Edit1", "Hello, thank you for testing my script. This script was made by Daniel Yi. It has no purpose except to be a test for my script.")

Share this post


Link to post
Share on other sites
iSeeCream

Wow, thanks alot;D works great. Mods can close/lock this now ;D

Share this post


Link to post
Share on other sites
seandisanti

Wow, thanks alot;D works great. Mods can close/lock this now ;D

another way to skin that particular cat besides control send is controlsettext. that way you can make sure to append what you want to the text already there exactly the way you want it regardless of the cursor position.

Share this post


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
Sign in to follow this  

×