Jump to content
Sign in to follow this  

Sending a @CR - odd result

Recommended Posts


I'm using the following code (extracted from a larger app).

$MessageBody = GUICtrlCreateInput("Test message" & @CR & ("Line 2"), 80, 100, 280, 190, $ES_MULTILINE + $ES_AUTOVSCROLL)

Then later on...

Send(& GUIRead($MessageBody)"",1)

Ok, the @CR creates a unknown character in the GUICtrlCreateInput box which shows up as a small square/rectangle. When I pass the text to my application it behaves as expected, putting in the CR.

If I hit the enter key within GUICtrlCreateInput it moves down to the next line but when I send it to my application it treats it as a CTRL+ENTER key stroke.

Does anyone know why or how I can get rid of this problem?

Edited by tourcd

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