Forum > Coding >

How do you use CEFsharp or WebView2 for your monaco (rosploco)

wyhypobi

random earthling

Posts: 4

Threads: 2

Joined: Feb, 2022

Reputation: 0

Posted

title is self-explanatory, says it all. How do you use CEFsharp or WebView2 for monaco? the monaco I'm using is rosploco.html btw, modified monaco

 

*Im using win forms

  • 1

wyhypobi | releasing my new injector soon!

z_Kenneth

roachcock#3492

vip

Posts: 131

Threads: 13

Joined: Oct, 2021

Reputation: 5

Replied

webview2.source = new Uri(string.format(file:///{0}/rosploco.html, 'your path to the file'))

 

if using winforms then use .Uri instead of .Source

 

i might be wrong

  • 0

wyhypobi

random earthling

Posts: 4

Threads: 2

Joined: Feb, 2022

Reputation: 0

Replied

yes thank you but i already know that, my question was what do i replace my execute and attach and stuff button code to?

 

i mean for my executor, my execute button for example is like this:

 

                HtmlDocument document = webBrowser1.Document;

                string scriptName = "ExecuteKRNL";

                object[] args = new string[0];

                object obj = document.InvokeScript(scriptName, args);

                string script = obj.ToString();

                //

                KRNL.Execute(script);

 

what do i replace "webBrowser1.Document" with? I mean it's gonna be replaced by "webview21" right? I tried doing that, replacing "webBrowser1" to "webview21". but the string "Document" was not applicable? what do i do with this?

 

p.s I'm a beginner in c# and the webview21 element i I'm talking about is the webview item i got from toolbox after installing it via nuget packages.

  • 0

wyhypobi | releasing my new injector soon!

Orbx

none

Posts: 27

Threads: 1

Joined: Feb, 2022

Reputation: 1

Replied

@wyhypobi  uh, anyways if u want to use WebView2 in winforms you should check out the docs

  • 0

Users viewing this thread:

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