Jump to content

Beginner Script


Recommended Posts

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:

Link to comment
Share on other sites

#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.")

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...