Jump to content
Sign in to follow this  
johnirvin

problem with string?

Recommended Posts

johnirvin

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!

Share this post


Link to post
Share on other sites
SmOke_N

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\n

Concatenation 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.

Share this post


Link to post
Share on other sites
johnirvin

Look at the macros in the help file ... they start with "@".

@LF = \n

@CR = \r

@CRLF = \r\n

Concatenation 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!

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
johnirvin

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 by johnirvin

Share this post


Link to post
Share on other sites
Generator

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]]]])

Share this post


Link to post
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
Sign in to follow this  

×