johnirvin Posted May 6, 2008 Posted May 6, 2008 Hi guys, I am just wondering if it is possible for autoit to create or send a new line like \n in C and C++. I am using the command Send("john"{SPACE}"paul") and i want to make the words john and paul to appear in separate lines. What code/s should i make use of? Thanks a lot!
Moderators SmOke_N Posted May 6, 2008 Moderators Posted May 6, 2008 Hi guys,I am just wondering if it is possible for autoit to create or send a new line like \n in C and C++. I am using the command Send("john"{SPACE}"paul") and i want to make the words john and paul to appear in separate lines. What code/s should i make use of? Thanks a lot!Look at the macros in the help file ... they start with "@".@LF = \n@CR = \r@CRLF = \r\nConcatenation is done with the "&" char.MsgBox(64, "Info", "John" & @CRLF & "Mary") Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
johnirvin Posted May 6, 2008 Author Posted May 6, 2008 Look at the macros in the help file ... they start with "@".@LF = \n@CR = \r@CRLF = \r\nConcatenation is done with the "&" char.MsgBox(64, "Info", "John" & @CRLF & "Mary")Thank you so much. I really appreciate it and I am sorry for being such a noob!
Moderators SmOke_N Posted May 6, 2008 Moderators Posted May 6, 2008 Thank you so much. I really appreciate it and I am sorry for being such a noob!I don't think it was a noob question... but yw all the same. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
johnirvin Posted May 6, 2008 Author Posted May 6, 2008 (edited) I don't think it was a noob question... but yw all the same.Ei, do you know any codes that will lock the mouse once you run the script? Sometimes, it cannot be avoided that you accidentally move the mouse while your script is running and it will certainly mess up your program. Is there any code for that? Or the only way would be to remove my mouse before running the script? Sorry, I did not have the time to completely read the documentation. Thanks m8! Edited May 6, 2008 by johnirvin
Generator Posted May 6, 2008 Posted May 6, 2008 Ei, do you know any codes that will lock the mouse once you run the script? Sometimes, it cannot be avoided that you accidentally move the mouse while your script is running and it will certainly mess up your program. Is there any code for that? Or the only way would be to remove my mouse before running the script? Sorry, I did not have the time to completely read the documentation. Thanks m8!#Include <Misc.au3> _MouseTrap([$iLeft = 0[, $iTop = 0[, $iRight = 0[, $iBottom = 0]]]])
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