alechielke Posted October 21, 2017 Share Posted October 21, 2017 Hey, I'm trying to use _IEFormElementSetValue to set an inputbox to a multi-line string (I'm not good at explaining I know). I want it to look something like this: My problem: (insert variable here) My solution: (insert variable here) The function picks the correct input box, but I can only seem to have it send one line. I was able to do this in the past with send by just sending an enter whenever I wanted a new line, but now I want the script to be able to run in the background, so this is no longer an option. Can anyone help? Link to comment Share on other sites More sharing options...
Danp2 Posted October 21, 2017 Share Posted October 21, 2017 What have you tried thus far? Show us your code. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
alechielke Posted October 21, 2017 Author Share Posted October 21, 2017 Here's what I've got so far Global $oIE = _IECreate('localhost/database/newcodeproblemsolution.php', 0) Local $newform = _IEFormGetCollection($oIE, 0) Local $description = _IEFormElementGetCollection($newform, 1) _IEFormElementSetValue($description, "test"&"test");this is where the multi-line string goes I'm trying to improve my knowledge of a few programming languages, so I made a little php page that submits problems and solutions to a database. Link to comment Share on other sites More sharing options...
MattHiggs Posted October 21, 2017 Share Posted October 21, 2017 1 minute ago, alechielke said: Here's what I've got so far Global $oIE = _IECreate('localhost/database/newcodeproblemsolution.php', 0) Local $newform = _IEFormGetCollection($oIE, 0) Local $description = _IEFormElementGetCollection($newform, 1) _IEFormElementSetValue($description, "test"&"test");this is where the multi-line string goes I'm trying to improve my knowledge of a few programming languages, so I made a little php page that submits problems and solutions to a database. Try this: Global $oIE = _IECreate('localhost/database/newcodeproblemsolution.php', 0) Local $newform = _IEFormGetCollection($oIE, 0) Local $description = _IEFormElementGetCollection($newform, 1) _IEFormElementSetValue($description, "test" & @CRLF & "test");this is where the multi-line string goes Link to comment Share on other sites More sharing options...
alechielke Posted October 21, 2017 Author Share Posted October 21, 2017 That seems to work! Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now