Open AIM Code Samples

Enable the Subscriptions block here!

These code samples are included in the AIM SDK downloads. These samples are presented here to show the simplicity of using the AIM SDK. To actually build these samples, you'll want to download the AIM SDK to get the libraries and associated build files.

AIM Custom Clients (AIMCC) C++, C# and Java Samples

AIM Custom Client Sample (accsample)

This is a basic sample of an AIM client written in C++ that logs into AIM, has presence, and can receive messages. View File
  

AIM C# Client

This is a sample of an AIM client written in C# that logs into AIM, has presence, and can receive messages View File
  

Aim Custom Client Java Sample (accjsample)

This is a basic sample of an AIM client written in Java that logs onto AIM, has presence, and can receive messages View File
  

AIM Visual Basic Client

This is a sample of an AIM client written in Visual Basic that logs into AIM, has presence, and can receive messages View File

AIM Federated Signon Sample (accfed)

This is a sample written in C++ that logs into AIM using federated tokens and a session secret obtained from a Web AIM application. View File

AIM C++ Custom Client Sample (acccssample)

This is a sample written in C++ that demonstrates the custom session feature in the Open AIM SDK. This code works in both Windows and Linux. View File
  

 

 

AIM Bot Samples

Aim Bot C++ Sample (accjbot)

This is a sample of an AIM Bot written in C++ that logs onto AIM, has presence, and also can receive and send messages. This Bot plays the game Rock, Paper, Scissors". View File
  

Aim Bot Java Sample (accjbot)

This is a sample of an AIM Bot written in Java that logs onto AIM, has presence, and also can receive and send messages. This Bot stores IM messages and responds to commands "stats", "list", "remove", "add" and "quit". View File
  

BotTest Java Sample (BotTest)

BotTest is a full featured example Java Bot program with session management and menus capable of communicating with LDAP, MySql, Oracle and Google SOAP API. View File
  

 

 

AIM Plugin Samples

Aim Plugin in C++

This is a sample of an AIM Plugin written in C++ that demonstrates the basic requirements of an AIM plugin with a settings dialog. View File
  

Aim Plugin in C#

This is a sample of an AIM Plugin written in C# that adds a menu item to AIM client opens a MessageBox. View File
  

Aim Plugin Install Script

These files are sample plugin install scripts. These scripts are for use with NSIS, see NSIS for more info. View File

 

 

AIM Module Plugin Samples

  

HelloAMO.amo

A basic sample Module Plugin to use as a template for new Module Plugins. This includes settings and about for the Module Plugin. It shows how to add parameters in the plugin.xml. The full plugin package is included in the zip file available here. View File
  

doAction.amo

A Module Plugin that demonstrates the window.external.client, including:
  • The DoAction API
  • window.external.client.sendHttpRequest
  • findWindow(..)
  • All properties of window.external.client
  • window.external.prefs, the plugin's own prefs.
The full plugin package is included in the zip file available here.
View File
  

WindowTest.amo

A Module Plugin that demonstrates the window.external.window methods and properties. This sample also shows how to add a command to the Actions menu, and snag the command event in the Module Plugin to react to the menu. The full plugin package is included in the zip file available here. View File
  

SNSTest.amo

Demonstrates how to obtain and launch an authenticated URL seamlessly using SNS. The authenticated URL can be launched either in an external browser or within an amo window. Shows the use of client.requestTicketedURL(..) and how to hook the callback method, snsUrlCallback(..) which then can launch the authenticated URL. There are several alternatives available for launching the URL:
  • Launch using the API call window.external.client.openBrowser(..)
  • Launch using window.open(..)
  • Launch using window.external.window.openWindow(..)
The full plugin package is included in the zip file available here.
View File
  

Visual.amo

Demonstrates how to snag and use DAccEvents. The amo shows while the client in running the various DAccEvents and colorizes the background for different callbacks. Demonstrates the use of <param name="requiresSession" value="true"/> and <param name="requiresDom" value="true"/> in plugin.xml. Also shows the use of window.external.window.connect(..). The full plugin package is included in the zip file available here. View File
  

SecurityTest.amo

Demonstrates how to protect your Module Plugin. It shows how to add domains using the domains parameter, and how the AIM client protects the AIMcc primary session object from an amo accessing it without declaring the intent to use it. The full plugin package is included in the zip file available here. View File
  

HideSample.amo

Demonstrates how to keep your Module Plugin running in the background when it is closed, and how to set window.external.client.closeMode. The full plugin package is included in the zip file available here. View File
  

AIMccSample.amo

Demonstrates how use the AIMcc API to retrieve the primary user’s buddy list and the identity. This Module Plugin adds a menu item to the Actions menu which can be used to demonstrate the displaying of the BL. The full plugin package is included in the zip file available here. View File
  

JScriptTester.amo

A simple Module Plugin that allows you to run javascript within the AIM client. The full plugin package is included in the zip file available here. View File
  

 

 

Web AIM Samples

Buddy List Widget

This is a sample of how to use the Buddy List Widget. View File
   

IM Widget

This is a sample of how to use the IM Widget. View File
   

Presence Widget

This is a sample of how to use the Presence Widget. View File
   

How to Add an Icon to the Buddy List

This is a sample demonstrating how to add an icon to the Buddy List. View File
   

phpBB mod

This is a phpBB mod integrating Web AIM. View File