Sign in to follow this  
Followers 0
tradertt

"Example1" & @CRLF & "example 2"

6 posts in this topic




Is this the correct way to make a break ?

If what I am doing is

_IEFormElementSetValue($Title,"Example1" & @CRLF & "example 2")

I don't know for sure, but since the page is HTML, maybe this:

_IEFormElementSetValue($Title,"Example1<br>example 2")

Simple way to check it to test it. What happens when you try it?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

<br> does not work as the forum is posted in bbCode so it does not work ... need the script iteself to have the carriage return

I'm not familiar with this kind of stuff. But in URLs special characters are replaced by "%<hex>" iirc. So you might want to try something like "%0D" (Hex0D=Dec13=CR)

Or your use wireshark to check what travels to the server on the wire :)

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

<br> does not work as the forum is posted in bbCode so it does not work ... need the script iteself to have the carriage return

In that case you may have to set focus on it and just send a keyboard {ENTER}:

$hWin = _IEPropertyGet($oIE, "hwnd")
_IEAction($Title,"focus")
ControlSend($hWin, "", "", "Example1{ENTER}example 2")

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Is this the correct way to make a break ?

If what I am doing is

_IEFormElementSetValue($Title,"Example1" & @CRLF & "example 2")

@tradertt...I have no issues doing this for setting a value to a "textarea" box in a html page. @CRLF works as expected. What field type is it that you are setting text to?

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