Sign in to follow this  
Followers 0
neo van matix

How To Insert Breaks... ?

3 posts in this topic

Hello,

i want to autom. a Textpad Installation.

This works fine, but, ive some problems with the registration of Textpad.

I want to open Textpad, goto Help -> Insert registration Data.

That works also fine, but i've a problem with the insertion of the Registration Data in this form:

BEGIN LICENSE

XYZ

COMPANY

66 99993EGYKAFEKEMGKBVPMWKLTMG

91fab1030 0c115f52 45b35869 990824324 021d4fcf 070b2666d

737f3da49 ced4d4220 b00aec3c 538e19330 7406bf81 95da8483

752d45d08 d5f6888b3 96154c6f 6db64b6b1 021d4fcf 070b6266d

737f5da49 ced4d8220 211f11ea 3bfe2b6c5 a048634a 306ae855f

END LICENSE

Now, i want to insert these Block with following Command:

ControlSetText("TextPad registrieren", "Um Textpad zu registrieren", "Edit1", "")

It works also fine, but without breaks (\n).

I tried to put "BEGIN LICENSE \n XYZ \n COMPANY \n ..." into Edit1, but it insert exactly "BEGIN LICENSE \n XYZ \n COMPANY \n ..." without breaks.

How i solve it?


Attention! English noob ^^

Share this post


Link to post
Share on other sites



Hello,

i want to autom. a Textpad Installation.

This works fine, but, ive some problems with the registration of Textpad.

I want to open Textpad, goto Help -> Insert registration Data.

That works also fine, but i've a problem with the insertion of the Registration Data in this form:

BEGIN LICENSE

XYZ

COMPANY

66 99993EGYKAFEKEMGKBVPMWKLTMG

91fab1030 0c115f52 45b35869 990824324 021d4fcf 070b2666d

737f3da49 ced4d4220 b00aec3c 538e19330 7406bf81 95da8483

752d45d08 d5f6888b3 96154c6f 6db64b6b1 021d4fcf 070b6266d

737f5da49 ced4d8220 211f11ea 3bfe2b6c5 a048634a 306ae855f

END LICENSE

Now, i want to insert these Block with following Command:

ControlSetText("TextPad registrieren", "Um Textpad zu registrieren", "Edit1", "")

It works also fine, but without breaks (\n).

I tried to put "BEGIN LICENSE \n XYZ \n COMPANY \n ..." into Edit1, but it insert exactly "BEGIN LICENSE \n XYZ \n COMPANY \n ..." without breaks.

How i solve it?

"BEGIN LICENSE" & @CRLF & "XYZ " & @CRLF & "COMPANY" & "..."

You have to quote each piece of text separatly and use the & @CRLF & for the line breaks.

BTW if you need a break at the end you would just use & @CRLF


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

thanks, works fine :)


Attention! English noob ^^

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  
Followers 0