Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Sprite Drag - Confine to stage
Camtasia
Display Full Screen
Slide show
BitChecker
Director To Go
tea Xtra
PowerPoint Import Xtra (FREE)
Drifter
Popup Text List Menu
 

 

 

Xtra Device Xtra

Added on 4/7/2007

 

Compatibilities:
D7 D8 D8_5 D9 PC

This item has not yet been rated

Author: kfink (website)

This is a scripting xtra for Macromedia/Adobe Director. It allows you to view installed devices on the PC as well as provides communication with HID-USB devices.

Price: $0
Mediamacros makes no guarantees that this price is correct

Get the Xtra
Device Xtra
CLICK HERE TO DOWNLOAD!

ABOUT

Created by Kevin Richard Fink
April 5th 2007

Complete features: (stable)

HasNext() -- Returns true if their are any messages received from UDP,
TCP or HID USB

GetNext() -- Returns the next message in the queue received from UDP,
TCP or HID USB

DestroyAllThreads() -- Stops all UDP, TCP, and HID communications

GetListOfDevices() -- Returns a list of every device connected to
the computer.


Beta features: (unstable)

GetListOfHIDDevices() -- Returns the VendorID, VersionNumber and
ProductID of all HID devices connected to your computer.

Alpha features: (Untested) -- Avoid using these

SendDataToHIDDevice(Message) -- sends a message up to 64kbytes to
the first active USB device... avoid multiple USB connections on the same
xtra object. Returns -1 if you did not create a USB connection.

InitGetDataFromHIDDevice( vendorID, ProductID, VersionNumber) --
Creates a communication for the specified USB device


INSTALLATION

Simply extract and copy "DeviceXtra.x32" to your xtra directory of your Director Installation


HOW TO USE

-----------------------------------------------------------------------------
HasNext (Object me)

DESCRIPTION:

This function returns true if their are messages that have not yet
been processed.

USAGE:

object = new(xtra "DeviceXtra")
if object.hasNext() then
alert "THERE IS A NEW MESSAGE!!"
end if

-----------------------------------------------------------------------------
GetNext (Object me)

DESCRIPTION:

This function returns any messages that have not yet been sent to
director, or -1 if their is no messages. For USB it will return a string.

USAGE:

object = new(xtra "DeviceXtra")
if object.hasNext() then
alert object.getNext()
end if

-----------------------------------------------------------------------------
DestroyAllThreads (Object me)

DESCRIPTION:

Basically a closing parameter in this application, it ensures that the memory is
cleaned of any remaining unread messages and closes all open ports that it was using.

USAGE:

object = new(xtra "DeviceXtra")
object.DestroyAllThreads()

-----------------------------------------------------------------------------
GetListOfDevices (Object me)

DESCRIPTION:

Returns a list containing all devices connected to the pc.

USAGE:

object = new(xtra "DeviceXtra")
put object.getListOfDevices()

-----------------------------------------------------------------------------
GetListOfHIDDevices (Object me)

DESCRIPTION:

Returns a list containing all connected HID devices connected to the pc.
Each entry of the list consists of a versionID, versionNumber and a productID

USAGE:

object = new(xtra "DeviceXtra")
put object.getListOfHIDDevices()

-----------------------------------------------------------------------------
SendDataToHIDDevices (Object me, String Message)

DESCRIPTION:

Sends a message to a connected HID device. Extremely unstable.

USAGE:

object = new(xtra "DeviceXtra")
put object.sendDataToHIDDevices("Message")

-----------------------------------------------------------------------------
InitGetDataFromHIDDevice (Object me, Integer vendorID, Integer productID, Integer versionNumber)

DESCRIPTION:

Starts a thread to get all incoming data from the specified USB device...
0 for any value becomes a wildcard. Be as specific as possible to connect to the
right device. Extremely unstable.


USAGE:

object = new(xtra "DeviceXtra")
put object.InitGetDataFromHIDDevice(vendorID, productID, versionNumber)

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail