Main Menu
 Login  |  Register! 
plugins is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)
Plug-Ins

Function Library: A collection of useful functions for NeoBook's Function Library. The Function Library is a place where you can store groups of often-used Action commands. These groups, or functions, then can be accessed from your publications at any time using NeoB

Pages: (1) 2 »

NeoThinBasic  v1.06  
Download Now (0 Bytes) Publisher's Home Page
NeoThinBasic is a plugin that works as "Bridge" between NeoBook and ThinBasic.
ThinBasic is an interpreted language, like NeoBook.
ThinBasic syntax is like VBScript, but very very very more robust.
ThinBasic run its programs like a rocket, specially indicated for very complex or recursive process.
ThinBasic has the capability to work in Console Mode, Windowed Mode or Special Window Mode, such as OpenGL programs.
You can run programs without any kind of interface also.
ThinBasic has a very big set of functions, you can learn about them with the help file or using the online help at:
http://www.thinbasic.org/public/applications/thinbasic/onlyforyoureyes/HTML/index.html?introducingthinbasic.htm

The download link of the plugin is:
https://app.box.com/s/vjm9bx240m354wzfbjgp

Features

At this moment, you can do the following actions:

a) at NeoBook side:

ae_TB_Reset: Resets all ThinBasic engine.
ae_TB_Init: Inits the ThinBasic engine.
ae_TB_LoadScript: Loads a *.tBasic file.
ae_TB_GetParametersList:  Gets the Global variables of the .tBasic file Before Run.
ae_TB_SetVar: Changes / Assigns value to a ThinBasic variable
ae_TB_Run: Runs the ThinBasic .tBasic program file.
ae_TB_GetScriptVariables: Gets a list of the Script Variables After Run.
ae_TB_GetVar: Get the value of a ThinBasic variable After Run.
ae_TB_SendCommand: Interacts with ThinBasic CallBack Function, sending commands.

*.tBasic files are the source code of thinBasic, like the *.PUB into NeoBook.
This files are plain text, and can be edited using any text editor, like notepad.

b) at ThinBasic side:

In order to use this functions, you need declare into your tBasic program the following lines:
 
Declare SUB PlayScript Lib "<<<LIBRARYLOCATION>>>" (BYVAL Script as string)
Declare SUB SetVariable Lib "<<<LIBRARYLOCATION>>>" (BYVAL Variable as String, BYVAL sValue as String)
Declare FUNCTION GetVariable Lib "<<<LIBRARYLOCATION>>>" (ByRef VarName AS STRING) as String
Declare FUNCTION GetObjectHandle Lib "<<<LIBRARYLOCATION>>>" (ByRef sname AS STRING) AS LONG

PlayScript: Sends Actions to be executed by NeoBook.
SetVariable: Sets / Changes a NeoBook variable value.
GetVariable: Gets the Value of a NeoBook Variable.
GetObjectHandle: Get the handle of a NeoBook Object.


a brief explanation of the mode of use of each action:

ae_TB_Reset
Purpose: Reset all ThinBasic engine.
Usage: ae_TB_Reset 
Arguments: None
Returns: [ae_TB_InitStatus] Variable. Could be "Ok" or "Error"

ae_TB_Init
Purpose: Init ThinBasic engine.
Usage: ae_TB_Init
Arguments: None
Returns: [ae_TB_InitStatus] Variable. Could be "Ok" or "Error"

ae_TB_LoadScript
Purpose: load a ThinBasic source code from file or variable.
Usage: ae_TB_LoadScript "FileName or Text" "F or V or X"
Arguments: 
FileName or Text: the fullpath to the.tBasic file or the variable with the thinBasic source code
Input Type: F for File or V for Variable (or string directly) or X for Encrypt File. Usage only one letter: F or V or X
Returns: None

ae_TB_GetParametersList
Purpose: Get a List of the parameters used into the thinBasic source code BEFORE RUN
The parameters are the variables you need set before run the script.
you could add any parameters adding into the thinBasic source code the following format
'<<<ParameterName>>>
Note the single quote at the begin of the text. 
thinBasic example:
 
Global YourName as string  'Always declare as Global the variable before use it
'<<<YourName>>>
MsgBox (0, "Hello " & YourName)
 
Usage: ae_TB_GetParametersList "ReturnVar" "Delimiter"
Arguments: 
ReturnVar: Is the name of the NeoBook Variable to put the list of parameters
Delimiter: is the character to separate the Parameters. Usually [#13][#10] (best to use into a ListBox)
Returns: [ReturnVar] NeoBook Variable.


ae_TB_SetVar
Purpose: Changes / Assigns value to a ThinBasic variable
You must declare the variable previous to set the value
 
Global YourName as string  'Always declare as Global the variable before use it
'<<<YourName>>>
 
Usage: ae_TB_SetVar "VarName" "VarValue" "VarType" 
Arguments: 
VarName: The Name of the ThinBasic Variable (in the sample: "YourName"
VarValue: The value for the ThinBasic Variable, like "David", "John Doe", etc
VarType: N for Numeric variable, S for string Variable.
Using previous sample, the function should be something like:
ae_TB_SetVar "YourName" "John Doe" "S"
Returns: [ae_TB_Data] Variable, with all ThinBasic source addapted with the new variable value


ae_TB_Run
Purpose: Run the ThinBasic program
Usage: ae_TB_Run "Registration Key"
Arguments: 
Registration Key: is the key i provide you.
Returns: No variables. is program-dependant.

ae_TB_GetScriptVariables
Purpose: Get a List of the parameters used into the thinBasic source code  AFTER RUN
Usage: ae_TB_GetScriptVariables "ReturnVar" "Delimiter" 
Arguments: 
ReturnVar: Is the name of the NeoBook Variable to put the list of parameters
Delimiter: is the character to separate the Parameters. Usually [#13][#10] (best to use into a ListBox)
Returns: [ReturnVar] NeoBook Variable.

ae_TB_GetVar
Purpose: Get the value of a thinBasic Variable after run
Usage: ae_TB_GetVar "ThinBasicVar" "NeoReturnVar"
Arguments: 
ThinBasicVar: is the name of the ThinBasic variable
NeoReturnVar: is the name of the NeoBook Return Variable
Returns: 
[NeoReturnVar.Type] Variable. Could be "S" for String or "N" for Numeric
[NeoReturnVar.Value] Variable. The value of the variable

ae_TB_SendCommand
Purpose: Interacts with the Callback thinBasic function, sending commands. Is the way to run functions within the thinBasic program.
Usage: ae_TB_SendCommand "ThinBasicWinHandle" "Message" "Value"
Arguments: 
ThinBasicWinHandle: is the handle of the ThinBasic dialog or window
Message: is the command you send to the Callback function. usually "273" (WM_COMMAND)
Value: the number of message that be processed by the Callback function.
Returns: None. is program-dependant

PlayScript
Purpose: Execute a NeoBook Action or SubRoutine
Usage: PlayScript "NeoBookAction"
Arguments: 
NeoBookAction: Like: "Gosub " + $DQ + "NeoFunction" + $DQ
Example:
 
Local sAction as string
sAction = "AlertBox " + $DQ + "ThinBasic Executes NeoBook" + $DQ + " " + $DQ + "Hello World, Hello NeoBook" + $DQ
PlayScript(sAction)
 
Returns: None. is program-dependant

SetVariable
Purpose: Change / assign value to a NeoBook Variable
Usage: SetVariable "NeoBookVar" "Value"
Arguments: 
NeoBookVar: The NeoBook Variable
Value: The value to store into
Example:

SetVariable("NeoVar", "Hello World")
Returns: None

GetVariable
Purpose: Get the value from a NeoBook Variable
Usage: ThinBasicVar = GetVariable "NeoBookVar"
Arguments: 
NeoBookVar: The NeoBook Variable
Example:
 
Local ReturnString as string
ReturnString = GetVariable("NeoVar")
Returns: ThinBasicVar

GetObjectHandle
Purpose: Get the handle of a NeoBook Object
Usage: ThinBasicVar = GetObjectHandle "NeoBookObject"
Arguments: 
NeoBookObject: The NeoBook Object, like "Button1"
Example:
 
Local ReturnLong as Long
ReturnLong = GetObjectHandle("Button1")
Returns: ThinBasicVar

Structure of a ThinBasic Program
This help does not replace the Help File, please read it for detailed explanations

First Directive: USES
Tells to a ThinBasic what kind of services you need into the program
Examples:
Uses "Console"
Uses "UI"  (For windowed programs)
Uses "Math" (for combination or permutations)
Uses "OS" (for OS enviroment functions)
etc

Second directive:
Declare (if needed) the 4 functions for communication with NeoBook
 
Declare SUB PlayScript Lib "<<<LIBRARYLOCATION>>>" (BYVAL Script as string)
Declare SUB SetVariable Lib "<<<LIBRARYLOCATION>>>" (BYVAL Variable as String, BYVAL sValue as String)
Declare FUNCTION GetVariable Lib "<<<LIBRARYLOCATION>>>" (ByRef VarName AS STRING) as String
Declare FUNCTION GetObjectHandle Lib "<<<LIBRARYLOCATION>>>" (ByRef sname AS STRING) AS LONG
 
let <<<LIBRARYLOCATION>>>  as is, Plugin assigns the correct path

Third Directive: Declare all Global Variables you must use in combination with NeoBook
 
Global sVarName as string
Global nVarAge as long
Global sVarAddress as string
'<<<sVarName>>>
'<<<nVarAge>>>
'<<<sVarAddreess>>>


Fourth directive: Your main program goes here.

Fiveth directive: the callback function (if any) goes here

With all this settings you can do your own tBasic programs.
I will put a lot of samples on the following posts.

Have fun !
David de Argentina
Price: $19.95 | Platform: NeoBook 4/5 | License: Shareware | Limitations: Nag Screen
User Reviews (1) | Rate this Plug-In | Report Broken Link | Recommend

Popup Calendar using NB objects/function only  
Download Now (0 Bytes) Publisher's Home Page

This is a popup calendar using NB objects and an NB function.

 Details on usage and how to download are available on the Neosoftware forum using the download link for this page.

A compiled demo is also available as the demo requires installing a function (provided) into your NB environment.


When used to create a popup:

Price: Free | Platform: NeoBook 5 | License: Freeware | Limitations: None
User Reviews (0) | Rate this Plug-In | Report Broken Link | Recommend

WebForms Function  v0.9    
Download Now (0 Bytes) Publisher's Home Page

This is actually two NB functions: WebFormsCreate and WebFormsGetVal

WebFormsCreate allows you to dynamically create HTML data forms with all the data types available in HTML.

WebFormsGetVal is a NB based forms processor that works with HTML forms created with WebFormsCreate.

More details about the functions and a description of the Demo.pub included in the zip file are on this NB forum page.

WebForms Function Demo

Price: Free | Platform: NeoBook 4/5 | License: None | Limitations: None
User Reviews (0) | Rate this Plug-In | Report Broken Link | Recommend

Set Multiple Variables  
Download Now (0 Bytes)

You can set mutlple variables at one time using this function.

Price: Free | Platform: NeoBook 4/5 | License: None | Limitations: None
User Reviews (0) | Rate this Plug-In | Report Broken Link | Recommend

File and Folder functions  
Download Now (0 Bytes) Publisher's Home Page

These are VBS based functions you can call from within your NB application to give you a bit more access to files and folders.

 With these functions you can:

  • See file details (size/date/last accessed, etc)
  • Move/Copy/Rename/Delete files
  • See folder details (list of subfolders, size of content within, last accessed)
  • Move/Copy/Rename/Delete folders

Copy the folder from that page and save in your Functions folder (in your NB install folder). Then use the call command. You will be prompted for parameters.

Price: Free | Platform: NeoBook 4/5 | License: None | Limitations: None
User Reviews (0) | Rate this Plug-In | Report Broken Link | Recommend

Get File Date  
Download Now (0 Bytes)

If you need to get the date of a file:

 

{NeoBook Function}
Version=5.70
Language=VBScript
Comment=Gets date of file
Param=[%1]|Variable|Path to selected file
Param=[%2]|Variable|File of which date is requested
Param=[%3]|Variable|Variable with file's date
{End}
Dim filesys, selectedfile, createdate
filename = publication.nbGetVar( "[%1]\[%2]" )
Set filesys = CreateObject("Scripting.FileSystemObject")
Set selectedfile = filesys.GetFile(filename)
createdate = selectedfile.DateCreated
publication.nbSetVar "[%3]", createdate
 

Price: Free | Platform: NeoBook 4/5 | License: None | Limitations: None
User Reviews (0) | Rate this Plug-In | Report Broken Link | Recommend

Reverse String  
Download Now (0 Bytes) Publisher's Home Page

If you need to reverse a string to search right to left instead of left to right.

 

{NeoBook Function}
Version=5.70
Language=VBScript
{End}
DIM String2Reverse
DIM ReversedString
String2Reverse = publication.nbGetVar( "[String2Reverse]" )
ReversedString = StrReverse( String2Reverse )
publication.nbSetVar "[ReversedString]", ReversedString

 

Price: Free | Platform: NeoBook 4/5 | License: None | Limitations: None
User Reviews (0) | Rate this Plug-In | Report Broken Link | Recommend

Registry_Enumerate_SubKeys    
Download Now (0 Bytes) Publisher's Home Page

I have adapted several scripts into one NB function which will read registry subkeys of the top level registry folders and key values within those subkeys. The original work came was inspired by the MSDN site but I got my start from scripts on this site:

http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/registry/#EnumRegVals.htm

This function will write the list of subkeys to an NB varaible array. It does the same for a list of key values of the selected key. I have created a sample application that uses the function and you are free to use this as a base for your own work. It is created with only NB native functions (no plugins) together with the VBS function. You can drill down to lower levels by double clicking on the keys. You can also enter a known key and click the search button to get results.

There is a sample app to look at as well on forum page describing the function:

http://www.neosoftware.com/community/viewtopic.php?t=19258

 

Price: Free | Platform: NeoBook 4/5 | License: None | Limitations: None
User Reviews (0) | Rate this Plug-In | Report Broken Link | Recommend

Validate Email - using regex    
Download Now (0 Bytes) Publisher's Home Page

I have adapted a simple VB script from ASPFAQs.com to use RegEx to validate an email address. Note: this does not check if the address is a working email. It simply verifies the formatting (someone @ somedomain).

 So if you ask someone for their email in  your NB application, you can verify if the string they give you is in proper email format.

Price: Free | Platform: NeoBook 4/5 | License: None | Limitations: None
User Reviews (0) | Rate this Plug-In | Report Broken Link | Recommend

MD5 string hasher  
Download Now (0 Bytes) Publisher's Home Page

I have adapted the javascript to do an MD5 hash of a string from :

http://www.webtoolkit.info/javascript-md5.html

The code below is an NB function. It returns a variable: [MD5result]

Save the following as a NB function and when you call it in your app you will be prompted for the variable name that contains the string you want to hash.

This is only to hash STRINGS, not FILES.

A hash is a symbolic representation of an item. It is a 16 byte/character string. You can create a hash of a string containing important information and then transport the information to another person. They can identify if the string of information has been altered by comparing their hash of the item with yours.  Hashes cannot be reversed to create the original data.

Price: Free | Platform: NeoBook 4/5 | License: None | Limitations: None
User Reviews (0) | Rate this Plug-In | Report Broken Link | Recommend

Pages: (1) 2 »


New Plug-Ins
New Pubs
Search