casio Posted January 4, 2009 Share Posted January 4, 2009 Hello, I'm having some problems using blank spaces by concatenating them. for example: $i = 5 $espaces = "" while $i > 0 $espaces = $espaces & " " sleep(2000) Send($espaces &"{Enter}") $i = $i - 1 WEnd It doesn't add just 1 space in every interaction and I ran out of ideas. Any help will be appreciated. Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 4, 2009 Share Posted January 4, 2009 Hello, I'm having some problems using blank spaces by concatenating them. for example: $i = 5 $espaces = "" while $i > 0 $espaces = $espaces & " " sleep(2000) Send($espaces &"{Enter}") $i = $i - 1 WEnd It doesn't add just 1 space in every interaction and I ran out of ideas. Any help will be appreciated. The script works fine. Whatever you are sending to is probably handling the input differently that you expected. For example, if the Send() is going to SciTE it will auto-format the lines with tabs. Try it like this from SciTE to see it working OK: $i = 5 $espaces = "" While $i > 0 $espaces = $espaces & " " Sleep(2000) ConsoleWrite("|" & $espaces & "|" & @LF) $i = $i - 1 WEnd Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
casio Posted January 4, 2009 Author Share Posted January 4, 2009 The script works fine. Whatever you are sending to is probably handling the input differently that you expected. For example, if the Send() is going to SciTE it will auto-format the lines with tabs. Try it like this from SciTE to see it working OK: $i = 5 $espaces = "" While $i > 0 $espaces = $espaces & " " Sleep(2000) ConsoleWrite("|" & $espaces & "|" & @LF) $i = $i - 1 WEnd Thank you very much, i didn´t know that Scite recognize " " like a tab., know it works ok. 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