iSeeCream Posted August 7, 2010 Share Posted August 7, 2010 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 Link to comment Share on other sites More sharing options...
jaberwacky Posted August 7, 2010 Share Posted August 7, 2010 (edited) Opt("SendKeyDelay", 75) Put that at the top of your script. Edited August 7, 2010 by jaberwocky6669 Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
iSeeCream Posted August 7, 2010 Author Share Posted August 7, 2010 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? Link to comment Share on other sites More sharing options...
jaberwacky Posted August 7, 2010 Share Posted August 7, 2010 #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.") Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
iSeeCream Posted August 7, 2010 Author Share Posted August 7, 2010 Wow, thanks alot;D works great. Mods can close/lock this now ;D Link to comment Share on other sites More sharing options...
seandisanti Posted August 7, 2010 Share Posted August 7, 2010 Wow, thanks alot;D works great. Mods can close/lock this now ;Danother 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 More sharing options...
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