An error occurred in script '/home/yhr1ef23xez5/public_html/web2/app/model/bannerhit.php' on line 17:
Undefined index: HTTP_REFERER
Array ( [type] => solution [name] => ht-ScriptableObjectModel )
WinWrap® Basic is an embedded macro language component available for .NET and COM 32/64 bit Windows applications. The WinWrap® Basic Component is an alternative to Visual Basic for Applications (VBA), ActiveX (e.g. VBScript, JScript, PerlScript, Rexx-based WSH engines and others), and VSTA for this purpose. The WinWrap® Basic Component is compatible with VBA, Sax Basic, VB.NET and Visual Basic 6.0 style scripts.
Scriptable Application |
Debugger |
Breakpoints |
Non-Blocking |
Scriptable Architecture |
Auto Completion |
Parameter Info |
Access .NET Framework |
Use your application's own object model and the WinWrap® Basic scripting control to create a scriptable application.
THIS EXAMPLE ILLUSTRATES HOW!!! See this ScriptableObjectModel example at GitHub https://github.com/WinWrap/HowtoExamples. You can also download the WinWrap HowtoExamples zipfile. To run this example in Visual Studio, open ScriptableObjectModel.sln.
Define a shared interface used by both the host application and the language extensions. The WinWrap® Basic autocompletion capability provides builtin documentation for your users when they write scripts. This is builtin documentation for the scripting language, for your applications language extensions, and for Microsoft .NET classes and objects. End-users need autocompletion and its builtin documentation.
Ship a complete environment for creating and debugging end-user scripts. End-users can debug their WinWrap® Basic scripts. Macro editing, execution and debugging are supported through the IDE embedded in the host application.
Click on the pause button to pause execution.
Other debugging features:
WinWrap® Basic running scripts do not block the calling application. The WinWrap® Basic scripting control process Windows message 10 times per second. This allows the scriptable application to run scripts in the same thread as the UI.
The sample application draws the red circles while the script is executing.
This application has the WinWrap® Basic IDE control beside a PictureBox control. EraseLines and DrawLine methods draw onto the PictureBox from the script. The scriptable application classes, methods, and events have full script edit autocompletion enabled in the WinWrap® Basic IDE editor.
Available members are also shown.
The script below show how application methods like "DrawLine(x1, y1, x2, y2)" are incorporated seamlessly into the WinWrap® Basic scripting language. This gives your application automatic script editing documentation for your application's scriptable object model.
End-users can access any of thousands of .NET Framework classes. In this sample script System.Math's static field PI is used.
The application uses the AddScriptableObjectModel method to add the "scriptable" portions of the application's object model to the WWB.NET language.
During the Form Load event connect the ScriptingLanguage to the IDrawing instance and establish the scriptable object model used by WinWrap® Basic.
AddScriptableObjectModel adds a static scriptable class's methods, and events directly to the WinWrap® Basic scripting language. Types in the static class's name space are also added. Use the [Scriptable] attribute on a type or member to enable script access.
The scriptable members may need to access to non-scriptable portions of the host application. This sample uses the IDrawing interface for that purpose. Your scriptable application will use an interface of your own design.
In this sample application, it's Form1 that implements the members of the IDrawing interface which are used by the members of the ScriptingLanguage class.
WinWrap® Basic provides a comprehensive solution to adding scripting to your application. You and your customer can write script code that uses your application's objects. Scripts are validated for syntactic correctness. Scripts can be debugged. The application UI remains active during script execution. Scripts have full access to the .NET assemblies including the Microsoft .NET Foundation Classes.
This is a great way to script. This is a great way to add scripting to your application. Edit scripts with autocompletion. Debug scripts. Use .NET Foundation Classes. Run scripts while not blocking your application's UI.
Copyright Polar Engineering, Inc.