Forum > Suggestions >

C# How To Use Monaco As String!

Posts: 24

Threads: 7

Joined: Oct, 2019

Reputation: 0

Posted

Ex:

String AWRANrwan2 = WebBrowser.Document.InvokeScript("SetText", new Object[]

{

 

});

Why I Can't Use It As String :C

And How To Know If Monaco Text Has The Contain Text

Ex:
webbrowser.documenttext.contains("rnarawrnaw");
Doesn't Work :C

  • 0

PoopMaster

SoundInfinity

noticed

Posts: 120

Threads: 23

Joined: Jul, 2019

Reputation: 9

Replied

To get the text from Monaco use the following code:

WebBrowser.document.InvokeScript("GetText").ToString(); // Not Sure

If you want to set text just replace get with set, like this:

WebBrowser.document.InvokeScript("SetText", new String()["TEXT"]) // Not Sure

  • 0

Proud creator of: WRD+

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )