ScriptBasic => Download => Topic started by: Support on January 10, 2012, 07:09:47 pm

Title: scribaw
Post by: Support on January 10, 2012, 07:09:47 pm
Attached (see a few post down) is a 32 bit version of ScriptBasic for Windows that doesn't create a console window. Works great with IUP based GUI programs.

If you want to create a standalone Windows GUI executable without compiling, use the following command like switches with scribaw.

scribaw -Eo myGUIapp.exe

This appends the script to the end of a copy of scribaw which always checks for an attached script before running anything passed to it on the command line.

Another option for small standalone executable scripts is compiling them with C.

scribaw -Co myGUIapp.c

This will create a .exe GUI program in the range of 50 to 100K  and use libscriba.dll for the runtime library.

Title: Re: scribaw
Post by: Support on January 11, 2012, 11:41:53 am
I noticed that scribaw.exe with the current iup.dll wasn't allowing the XP theme to work. Since the ScriptBasic interpreter is now a true windows program (not a console application) the responsibility of theme suport seems to have shifted to the interpreter. If you add the following manifest file to where you have scribaw.exe located, theme support should work again. I'm working in getting this linked in as a resource and eliminate the manifest file all together.

Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<description>Iup Application</description>

Save the file as scribaw.exe.manifest.
Title: Re: scribaw
Post by: Support on January 11, 2012, 12:41:19 pm
The attached zip contains scribaw.exe the has the manifest resource linked in. (no need for the scribaw.exe.manifest file any longer)

This actually worked out pretty well. I can use scriba.exe (console version) for development and debugging and scribaw.exe for running the completed application.

It would great if someone can give this a try on Windows 7. I only have XP SP3 in a VirtualBox under Linux. A screen shot of any of the example code I posted would be a big plus.

Title: Re: scribaw
Post by: Support on January 12, 2012, 11:42:45 pm
If you use the -Eo option and make a .exe of your application, the iup.dll (SB version) is the only other dependency you have.

Thanks for testing ScriptBasic and providing your feedback. Your request initiated the true Windows version (not a console application) of ScriptBasic.