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
wyhypobi | releasing my new injector soon!
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
Cancel
Post
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.
Cancel
Post
wyhypobi | releasing my new injector soon!
Replied
@wyhypobi uh, anyways if u want to use WebView2 in winforms you should check out the docs
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post