Navigation
Home
Download
Register
Quotes datafiles
FAQ
Help
- Connect to email
- Manage signatures
- Screensaver
- Developer
 


   
 Introduction

For all of you who want to do more with Quotes than enhance email or  enjoy the screensaver here is how you can add Quotes to your website or Microsoft Word.
 
Quotes supports a COM interface so everybody who want to program against this interface from all Visual studio tools or Delphi can do this easily. You can read how on this page.
  

 VBA
In Microsoft Word and other tools that support the VBA (Visual basic for Applications) engine you can make your own macro's. 
  • In the macro menu select 'Macros'
  • In the Macro window type 'Quotes'
  • In the Macro window select 'Create'
  • In the Visual basic editor go to the menu 'tools'
  • In the menu 'tools' select references
  • In the references check 'Quotes'
  • In the Visual basic editor paste this code inside the Quotes sub(routine):

Dim oQuotes As Quotes.Data
Dim sQuote As String

Set oQuotes = New Quotes.Data

If oQuotes.GetQuote(sQuote) = True Then
     'This writes a Quote to a worddocument
     'write your own routine for Excel or another VBA tool
     Selection.TypeText sQuote & vbCrLf
End If

Set oQuotes = Nothing

 VBScript
Programming the internet with Active Server Pages or using your Windows scripting host (WSH) you can access Quotes like this.

Dim oQuotes
Dim sQuote

'You do not have to use the ASP server object in WSH 'just CreateObject will do.
Set oQuotes = Server.CreateObject("Quotes.Data")

If oQuotes.GetQuote(sQuote) = True Then
     'This writes a Quote to a HTML client using ASP
     'write your own routine for WSH
     response.write sQuote & vbCrLf
End If

Set oQuotes = Nothing
 COM
The Quotes COMponent consists contains three classes:
  • Quotes.Data for access to the Quotes files
  • Quotes.Settings for access to the Quotes settings
  • Quotes.Signature for access to your email signature files

Quotes.Data contains the following important methods:

  • GetQuote (for VBA and VBScript (variant datatypes) for other languages use the Read function)
  • Read: returns a string containing a random Quote
  • FileCount: Retrieves the number of Quotes data files in the files directory
  • RetrieveFileNames: Access to the Quotes data files
  • AddToDataFile: to add a new Quote to a data file
  • DeleteFromDataFile: to delete an existing Quotes from a data file
  • AddToClipboard: Adds data to your clipboard

Quotes.Settings contains the following important methods:

  • ReadRegKey: Read access to the Quotes registry (HKEY_CURRENT_USER/SOFTWARE/QUOTES)
  • SaveRegKey: Write access to the Quotes registry
  • DeleteValue: Deletes a Quotes setting in the registry
  • DeleteKey: Deletes the entire Quotes directory in the registry
  • QuotesPath: Returns the directory in which Quotes resides
  • QSaverPath: Returns the directory in which the Quotes screensaver resides
  • SetQuotesSaver: Sets the Quotes screensaver active in Windows
  • SetQuotesOnStartup: Activate or deactivate automatic Quotes startup

Quotes.Signature contains the following important methods:

  • SaveSignature: saves on of the signatures managed by Quotes with a new random Quote
  • Writefile: saves a specific file with specific data (supports RTF format)

 

 Motion plugins
You can write your own motion plugins for the Quotes screensaver. If you want to know more about this please contact us.
  
   
 On this page
Introduction
VBA
VBScript
COM
Motion plugins