Jump to content

CONTROLSEND AND THE LINEFEED


Recommended Posts

Hi guys

This should be an easy one to solve,

can you tell me how to send a linefeed to notepad

when sending a number of strings so each will appear on a seperate line

I know I can use controlsend with the edit flag to prevent it clearing what is already there

but what do I send to make it start a new line?

I assume the @LF comes into play, but I dont know how to add this to either a string or the end of

a controlsend command in order to take a new line

The helpfile does not explain the usage of @LF or @CF maybe someone here can

Cheers

Neil

Link to comment
Share on other sites

ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window"&@CRLF)

Thanks how would the line change if that was a string held in a variable

i.e

$message = "This is a line of text in the notepad window"

ControlSend("Untitled", "", "Edit1", $message, (how to end this line now?) or do I have to start another controlsend?

Cheers

Neil

Link to comment
Share on other sites

Thanks how would the line change if that was a string held in a variable

i.e

$message = "This is a line of text in the notepad window"

ControlSend("Untitled", "", "Edit1", $message, (how to end this line now?) or do I have to start another controlsend?

Cheers

Neil

$Line1 = "This is the First Line"
$Line2 = "This is the second line"
MsgBOx(0,"Test",$Line1 & @CRLF & $Line2)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...