This UserLibrary allows you to access your LEGO NXT roboter with PureBasic. Support for older LEGO Mindstorms roboter's is in the works.
Features
Full access to all motors
Full access to all sensors
Full access to the filesystem
Loop through all available roboters
Handle multiple NXT's within the same program
Play sounds and tones
Start any program directly
Query a lot of useful information
and much more...
Some features are untested, but nearly everything should work without trouble. There is no real documentation yet, but the examples should be able to teach you all the stuff.
Here is a screenshot showing one example tool (german):