Questions tagged [clearscript]

ClearScript is a library that makes it easy to add scripting to your .NET applications. It currently supports JavaScript (via V8 and JScript) and VBScript.

72 questions
0
votes
1 answer

How to expose HtmlAgilityPack.CssSelectors into ClearScript

Context: Azure, C#, ClearScript, JavaScript, HtmlAgilityPack, HtmlAgilityPack.CssSelectors I do this a lot: add scripting to C# apps using ClearScript. Ordinarily this just works. ... using Microsoft.ClearScript; using…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
0
votes
1 answer

In Selenium, moving to an (x,y) on browser screen doesn't move mouse pointer. Why?

Context: Windows 10; C# .NET; Selenium WebDriver (Chrome); ClearScript I've exposed a number of Selenium functions to a javascript via ClearScript. In the script ... var url = "http://www.google.com.au"; var driver = new…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
0
votes
0 answers

Clearscript V8 in ASP.NET 5 - v8-x64.dll could not be opened -- PE image doesn't contain managed metadata

I have issues with ClearScript. When I use them from regular project (class library or wpf), when dependency is added through nuget, also a post build script is added that copies ClearScriptV8-32.dll, ClearScriptV8-64.dll, v8-ia32.dll and v8-x64.dll…
Łukasz
  • 8,555
  • 2
  • 28
  • 51
0
votes
1 answer

Trapping Adwords errors in JScript when called from ClearScript?

Context: VS2015 Community; C#; ClearScript.V8.5.4.5; Google.AdWords.18.25.0 For background on this posting, see an earlier posting (Kudos, by the way, to @BitCortex for solving the first conundrum.) I now have a working Adwords mutation scripted in…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
0
votes
1 answer

How to expose AdWords to JavaScript via ClearScript?

Context: VS2015 Community; C#; ClearScript.V8.5.4.5; Google.AdWords.18.25.0 I'm trying to create a scripting environment to do my Budgets. One the C# side, I'm setting up a JScript environment, and exposing all the AdWords types and objects that I…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
0
votes
2 answers

Having difficulty exposing XmlDocument to JScript using ClearScript

Context: Windows Azure; Visual Studio Community 2015; ClearScript; JScript I'm having problems exposing an XmlDocument object to the JScripts I'm executing using ClearScript. I am instantiating a JScript interpreter using JScriptEngine JSengine =…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
0
votes
1 answer

Clearscript vbscript com ado interaction

I'm using clearscript as a vbscript execution engine. I have exposed the following C# object (I appreciate it doesn't actually execute a query, I'm just testing for now): public class SCB { public ADODB.Recordset executeQuery(string q) …
0
votes
0 answers

Could not load file or assembly 'ClearScriptV8' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

It is working on local IIS on Windows 7, but give this error on Windows Server 2012 IIS 8.5. ClearScript version: 5.4.0.0 C++ Redistributable 2013 Installed. I've used AssemblyResolver from…
Igor Golodnitsky
  • 4,456
  • 7
  • 44
  • 67
0
votes
0 answers

Javascript prototype reflection function

I'm not exactly sure of the name of what I'd like to do but it goes like this: Currently, I have a bunch of variables in my javascript context that look like $A126 or $B15. Before running, I have to load in all 9000 of these variables and their…
Scottingham
  • 906
  • 2
  • 11
  • 26
0
votes
1 answer

Installing software on a Windows Azure dedicated website

I would need to install some software (the VC++ 2012 redistributables) on a Windows Azure website. This is part of a troubleshooting procedure related to using ClearScript on a Windows Azure website. More information here:…
Andrea
  • 884
  • 1
  • 10
  • 23
-1
votes
1 answer

How does v8ScriptEngine infer the scripting language

Just curious, Just started using V8ScriptEngine, I have this code fragment private void button1_Click(object sender, EventArgs e) { string f = "function myFunc(x) {if(x >= 3500.00) return '001'; else return '002'; }"; …
TonyP
  • 5,655
  • 13
  • 60
  • 94
-1
votes
1 answer

How to invoke method of dynamic object using reflection

I've got dynamic object which contains some execute function generated by V8ScriptEngine. I need to execute this method with parameters which was specified in Dictionary object. I tried this approach: private dynamic InvokeMethod(dynamic…
madmanul
  • 420
  • 4
  • 14
1 2 3 4
5