SendKeyDelay - Alters the the length of the brief pause in between sent keystrokes.
Time in milliseconds to pause (default=5). Sometimes a value of 0 does not work; use 1 instead.
This is listed in the function reference for autoit options.
http://www.autoitscript.com/autoit3/docs/f...xpandEnvStrings
The way i read this and understand it is that if i were to type up a code like:
Opt ("SendKeyDelay", 5000)
Send ("1")
Send ("2")
Send ("3")
it would wait 5 seconds before typing each number. (guess i could have just tried it but i just thought of that as i typed this) If i understand it right, it will leave the 5 second delay that way for the rest of the script unless i change it. So every time i use a succesive Send command it will wait 5 seconds. Or does it wait 5 seconds from the time it hits the Send command to actually send the keystroke?
Based on this am i correct in saying that SendKeyDelay is not a replacement for:
Send ("1")
Sleep ("2000")
Send ("2")
Sleep ("3000")
Send ("3")
It would not work in this manner since i want to change the wait time between keystrokes. If all this is correct then is there any method for combining the Send command and Sleep command that does not require writing 2 seperate lines, or is that the most efficent way of doing it?
btw i know my spelling and grammer is bad but hopefully it gets the point across. Thankyou for any help.
Edited by Physical, 07 May 2008 - 02:58 AM.





