Re: [OT] G3 and USB 2

2010-10-29 Thread Richmond

On 10/30/2010 05:28 AM, -=>JB<=- wrote:

I forgot to mention also have the drive turned on.  In other words every
time you want to mount the drive have the computer shut down make
sure the drives are plugged in and turned on then boot the computer.

-=>JB<=-


On Oct 29, 2010, at 6:22 PM, -=>JB wrote:



Ah; could be the problem; end of plug-n-pray . . .  :)


Have tried shutting down the computer and rebooting with them
still plugged in?  If not that will probably mount them but it will
be the same everytime.

-=>JB<=-


On Oct 29, 2010, at 12:30 PM, Richmond wrote:


So; having got a generic USB 2.0 PCI card recognised in my
Back-to-the-Future G3 Mac I have started having a lot of 'fun' with it:

1. It works very well with my faithful Belkin Nostromo.

2. When I plug 2 external USB 2 hard-drives into it they are
not recognised AND nor is the Nostromo.

Queer or what?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] G3 and USB 2

2010-10-29 Thread Richmond

On 10/30/2010 04:22 AM, -=>JB<=- wrote:

Have tried shutting down the computer and rebooting with them
still plugged in?  If not that will probably mount them but it will
be the same everytime.

-=>JB<=-



That is exactly what I did.


On Oct 29, 2010, at 12:30 PM, Richmond wrote:


So; having got a generic USB 2.0 PCI card recognised in my
Back-to-the-Future G3 Mac I have started having a lot of 'fun' with it:

1. It works very well with my faithful Belkin Nostromo.

2. When I plug 2 external USB 2 hard-drives into it they are
 not recognised AND nor is the Nostromo.

Queer or what?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] G3 and USB 2

2010-10-29 Thread -=>JB<=-
Another important thing to remember is some drives like the LeCie drives
can be very touchy.  Do not use them to run programs or do much work is
the best way to prevent crashes so just use it for a back up drive.  And to
unmount the drive you might be safest shutting down the computer then
turning off the drive and rebooting your computer again instead of using
the normal unmount option.  I figured it out the hard way but your drive
may not give you the same problems I had.  And when I say I learned
the hard way I had to recover the drive which was more learning and
it does not always work recovering files.

-=>JB<=-



On Oct 29, 2010, at 7:28 PM, -=>JB wrote:

> I forgot to mention also have the drive turned on.  In other words every
> time you want to mount the drive have the computer shut down make
> sure the drives are plugged in and turned on then boot the computer.
> 
> -=>JB<=-
> 
> 
> On Oct 29, 2010, at 6:22 PM, -=>JB wrote:
> 
>> Have tried shutting down the computer and rebooting with them
>> still plugged in?  If not that will probably mount them but it will
>> be the same everytime.
>> 
>> -=>JB<=-
>> 
>> 
>> On Oct 29, 2010, at 12:30 PM, Richmond wrote:
>> 
>>> So; having got a generic USB 2.0 PCI card recognised in my
>>> Back-to-the-Future G3 Mac I have started having a lot of 'fun' with it:
>>> 
>>> 1. It works very well with my faithful Belkin Nostromo.
>>> 
>>> 2. When I plug 2 external USB 2 hard-drives into it they are
>>>   not recognised AND nor is the Nostromo.
>>> 
>>> Queer or what?
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>> 
>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] G3 and USB 2

2010-10-29 Thread -=>JB<=-
I forgot to mention also have the drive turned on.  In other words every
time you want to mount the drive have the computer shut down make
sure the drives are plugged in and turned on then boot the computer.

-=>JB<=-


On Oct 29, 2010, at 6:22 PM, -=>JB wrote:

> Have tried shutting down the computer and rebooting with them
> still plugged in?  If not that will probably mount them but it will
> be the same everytime.
> 
> -=>JB<=-
> 
> 
> On Oct 29, 2010, at 12:30 PM, Richmond wrote:
> 
>> So; having got a generic USB 2.0 PCI card recognised in my
>> Back-to-the-Future G3 Mac I have started having a lot of 'fun' with it:
>> 
>> 1. It works very well with my faithful Belkin Nostromo.
>> 
>> 2. When I plug 2 external USB 2 hard-drives into it they are
>>not recognised AND nor is the Nostromo.
>> 
>> Queer or what?
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] G3 and USB 2

2010-10-29 Thread -=>JB<=-
Have tried shutting down the computer and rebooting with them
still plugged in?  If not that will probably mount them but it will
be the same everytime.

-=>JB<=-


On Oct 29, 2010, at 12:30 PM, Richmond wrote:

> So; having got a generic USB 2.0 PCI card recognised in my
> Back-to-the-Future G3 Mac I have started having a lot of 'fun' with it:
> 
> 1. It works very well with my faithful Belkin Nostromo.
> 
> 2. When I plug 2 external USB 2 hard-drives into it they are
> not recognised AND nor is the Nostromo.
> 
> Queer or what?
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[OT] G3 and USB 2

2010-10-29 Thread Richmond

So; having got a generic USB 2.0 PCI card recognised in my
Back-to-the-Future G3 Mac I have started having a lot of 'fun' with it:

1. It works very well with my faithful Belkin Nostromo.

2. When I plug 2 external USB 2 hard-drives into it they are
 not recognised AND nor is the Nostromo.

Queer or what?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[OT] USB 2.0 PCI card in a G3 Mac

2010-10-20 Thread Richmond

 Anybody with any drivers / ideas ?

sincerely, Richmond.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-10-02 Thread David Glasgow



On 29 Sep 2010, at 6:00 pm, -=>JB<=- wrote:

> 
> Exactly and that is why I did not mention it in my first response
> because it sounded to me like he wanted to write code that is
> going to allow his program to communicate with a USD device
> and not depend on anything but his program.

You are correct in what you understood, that would be ideal - and I am sure 
would be valuable to many LiveCode users.  

However, I am desperate to know whether my idea will work or not, so, I can do 
some development & testing work using USBOverdrive, and then worry about how to 
package it all up neatly (and cross platform) later, if it does work.


Best Wishes,

David Glasgow
Carlton Glasgow Partnership

i-psych.co.uk
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-10-01 Thread -=>JB<=-
You are welcome.  If the problem bugs you a lot maybe try
contacting the developer and explain it.  Possibly he will
fix it for you sometime or tell you a work around solution.

-=>JB<=-


On Oct 1, 2010, at 12:29 AM, David Glasgow wrote:

> 
> 
> On 28 Sep 2010, at 6:00 pm, -=>JB<=- wrote:
>> 
>> 
>> 
>> On Mac I use USB Overdrive.
>> 
>> http://www.usboverdrive.com/USBOverdrive/News.html
>> 
>> -=>JB<=-
> 
> Thanks for the suggestion.
> 
> I downloaded this shareware, and it does the trick on Mac.  You can set it up 
> so a joystick generates rawkey messages.  This won't be  a solution for 
> delivering a final product, but at least I will be able to do some 
> development work.
> 
> The only fly in the ointment is that even when disabled, USBOverdrive blocks 
> scrolling on my Magic Mouse.  It is bad enough that I travel England stroking 
> other people's mice and shouting "D,Oh!" but now I do it on my own mouse.
> 
> Best Wishes,
> 
> David Glasgow
> Carlton Glasgow Partnership
> 
> i-psych.co.uk
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-10-01 Thread David Glasgow


On 28 Sep 2010, at 6:00 pm, -=>JB<=- wrote:
> 
> 
> 
> On Mac I use USB Overdrive.
> 
> http://www.usboverdrive.com/USBOverdrive/News.html
> 
> -=>JB<=-

Thanks for the suggestion.

I downloaded this shareware, and it does the trick on Mac.  You can set it up 
so a joystick generates rawkey messages.  This won't be  a solution for 
delivering a final product, but at least I will be able to do some development 
work.

The only fly in the ointment is that even when disabled, USBOverdrive blocks 
scrolling on my Magic Mouse.  It is bad enough that I travel England stroking 
other people's mice and shouting "D,Oh!" but now I do it on my own mouse.

Best Wishes,

David Glasgow
Carlton Glasgow Partnership

i-psych.co.uk


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-29 Thread -=>JB<=-
Exactly and that is why I did not mention it in my first response
because it sounded to me like he wanted to write code that is
going to allow his program to communicate with a USD device
and not depend on anything but his program.

Which brings us back to my answer that I was writing a stack
that uses the serial port commands.  I can send it to anyone
who wants it and it will open the port and allow you to send
text but after a certain amount of text is sent nothing else will
be sent which makes me think Rev is using a memory buffer
that fills up and unless you can empty this buffer you will not
be able to send more text.

I found to communicate with a USD device on a mac with Rev
which is now Livecode you need to open the serial port and
then you need a driver to communicate with the USB device.
Someone gave me a driver that might work but I never finished
the stack for a couple of reasons.  One of the reasons was the
problem of the buffer overflow or what ever is causing things
to stop.  At the time Mark Schonewille was thinking the file
might need to be sent as a binary so I coded it to be sent as
a binary and the problem was exactly the same.  It might be
possible to use the ADT commands to control the buffer if
you are using a modem but even if you can I am not sure
if they would work on everything.

So it sounds if he wants to do it he will need to rely on some
external programs like you mentioned but if anyone knows
the answer or wants the serial port stack I have created to
test please let me know.

-=>JB<=-


On Sep 28, 2010, at 10:17 PM, Richmond wrote:

> On 09/29/2010 01:05 AM, -=>JB<=- wrote:
>> The info below is from the USB Overdrive docs.
>> 
>> • Introduction
>> ◊  The USB Overdrive is a universal USB driver that handles all USB mice, 
>> trackballs, joysticks and gamepads from any manufacturer and lets you 
>> configure them either globally or on an application-specific basis. It reads 
>> all kinds of wheels, buttons, switches and controls and supports scrolling, 
>> keyboard emulation, launching as well as all the usual stuff like clicking, 
>> control-clicking and so forth. The USB Overdrive can easily handle several 
>> USB devices at once- I have two mice, one trackball, two joysticks and one 
>> gamepad connected to the same iMac, and each of them comes from a different 
>> manufacturer.
>> ◊  Because each control in each device can be fully configured, the USB 
>> Overdrive lets you use any joystick or gamepad with any game, including the 
>> ones that don't support Apple's InputSprocket. You can map your joystick 
>> movements and buttons to the keyboard and mouse to make the game believe 
>> you're playing on the keyboard, and you can do this mapping separately for 
>> each game so that it's immediately available as soon as the game is launched.
>> ◊  The mouse settings allow you to speed up your daily tasks by assigning 
>> useful actions to all the extra buttons and wheels in your USB mouse. You'll 
>> typically want to assign a control-click to the right button for easy 
>> contextual menu acces, and enable document scrolling if your mouse has a 
>> scrolling wheel.
>> ◊  The Control Panel includes an active help feature that explains each 
>> command and option as you move the cursor around.
>> 
>> -=>JB<=-
>> 
>> 
> Of course this STILL means an end-user has to install something other than 
> just a RunRev / LiveCode
> standalone.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-28 Thread Richmond

 On 09/29/2010 01:05 AM, -=>JB<=- wrote:

The info below is from the USB Overdrive docs.

• Introduction
◊  The USB Overdrive is a universal USB driver that handles all USB mice, 
trackballs, joysticks and gamepads from any manufacturer and lets you configure 
them either globally or on an application-specific basis. It reads all kinds of 
wheels, buttons, switches and controls and supports scrolling, keyboard 
emulation, launching as well as all the usual stuff like clicking, 
control-clicking and so forth. The USB Overdrive can easily handle several USB 
devices at once- I have two mice, one trackball, two joysticks and one gamepad 
connected to the same iMac, and each of them comes from a different 
manufacturer.
◊  Because each control in each device can be fully configured, the USB 
Overdrive lets you use any joystick or gamepad with any game, including the 
ones that don't support Apple's InputSprocket. You can map your joystick 
movements and buttons to the keyboard and mouse to make the game believe you're 
playing on the keyboard, and you can do this mapping separately for each game 
so that it's immediately available as soon as the game is launched.
◊  The mouse settings allow you to speed up your daily tasks by assigning 
useful actions to all the extra buttons and wheels in your USB mouse. You'll 
typically want to assign a control-click to the right button for easy 
contextual menu acces, and enable document scrolling if your mouse has a 
scrolling wheel.
◊  The Control Panel includes an active help feature that explains each command 
and option as you move the cursor around.

-=>JB<=-


 Of course this STILL means an end-user has to install something other 
than just a RunRev / LiveCode

standalone.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-28 Thread -=>JB<=-
The info below is from the USB Overdrive docs.

• Introduction
◊  The USB Overdrive is a universal USB driver that handles all USB mice, 
trackballs, joysticks and gamepads from any manufacturer and lets you configure 
them either globally or on an application-specific basis. It reads all kinds of 
wheels, buttons, switches and controls and supports scrolling, keyboard 
emulation, launching as well as all the usual stuff like clicking, 
control-clicking and so forth. The USB Overdrive can easily handle several USB 
devices at once- I have two mice, one trackball, two joysticks and one gamepad 
connected to the same iMac, and each of them comes from a different 
manufacturer.
◊  Because each control in each device can be fully configured, the USB 
Overdrive lets you use any joystick or gamepad with any game, including the 
ones that don't support Apple's InputSprocket. You can map your joystick 
movements and buttons to the keyboard and mouse to make the game believe you're 
playing on the keyboard, and you can do this mapping separately for each game 
so that it's immediately available as soon as the game is launched.
◊  The mouse settings allow you to speed up your daily tasks by assigning 
useful actions to all the extra buttons and wheels in your USB mouse. You'll 
typically want to assign a control-click to the right button for easy 
contextual menu acces, and enable document scrolling if your mouse has a 
scrolling wheel.
◊  The Control Panel includes an active help feature that explains each command 
and option as you move the cursor around.

-=>JB<=-


On Sep 28, 2010, at 2:56 PM, Dar Scott wrote:

> How does that work?  Do you still open it as a joystick device or does 
> USBoverdrive convert the joystick to some other device?  Does this do more 
> than calibrate the joystick?  -- Dar
> 
> On Sep 28, 2010, at 3:42 PM, -=>JB<=- wrote:
> 
>> I don't know but the developer sounds like they are
>> continuing to improve it from the info they provide
>> and might even add something if asked since they
>> have listed a number of things they have recently
>> added.
>> 
>> -=>JB<=-
>> 
>> 
>> On Sep 28, 2010, at 7:27 AM, Richmond wrote:
>> 
>>> On 09/28/2010 01:38 PM, -=>JB<=- wrote:
>>>> On Mac I use USB Overdrive.
>>>> 
>>>> http://www.usboverdrive.com/USBOverdrive/News.html
>>>> 
>>>> -=>JB<=-
>>>> 
>>>> 
>>> 
>>> Will that take signals from any USB mouse / trackball / joystick / 
>>> steering-wheel / foot-pedal
>>> and output them as keyDowns ??/
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>> 
>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-28 Thread Dar Scott
How does that work?  Do you still open it as a joystick device or  
does USBoverdrive convert the joystick to some other device?  Does  
this do more than calibrate the joystick?  -- Dar


On Sep 28, 2010, at 3:42 PM, -=>JB<=- wrote:


I don't know but the developer sounds like they are
continuing to improve it from the info they provide
and might even add something if asked since they
have listed a number of things they have recently
added.

-=>JB<=-


On Sep 28, 2010, at 7:27 AM, Richmond wrote:


On 09/28/2010 01:38 PM, -=>JB<=- wrote:

On Mac I use USB Overdrive.

http://www.usboverdrive.com/USBOverdrive/News.html

-=>JB<=-




Will that take signals from any USB mouse / trackball / joystick /  
steering-wheel / foot-pedal

and output them as keyDowns ??/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-28 Thread -=>JB<=-
I don't know but the developer sounds like they are
continuing to improve it from the info they provide
and might even add something if asked since they
have listed a number of things they have recently
added.

-=>JB<=-


On Sep 28, 2010, at 7:27 AM, Richmond wrote:

> On 09/28/2010 01:38 PM, -=>JB<=- wrote:
>> On Mac I use USB Overdrive.
>> 
>> http://www.usboverdrive.com/USBOverdrive/News.html
>> 
>> -=>JB<=-
>> 
>> 
> 
> Will that take signals from any USB mouse / trackball / joystick / 
> steering-wheel / foot-pedal
> and output them as keyDowns ??/
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-28 Thread René Micout
And musical keyboard ?

Le 28 sept. 2010 à 16:27, Richmond a écrit :

> On 09/28/2010 01:38 PM, -=>JB<=- wrote:
>> On Mac I use USB Overdrive.
>> 
>> http://www.usboverdrive.com/USBOverdrive/News.html
>> 
>> -=>JB<=-
>> 
>> 
> 
> Will that take signals from any USB mouse / trackball / joystick / 
> steering-wheel / foot-pedal
> and output them as keyDowns ??/
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-28 Thread Richmond

 On 09/28/2010 01:38 PM, -=>JB<=- wrote:

On Mac I use USB Overdrive.

http://www.usboverdrive.com/USBOverdrive/News.html

-=>JB<=-




Will that take signals from any USB mouse / trackball / joystick / 
steering-wheel / foot-pedal

and output them as keyDowns ??/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-28 Thread -=>JB<=-
On Mac I use USB Overdrive.

http://www.usboverdrive.com/USBOverdrive/News.html

-=>JB<=-



On Sep 28, 2010, at 3:20 AM, Richmond wrote:

> On 09/28/2010 09:44 AM, Andrew Kluthe wrote:
>> Would something that takes input from joystick and emulates it into
>> keystrokes be acceptable?
>> 
>> http://www.oneswitch.org.uk/2/I/JoyToKey/JoyToKey.htm
> 
> That looks jolly good: wonder if there are Mac and Linux equivalents?
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-28 Thread Richmond

 On 09/28/2010 09:44 AM, Andrew Kluthe wrote:

Would something that takes input from joystick and emulates it into
keystrokes be acceptable?

http://www.oneswitch.org.uk/2/I/JoyToKey/JoyToKey.htm


That looks jolly good: wonder if there are Mac and Linux equivalents?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-27 Thread Andrew Kluthe

Would something that takes input from joystick and emulates it into
keystrokes be acceptable?

http://www.oneswitch.org.uk/2/I/JoyToKey/JoyToKey.htm
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/data-from-USB-joystick-tp2714272p2716671.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-26 Thread stephen barncard
So that simple $20 USB joystick that Richmond mentioned is not the exact
solution that the original poster wanted?
That USB Service plus is great for labs but did you see the prices of that
stuff? And it probably has to be shipped from Germany.

On 26 September 2010 21:55, -=>JB<=-  wrote:

> If I understood him correctly he wants to plug any standard USD game
> device into his computer and control it with LiveCode.  For him to use
> the USB Service Plus gadget he might get it to work but then anyone
> using the game he develops would need to buy the gadget which is
> not going to happen so that idea does not seem suitable.
>
> I had mentioned I was working on a serial communications stack that
> was going to allow you to also control X10 and similar home control
> devices accessing a X10 USB or similar device with Livecode.  This
> appears to be feasible by opening the port with livecode and then
> using the right driver to access the USB device.
>
> The problem I had was after opening the serial port I was able to
> send a certain amount of text and then rev would not send anymore
> which makes me think they are using a memory buffer in their code
> that fills up.  So if that is what is happening even if you are able to
> control the USB device it will stop after the buffer is full which means
> you will need to close the port and open it again which empties the
> buffer allowing you to send the same amount of text again.  That is
> going to cause problems if you need to close the port and open it
> again during game play.
>
> -=>JB<=-
>
>
> On Sep 26, 2010, at 7:15 PM, dunb...@aol.com wrote:
>
> > The USB Service Plus gadget would do all this and be fun to work with as
> > well.
> >
> > http://www.bkohg.com/serviceusbplus_e.html
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  <http://www.google.com/profiles/sbarncar>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-26 Thread -=>JB<=-
If I understood him correctly he wants to plug any standard USD game
device into his computer and control it with LiveCode.  For him to use
the USB Service Plus gadget he might get it to work but then anyone
using the game he develops would need to buy the gadget which is
not going to happen so that idea does not seem suitable.

I had mentioned I was working on a serial communications stack that
was going to allow you to also control X10 and similar home control
devices accessing a X10 USB or similar device with Livecode.  This
appears to be feasible by opening the port with livecode and then
using the right driver to access the USB device.

The problem I had was after opening the serial port I was able to
send a certain amount of text and then rev would not send anymore
which makes me think they are using a memory buffer in their code
that fills up.  So if that is what is happening even if you are able to
control the USB device it will stop after the buffer is full which means
you will need to close the port and open it again which empties the
buffer allowing you to send the same amount of text again.  That is
going to cause problems if you need to close the port and open it
again during game play.

-=>JB<=-


On Sep 26, 2010, at 7:15 PM, dunb...@aol.com wrote:

> The USB Service Plus gadget would do all this and be fun to work with as 
> well.
> 
> http://www.bkohg.com/serviceusbplus_e.html
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-26 Thread DunbarX
The USB Service Plus gadget would do all this and be fun to work with as 
well.

http://www.bkohg.com/serviceusbplus_e.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-26 Thread Richmond

 On 09/26/2010 10:04 PM, stephen barncard wrote:

unless there's an extension mapping it to the keyboard routines. A
reasonable conclusion.It would be great someone made a joystick as easy
to read as barcode scanner.  It's ironic that the toughest to implement
interfaces were formerly the simplest. ( like the single - bit ports on the
Apple ][)

On 26 September 2010 13:57, Richmond  wrote:



 Cop a look at this:

http://www.legacyengineer.com/store.html

"Classic USB Joystick Controller"
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-26 Thread stephen barncard
unless there's an extension mapping it to the keyboard routines. A
reasonable conclusion.It would be great someone made a joystick as easy
to read as barcode scanner.  It's ironic that the toughest to implement
interfaces were formerly the simplest. ( like the single - bit ports on the
Apple ][)

On 26 September 2010 13:57, Richmond  wrote:

>  On 09/26/2010 09:54 PM, stephen barncard wrote:
>
>> Richmond, many people have tried and failed to grok the USB stuff, and the
>> HID manager appears to not be that simple as keydown. It's not a keyboard,
>> it's a totally different API.
>>
>>
> OK; my mistake was precipitated by my plugging my Nostromo into
> my "new" G3 running Mac OS 10.4.11 and getting an "unknown Keyboard"
> signal.
>
> ___
>


-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  <http://www.google.com/profiles/sbarncar>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-26 Thread Richmond

 On 09/26/2010 09:54 PM, stephen barncard wrote:

Richmond, many people have tried and failed to grok the USB stuff, and the
HID manager appears to not be that simple as keydown. It's not a keyboard,
it's a totally different API.



OK; my mistake was precipitated by my plugging my Nostromo into
my "new" G3 running Mac OS 10.4.11 and getting an "unknown Keyboard"
signal.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-26 Thread stephen barncard
Richmond, many people have tried and failed to grok the USB stuff, and the
HID manager appears to not be that simple as keydown. It's not a keyboard,
it's a totally different API.

http://developer.apple.com/library/mac/#samplecode/HID_Manager_Basics/Introduction/Intro.html

On 26 September 2010 12:25, Richmond Mathewson
wrote:

>
> My own inclinations would be to run round the corner and buy a crappy USB
> joystick and plug the
> thing in, and then set up some silly little stack that will pick up the
> signals from the USB stick
>
> [ they cannot be that other-worldly ]
>
> and see whether they can be interpreted as KeyDown, rawKeyDown type signals
> . . .
>
>
>
Stephen Barncard
San Francisco Ca. USA

more about sqb  <http://www.google.com/profiles/sbarncar>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-26 Thread Mark Wieder
stephen-

Sunday, September 26, 2010, 9:57:22 AM, you wrote:

> It's all on the net. Your cheapest and easiest solution is to use a Keyspan
> USB to serial adapter and Rs-232 serial protocol.

I seem to have acquired two of these contraptions through general
packratting and have no use for them right now. I'd be happy to offer
these to anyone for the postage.

http://www.tripplite.com/en/products/model.cfm?txtModelID=3915

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-26 Thread Richmond Mathewson

 On 26/09/2010 19:57PM, stephen barncard wrote:

It's all on the net. Your cheapest and easiest solution is to use a Keyspan
USB to serial adapter and Rs-232 serial protocol. Here's one hit from
searching google for "joystick rs232". Sooner or later, some soldering may
be required.

Interfacing Atari-style joysticks to PC parallel and serial
ports<http://www.epanorama.net/documents/joystick/pc_misc.html>




I think the above is missing the point; presumably David has a USB 
joystick and a USB port
on his target computer; so no need to do "the down-and-dirty" with the 
soldering iron.


What he needs to do is ascertain is, for example, whether the USB 
joystick sends Unicode chars when
it is moved, rather like the chars for right-arrow and left-arrow on a 
keyboard, and whether
they are interpreted by the computer as mouseDown and mouseStillDown 
signals.


I have a Belkin Nostromo (silly gaming pad) which I use for 
RunRev/LiveCode programming:
now it comes with a set-up control panel where one can set all the keys, 
wheels and twiddly things
on it to do what one wants - having set up one's preferences 
RunRev/LiveCode can pick up

whatever I do on the Nostromo without any trouble at all.

However, I suspect that David is trying to be somewhat cleverer than me, 
insofar as he wants
to 'skip' the requirement of an intermediate, platform specific, set-up 
panel / driver-thingy.


My own inclinations would be to run round the corner and buy a crappy 
USB joystick and plug the
thing in, and then set up some silly little stack that will pick up the 
signals from the USB stick


[ they cannot be that other-worldly ]

and see whether they can be interpreted as KeyDown, rawKeyDown type 
signals . . .



On 26 September 2010 06:10, David Glasgowwrote:


Hello folks,

I really really want to make  a Rev  (Ooops) LiveCode app with a push pull
interface like on a mixing slider, or 'dive' and 'pull up' on a plain old
joystick.

I have raised questions about this a few times on the list over a number of
years, and got some helpful pointers.  However, having followed these into
the underpants of USB, I have discovered that is not a place I have the
ability to work.  So I give up.

Is there anyone on this list who could create a cross platform extension or
library thingy which would allow me to read the state(s) of an ordinary, off
the shelf USB joystick?  If so, what would the cost be?


Best Wishes,

David Glasgow

i-psych.co.uk


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data from USB joystick

2010-09-26 Thread stephen barncard
It's all on the net. Your cheapest and easiest solution is to use a Keyspan
USB to serial adapter and Rs-232 serial protocol. Here's one hit from
searching google for "joystick rs232". Sooner or later, some soldering may
be required.

Interfacing Atari-style joysticks to PC parallel and serial
ports<http://www.epanorama.net/documents/joystick/pc_misc.html>



On 26 September 2010 06:10, David Glasgow wrote:

> Hello folks,
>
> I really really want to make  a Rev  (Ooops) LiveCode app with a push pull
> interface like on a mixing slider, or 'dive' and 'pull up' on a plain old
> joystick.
>
> I have raised questions about this a few times on the list over a number of
> years, and got some helpful pointers.  However, having followed these into
> the underpants of USB, I have discovered that is not a place I have the
> ability to work.  So I give up.
>
> Is there anyone on this list who could create a cross platform extension or
> library thingy which would allow me to read the state(s) of an ordinary, off
> the shelf USB joystick?  If so, what would the cost be?
>
>
> Best Wishes,
>
> David Glasgow
>
> i-psych.co.uk
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  <http://www.google.com/profiles/sbarncar>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


data from USB joystick

2010-09-26 Thread David Glasgow
Hello folks,

I really really want to make  a Rev  (Ooops) LiveCode app with a push pull 
interface like on a mixing slider, or 'dive' and 'pull up' on a plain old 
joystick. 

I have raised questions about this a few times on the list over a number of 
years, and got some helpful pointers.  However, having followed these into the 
underpants of USB, I have discovered that is not a place I have the ability to 
work.  So I give up.

Is there anyone on this list who could create a cross platform extension or 
library thingy which would allow me to read the state(s) of an ordinary, off 
the shelf USB joystick?  If so, what would the cost be?


Best Wishes,

David Glasgow

i-psych.co.uk


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


USB gadgets (was Re: Scripts that are already running)

2010-09-24 Thread Dar Scott


On Sep 24, 2010, at 1:18 PM, dunb...@aol.com wrote:


There is a modern version for liveCode:

http://www.bkohg.com/serviceusbplus_e.html


Cool!


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Accessing data from HID compliant USB device

2010-05-09 Thread David Glasgow

On 8 May 2010, at 2:38 pm, Sarah Reichelt wrote:

> Subject: Re: Accessing data from HID compliant USB device
> Reply-To: How to use Revolution 
> 
> 
>> This one has been churning around in my head for ages, and I finally bought 
>> a couple of joysticks to experiment with.
>> 
>> I want to build a standalone that responds to joystick input.  Nothing 
>> requiring huge amounts of data or processing, just detection of joystick 
>> position -> onscreen response scaling or moving an image.
>> 
>> I can understand the basic principles of HID, but can't get to grips with 
>> where the data goes in either Mac or Windows, and what would be involved in 
>> capturing it in Rev.  I have found some developer articles which address 
>> this, but they relate to other languages (VB & RB, I think).
> 
> 
> Does the joystick produce keyDown/Up or rawKeyDown/Up messages? If so,
> you could map out the numbers that each motion triggers and have your
> app react accordingly.
> There is a utility on my web site that detects keystrokes and displays
> the various codes for them.
> <http://www.troz.net/rev/stacks/KeyCoder.rev>
> 
> Cheers,
> Sarah

Thanks Sarah,

I wrote a wee stack to look at keystrokes (not as nice as yours), but it seems 
that HID compliant devices work in a much more complex way than simply 
generating characters.  Except of course the keyboard/mouse family, which do 
nothing but generate characters.  I even bought a repro-retro amiga joystick in 
the hope that it worked the old fashioned way, but it doesn't.  I really want 
the mechanical element of pushing and pulling to be present, otherwise I would 
use a mouse or a keyboard.   

There are utilities out there which enable HID devices to be configured to 
generate keystrokes, so they can be used by folks with a disability to use 
whatever software they need to use, rather than the intended games.  However, 
that would mean running a third party utility then running my stack.  Not a 
nice option.

There are some assistive devices that seem to generate keystrokes, but they are 
shockingly expensive. Makes you realise there is a real disability tax when it 
comes to using computers. I also had expected a few Revvers to have written 
standalone games that use joysticks, but maybe that domain is restricted to the 
die-hard X-planers and shoot em ups.

David Glasgow
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Accessing data from HID compliant USB device

2010-05-07 Thread Sarah Reichelt
> Fischertechnik® brings back memories of painfully standing barefoot  on bits 
> my brother left lying around on the floor.

Ah yes. Every parent knows that the most painful part of parenthood is
standing on Lego bricks in the middle of the night :-)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Accessing data from HID compliant USB device

2010-05-07 Thread Sarah Reichelt
> This one has been churning around in my head for ages, and I finally bought a 
> couple of joysticks to experiment with.
>
> I want to build a standalone that responds to joystick input.  Nothing 
> requiring huge amounts of data or processing, just detection of joystick 
> position -> onscreen response scaling or moving an image.
>
> I can understand the basic principles of HID, but can't get to grips with 
> where the data goes in either Mac or Windows, and what would be involved in 
> capturing it in Rev.  I have found some developer articles which address 
> this, but they relate to other languages (VB & RB, I think).


Does the joystick produce keyDown/Up or rawKeyDown/Up messages? If so,
you could map out the numbers that each motion triggers and have your
app react accordingly.
There is a utility on my web site that detects keystrokes and displays
the various codes for them.


Cheers,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Accessing data from HID compliant USB device

2010-05-07 Thread David Glasgow

On 7 May 2010, at 3:23 pm, Craig Newman wrote:
> 
> 
> 
> Wierd. third time this week I am recommending the "Service USB" gadget:
> 
> http://bkohg.com/service_e.html
> 
> 

Thanks Craig, 

Fischertechnik® brings back memories of painfully standing barefoot  on bits my 
brother left lying around on the floor.  

However what I want is the other way round.  I have joysticks, and just want to 
be able to access the HID pages receiving their data. I know they are 
recognised by the OSs, and know that the data is captured if it is not directed 
somewhere specific.  I just don't understand where, or what means might be used 
to read it.  My guess it is pretty low level stuff, but who knows?  Maybe 
someone has already done something like this in Rev.

David G


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Accessing data from HID compliant USB device

2010-05-07 Thread DunbarX
Wierd. third time this week I am recommending the "Service USB" gadget:

http://bkohg.com/service_e.html

Craig Newman
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Accessing data from HID compliant USB device

2010-05-07 Thread David Glasgow
Hello folks,

This one has been churning around in my head for ages, and I finally bought a 
couple of joysticks to experiment with.  

I want to build a standalone that responds to joystick input.  Nothing 
requiring huge amounts of data or processing, just detection of joystick 
position -> onscreen response scaling or moving an image. 

I can understand the basic principles of HID, but can't get to grips with where 
the data goes in either Mac or Windows, and what would be involved in capturing 
it in Rev.  I have found some developer articles which address this, but they 
relate to other languages (VB & RB, I think).

Any advice would be most welcome.

Thanks

David Glasgow

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding USB volumes on Win

2010-03-24 Thread Richard Gaskin

Scott Morrow wrote:


Richard,

Thanks for sharing this work!  When testing it in OSX I needed to add a line:

 replace "%20" with space in tMountPoint

   before the line

 set the directory to tMountPoint


Good catch - thanks.

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding USB volumes on Win

2010-03-24 Thread Richard Gaskin

Kay C Lan wrote:

On Tue, Mar 23, 2010 at 9:13 PM, Richard Gaskin wrote:


Absolutely.  This has been a group effort, with valuable input from Ken
Ray, Phil Davis, Peter Alcibiades, Matthias Rebbe, and others, so the least
I can do is share the fruit of our collective labor.

Awesome!! Thanks so much. Should provide an excellent stepping off point

for my next next project. Was suppose to be my next project but something
more interesting popped up :-)


That often happens. There's too much interesting software to write! :)

Happy to help.

My introduction to the programming community was through a BBS run by my 
local Mac user group.  I posted my first question there about 
manipulating certain Mac resources, and one of the members patiently 
explained how it worked and what I needed to do to get my job done -- 
just two hours later.


That was a magic moment for me, one repeated often enough that I began 
to understand the true value of the programming community: no one has to 
solve every problem by themselves so long as they have a modem. :)


At that time I'd worked in three different industries, but from that 
moment on the programming community distinguished itself for me by being 
comprised of people who give uncommonly high value to sharing knowledge 
freely. I've just been paying it forward ever since.


Challenges like this USB thang are good examples of this dynamic at 
work:  about half a dozen people contributed to that handler, and now we 
all have something that will save us time as we move on to the next one.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding USB volumes on Win

2010-03-24 Thread Scott Morrow
Richard,

Thanks for sharing this work!  When testing it in OSX I needed to add a line:

 replace "%20" with space in tMountPoint

   before the line

 set the directory to tMountPoint


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com



On Mar 23, 2010, at 6:13 AM, Richard Gaskin wrote:

> Kay C Lan wrote:
> 
>> On Mon, Mar 22, 2010 at 10:05 PM, Richard Gaskin wrote:
>>> In January with the help of Phil, Peter, and others I got some great tips
>>> for identifying removable drives on OS X and Linux.  But I'm having
>>> difficulty figuring out how to do the same in Windows.
>> 
>> Richard,
>> 
>> back then you wrote:
>> 
>> In the meantime, it looks like I have some parsing to do and some homework
>>> to figure out the details of getting this info for Win Vista, Win 7, and
>>> Linux.  I'll post the result here once I get it working.
>> 
>> I'm hoping that offer still applies?
> 
> Absolutely.  This has been a group effort, with valuable input from Ken Ray, 
> Phil Davis, Peter Alcibiades, Matthias Rebbe, and others, so the least I can 
> do is share the fruit of our collective labor.
> 
> Below is a handler that handles Mac and Win, with a placeholder for Linux but 
> I don't need that yet so I'll write it in a few weeks when I get to it.
> 
> It examines the currently-mounted volumes and returns a list of those volumes 
> which are removable, using AppleScript for the Mac side and data from the Win 
> registry for Windows.
> 
> Each line of the return value has three items separated by tabs:
> 
> - Drive label/letter (I use this to display in a list)
> - available space (useful for my installer)
> - mount point or drive letter (needed for writing to the drive)
> 
> I have four different removable drives I've been testing with (card reader, 
> U3, plain USB flash drive, and camera), and the AppleScript method that was 
> suggested here was the only one which easily recognized my card reader along 
> with all the other more "normal" drives; relying on info from system_profiler 
> alone did not provide the mount point, needed to write files to the drive.
> 
> Note that U3 drives show up as two volumes, one writable and one not. The 
> non-writable volume of a U3 drive has zero available space, and that's used 
> to exclude them from the list without having to slow things down by 
> attempting writes to each disk to test that (though also do that on the 
> selected volume later on in a different handler just to make sure before 
> proceeding with the install).
> 
> This is a bit sloppy in some parts since it's a small part of a larger 
> project in which there's a LOT of work do to, but it seems to get the job 
> done well enough for now (you may need to clean up email-imposed line wraps):
> 
> 
> 
> function RemovableDrives
>  -- Returns a tab-delimited list of drives which are removable
>  -- and have a file system usable by the current OS
>  -- in which each line is:
>  -- 
>  --
>  put the volumes into tVols
>  put empty into tRemVols
>  put the directory into tSaveDir
>  switch the platform
>  case "MacOS"
>repeat for each line tVol in tVols
>  put "tell application ""e&"Finder""e&cr&\
>  "properties of disk ""e& tVol "e &cr&\
>  "end tell" into tAS
>  do tAS as applescript
>  put the result into tInfo
>  if (", ejectable:true," is in tInfo) \
>  AND (", free space:0, " is not in tInfo) then
>put offset(", URL:""e&"file://", tInfo) into tOS
>delete char 1 to (tOS+13) of tInfo
>set the itemdel to "/"
>delete item 1 of tInfo
>put "/"&word 1 of tInfo into tMountPoint
>delete char -3 to -1 of tMountPoint
>set the directory to tMountPoint
>if the result is not empty then next repeat
>put the diskspace into tSpace
>put tVol &tab& tSpace &tab&  tMountPoint &cr after tRemVols
>  end if
>end repeat
>break
>  case "Win32"
>set cursor to watch
>put the hideConsoleWindows into tSaveHCW
>set the hideConsoleWindows to true
>-- Hex for "\??\STORAGE#RemovableMedia#":
>put 
> "5C003F003F005C00530054004F0052004100470045002300520065006D006F00760061006200"&\
>"6C0065004D00650064006900610023" into tRemovableIdentifier
>  

Re: Finding USB volumes on Win

2010-03-23 Thread Kay C Lan
On Tue, Mar 23, 2010 at 9:13 PM, Richard Gaskin
wrote:


> Absolutely.  This has been a group effort, with valuable input from Ken
> Ray, Phil Davis, Peter Alcibiades, Matthias Rebbe, and others, so the least
> I can do is share the fruit of our collective labor.
>
> Awesome!! Thanks so much. Should provide an excellent stepping off point
for my next next project. Was suppose to be my next project but something
more interesting popped up :-)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding USB volumes on Win

2010-03-23 Thread Richard Gaskin

Kay C Lan wrote:


On Mon, Mar 22, 2010 at 10:05 PM, Richard Gaskin wrote:

In January with the help of Phil, Peter, and others I got some great tips
for identifying removable drives on OS X and Linux.  But I'm having
difficulty figuring out how to do the same in Windows.


Richard,

back then you wrote:

In the meantime, it looks like I have some parsing to do and some homework

to figure out the details of getting this info for Win Vista, Win 7, and
Linux.  I'll post the result here once I get it working.


I'm hoping that offer still applies?


Absolutely.  This has been a group effort, with valuable input from Ken 
Ray, Phil Davis, Peter Alcibiades, Matthias Rebbe, and others, so the 
least I can do is share the fruit of our collective labor.


Below is a handler that handles Mac and Win, with a placeholder for 
Linux but I don't need that yet so I'll write it in a few weeks when I 
get to it.


It examines the currently-mounted volumes and returns a list of those 
volumes which are removable, using AppleScript for the Mac side and data 
from the Win registry for Windows.


Each line of the return value has three items separated by tabs:

- Drive label/letter (I use this to display in a list)
- available space (useful for my installer)
- mount point or drive letter (needed for writing to the drive)

I have four different removable drives I've been testing with (card 
reader, U3, plain USB flash drive, and camera), and the AppleScript 
method that was suggested here was the only one which easily recognized 
my card reader along with all the other more "normal" drives; relying on 
info from system_profiler alone did not provide the mount point, needed 
to write files to the drive.


Note that U3 drives show up as two volumes, one writable and one not. 
The non-writable volume of a U3 drive has zero available space, and 
that's used to exclude them from the list without having to slow things 
down by attempting writes to each disk to test that (though also do that 
on the selected volume later on in a different handler just to make sure 
before proceeding with the install).


This is a bit sloppy in some parts since it's a small part of a larger 
project in which there's a LOT of work do to, but it seems to get the 
job done well enough for now (you may need to clean up email-imposed 
line wraps):




function RemovableDrives
  -- Returns a tab-delimited list of drives which are removable
  -- and have a file system usable by the current OS
  -- in which each line is:
  -- 
  --
  put the volumes into tVols
  put empty into tRemVols
  put the directory into tSaveDir
  switch the platform
  case "MacOS"
repeat for each line tVol in tVols
  put "tell application ""e&"Finder""e&cr&\
  "properties of disk ""e& tVol "e &cr&\
  "end tell" into tAS
  do tAS as applescript
  put the result into tInfo
  if (", ejectable:true," is in tInfo) \
  AND (", free space:0, " is not in tInfo) then
put offset(", URL:""e&"file://", tInfo) into tOS
delete char 1 to (tOS+13) of tInfo
set the itemdel to "/"
delete item 1 of tInfo
put "/"&word 1 of tInfo into tMountPoint
delete char -3 to -1 of tMountPoint
set the directory to tMountPoint
if the result is not empty then next repeat
put the diskspace into tSpace
put tVol &tab& tSpace &tab&  tMountPoint &cr after tRemVols
  end if
end repeat
break
  case "Win32"
set cursor to watch
put the hideConsoleWindows into tSaveHCW
set the hideConsoleWindows to true
-- Hex for "\??\STORAGE#RemovableMedia#":
put 
"5C003F003F005C00530054004F0052004100470045002300520065006D006F00760061006200"&\

"6C0065004D00650064006900610023" into tRemovableIdentifier
repeat for each line tVol in tVols
  if tVol is in "A:B:C:" then next repeat -- two floppies and the 
main HD
  put "reg query HKLM\SYSTEM\MountedDevices /v \DosDevices\"& tVol 
into tCmd

  put shell(tCmd) into tmp
  if tRemovableIdentifier is in line -2 of tmp then
set the directory to tVol
if the result is empty then
  put "Removable Disk ("&tVol&")" &tab& the diskspace & tab& 
tVol &cr after tRemVols

end if
  end if
end repeat
set the directory to tSaveDir
set the hideConsoleWindows to tSaveHCW
break
  case "Linux"
-- add here -- http://linux.die.net/man/8/blkid -- thanks Peter!

break
  end switch
  --
  delete last char of tRemVols -- trailing CR
  return tRemVols
end RemovableDrives


If you find any bugs with thi

Re: Finding USB volumes on Win

2010-03-22 Thread Kay C Lan
On Mon, Mar 22, 2010 at 10:05 PM, Richard Gaskin 
wrote:
> In January with the help of Phil, Peter, and others I got some great tips
> for identifying removable drives on OS X and Linux.  But I'm having
> difficulty figuring out how to do the same in Windows.
>

Richard,

back then you wrote:

In the meantime, it looks like I have some parsing to do and some homework
> to figure out the details of getting this info for Win Vista, Win 7, and
> Linux.  I'll post the result here once I get it working.
>

I'm hoping that offer still applies? I can see that I'm going to have to
cross that bridge for a project I have planned.

Thanks
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding USB volumes on Win

2010-03-22 Thread Matthias Rebbe
Richard,

you could query all mounted devices from the shell

get shell("reg query  HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices")

This return all mounted devices. You then just have to look for the specific 
one.
Not that what you expected, but maybe it helps.

Regards,

Matthias


Am 22.03.2010 um 16:53 schrieb Richard Gaskin:

> Another snag:
> 
> The key I need is named "\DosDevices\G:", at this path:
> 
> HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
> 
> So it would seem that if I escape the backslashes in the key name I'd be good:
> 
> get queryRegistry("HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\\\DosDevices\\F:")
> 
> But no go.
> 
> I've tried many different combinations of escapes, and no escapes at all, and 
> no matter what I try the result says, "bad key" and the data returned is 
> empty.
> 
> Any clues?
> 
> TIA -
> 
> --
> Richard Gaskin
> Fourth World
> Rev training and consulting: http://www.fourthworld.com
> Webzine for Rev developers: http://www.revjournal.com
> revJournal blog: http://revjournal.com/blog.irv
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding USB volumes on Win

2010-03-22 Thread Richard Gaskin

Another snag:

The key I need is named "\DosDevices\G:", at this path:

HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices

So it would seem that if I escape the backslashes in the key name I'd be 
good:


 get 
queryRegistry("HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\\\DosDevices\\F:")


But no go.

I've tried many different combinations of escapes, and no escapes at 
all, and no matter what I try the result says, "bad key" and the data 
returned is empty.


Any clues?

TIA -

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding USB volumes on Win

2010-03-22 Thread Richard Gaskin

Richard Miller wrote:

> On 3/22/2010 10:05 AM, Richard Gaskin wrote:
>> In January with the help of Phil, Peter, and others I got some great
>> tips for identifying removable drives on OS X and Linux.  But I'm
>> having difficulty figuring out how to do the same in Windows.
>>
>> I can find the registry entries to determine which devices are
>> mounted, but they don't contain the info which will let me know
>> which drive letter they're associated with.
...
> This has been working for me:
>
>   repeat with i = number of lines of the volumes down to 1
>   put line i of the volumes into x
>   put getvolumesn(X) into z
> end repeat
>
> function GetVolumeSN pDiskLetter
>local volumeSerialNumber
>-- Supports both "C", "C:" and "C:\" styles
>put char 1 of pDiskLetter & ":" into pDisk
>set the hideConsoleWindows to true
>put shell("dir " & pDisk) into tDirData
>get matchText(tDirData,"Volume Serial Number is
> (.*)\n",volumeSerialNumber)
>if it is true then
>  return volumeSerialNumber
>else
>  return empty
>end if
> end GetVolumeSN

Thank you, Richard, but I've been getting the volume IDs from the 
registry.  The challenge I have this morning is to find which volumes 
are removable.


Since I last wrote I discovered that the info at 
HKEY\Local_Machine\System\MountedDevices\ seems to have what I need.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding USB volumes on Win

2010-03-22 Thread Richard Miller

Richard,

This has been working for me:

 repeat with i = number of lines of the volumes down to 1
 put line i of the volumes into x
 put getvolumesn(X) into z
end repeat

function GetVolumeSN pDiskLetter
  local volumeSerialNumber
  -- Supports both "C", "C:" and "C:\" styles
  put char 1 of pDiskLetter & ":" into pDisk
  set the hideConsoleWindows to true
  put shell("dir " & pDisk) into tDirData
  get matchText(tDirData,"Volume Serial Number is 
(.*)\n",volumeSerialNumber)

  if it is true then
return volumeSerialNumber
  else
return empty
  end if
end GetVolumeSN


Richard Miller



On 3/22/2010 10:05 AM, Richard Gaskin wrote:
In January with the help of Phil, Peter, and others I got some great 
tips for identifying removable drives on OS X and Linux.  But I'm 
having difficulty figuring out how to do the same in Windows.


I can find the registry entries to determine which devices are 
mounted, but they don't contain the info which will let me know which 
drive letter they're associated with.


I've tried setting the shellCommand to "diskpart" and then using:

get shell("list volume")

...but that returns "2", which means a syntax error, even though that 
syntax works fine from the command line.


Any tips on how to identify mounted removable volumes and obtain their 
drive letters?  Extra bonus points if I could get their names too, for 
those that have been named.


TIA -

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Finding USB volumes on Win

2010-03-22 Thread Richard Gaskin
In January with the help of Phil, Peter, and others I got some great 
tips for identifying removable drives on OS X and Linux.  But I'm having 
difficulty figuring out how to do the same in Windows.


I can find the registry entries to determine which devices are mounted, 
but they don't contain the info which will let me know which drive 
letter they're associated with.


I've tried setting the shellCommand to "diskpart" and then using:

get shell("list volume")

...but that returns "2", which means a syntax error, even though that 
syntax works fine from the command line.


Any tips on how to identify mounted removable volumes and obtain their 
drive letters?  Extra bonus points if I could get their names too, for 
those that have been named.


TIA -

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-15 Thread Sarah Reichelt
On Sat, Jan 16, 2010 at 2:18 AM, Thomas McGrath III  wrote:
> That works great for Windows. For Macintosh you can try GamePad Pro on
> Version Tracker Link ->
> http://www.versiontracker.com/dyn/moreinfo/macosx/12293

Or USB Overdrive.

Cheers,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-15 Thread Scott Rossi
Recently, Thomas McGrath III wrote:

> That works great for Windows. For Macintosh you can try GamePad Pro on
> Version Tracker Link ->
> http://www.versiontracker.com/dyn/moreinfo/macosx/12293

This is good to know.  I have an old Sega Activator I've been trying to
figure out how to get going under OS X.

http://www.youtube.com/watch?v=ql-UZv3AS-E

It has Sega's proprietary gamepad connector, but there was an old gamepad
adapter box that allowed connection of gamepads to Mac systems.  Sadly this
used an ADB connection, so between 2 port adapters and Mac OS 7 software,
I'm not sure if this FrankenController is worth trying to resurrect, but it
was a cool device, especially when used as a trigger for music.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-15 Thread Thomas McGrath III
That works great for Windows. For Macintosh you can try GamePad Pro on  
Version Tracker Link -> http://www.versiontracker.com/dyn/moreinfo/macosx/12293


HTHs

Tom McGrath III
Lazy River Software
3mcgr...@comcast.net

iTunes Library Suite - libITS
Information and download can be found on this page:
http://www.lazyriversoftware.com/RevOne.html



On Jan 15, 2010, at 6:52 AM, Nicolas Cueto wrote:


To answer somewhat my own question.

I connected a USB gamepad and Rev didn't recognize it.

However Rev could recognize the gamepad when in the background I ran a
"keyboard emulator for joysticks" piece of  freeware called JoyToKey.

Nifty!

As for the USB dance pad, it is still being shipped so don't yet  
know about
it and Rev, but I'm pretty sure it too will work when using the  
emulator

freeware.

Cheers.

--
Nicolas Cueto
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-15 Thread Richmond Mathewson

On 15/01/2010 13:52, Nicolas Cueto wrote:

To answer somewhat my own question.

I connected a USB gamepad and Rev didn't recognize it.

   

When I was over in England I had a sudden urge to 'steal' (admittedly
from myself) the keyboard from my G3 iMac as it is so compact. So,
thought I had better leave a keyboard behind in case I forget to take
this one back.

So:

bought a very, very cheap no-name USB keyboard ('for Windows NT, XP,
and Vista') for £10 (about as cheap as you can go in England). Of course
it wouldn't work with Mac OS X 10.3.9 . . .

So:

http://www.macupdate.com/info.php/id/8955   (USB monitor)

and everything magically sprang to life. . .

Presumably, if the OS recognises the device itself (rather than just some
dedicated program) things should be OK with Rev ??
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-15 Thread Nicolas Cueto
To answer somewhat my own question.

I connected a USB gamepad and Rev didn't recognize it.

However Rev could recognize the gamepad when in the background I ran a
"keyboard emulator for joysticks" piece of  freeware called JoyToKey.

Nifty!

As for the USB dance pad, it is still being shipped so don't yet know about
it and Rev, but I'm pretty sure it too will work when using the emulator
freeware.

Cheers.

--
Nicolas Cueto
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-14 Thread Phil Davis
Yes, what Björnke (and Dave C) said is true - in USB termonology the 
device interaction requirements are defined by the class it belongs to.


   * Mass Storage class = flash drives etc. Rev lists them in "the volumes"

   * Communications class = Björnke's "serial over USB" - controller
 boards, modems etc that have a command set of their own. These
 usually have drivers that Rev lists in "the driverNames" although
 they don't always get listed. (I have a 'deviceNames()' function
 somewhere (thanks to Dar Scott and Ken Ray) that returns a more
 complete list - I'll see if I can dig it out and post it.) These
 require that you open driver / read from driver / write to driver
 / close driver. I learned a lot from Sarah Reichelt about working
 with this device type. Here is a description of her work with one
 such device:
   http://www.pdslabs.net/usb/rev-usb1.pdf

   * HID class = keyboards, mice etc.

There are about a dozen USB device classes in all, but the ones listed 
above are the ones most relevant to the current discussion.


Phil Davis




On 1/14/10 8:15 AM, Björnke von Gierke wrote:

Another boon is that usb developers are lazy (like all developers). Thus they 
often use some standard lib for their device, especially if it isn't a network 
adapter or other exotic device.

and the most standardised libs are:
disk space (USB memory stick or HD)
user interface (mouses, keyboard, ...)
serial over usb

so it might be worth a shot to check the drivernames when you connect your 
device or before and after you install relevant drivers...

of course this is pretty much a shot into the dark...
bjoernke


   


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-14 Thread Björnke von Gierke
Another boon is that usb developers are lazy (like all developers). Thus they 
often use some standard lib for their device, especially if it isn't a network 
adapter or other exotic device. 

and the most standardised libs are:
disk space (USB memory stick or HD)
user interface (mouses, keyboard, ...)
serial over usb

so it might be worth a shot to check the drivernames when you connect your 
device or before and after you install relevant drivers...

of course this is pretty much a shot into the dark...
bjoernke


-- 

official ChatRev page:
http://bjoernke.com?target=chatrev

Chat with other RunRev developers:
go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev";

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: USB dance-pad with Rev?

2010-01-14 Thread Lynn Fredricks
> I'd like to connect a USB dance-pad to my PC and then make a 
> stack that does game-type stuff with the signals sent in by 
> the dance-pad.
> But I don't know if Rev can read in signals other than from 
> the mouse or keyboard.
> 
> Anyone know if and how this can be done... or perhaps have 
> even actually done it?

Someone poke Phil Davis, he's the king of Rev and USB and done some very
interesting work.

Some makers do produce SDKs for use with the device, though a lot of them
are for C++ developers. If it does have such an SDK, it may be possible to
write a Revolution external.

Best regards,

Lynn Fredricks
President
Paradigma Software
http://www.paradigmasoft.com

Valentina SQL Server: The Ultra-fast, Royalty Free Database Server 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-14 Thread Shao Sean
Sorry Richmond but it should not matter about user definable keys or  
not, as the device driver should be monitoring that and then sending  
the appropriate message to the receiving applications..


In theory you can get an external to listen to the messages sent by  
the system, but as demonstrated in my recent external there are issues  
(on the Mac anyways) with the compiled application engine and  
listening for (some?) external events..

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-14 Thread Richmond Mathewson

On 14/01/2010 12:51, Dave Cragg wrote:

On 14 Jan 2010, at 10:13, Richmond Mathewson wrote:
   

All USB devices will send some sort of keyDown signals and/or pointer movements
to the system; as long as you can interpret those keyDowns inside your stack 
there is
no earthly reason why your USB device won't work with RunRev.
 

I don't think that's right. Each USB device identifies what "class" of device 
it is, and the host device (computer) loads the appropriate driver. One such class is 
Human Interface Device which covers keyboards, mice, etc. If the device is of that class, 
then you should be able to get key messages. But there are other classes (Audio, 
Communications, Vendor Specific, etc.) where key messages probably aren't sent.

http://en.wikipedia.org/wiki/Universal_Serial_Bus#Device_classes

   
Yes, you are right; I'm sorry, I was thinking only of the class of USB 
devices such as:


Mice,
Keyboards,
Gamepads.
Dancepads,
Trackballs,
Joysticks,
Steering wheels,
Foot pedals,

and so on (data entry USB devices - I suppose).

The situation ca be complicated; for instance

my Belkin Nostromo n52 (now obsolete, but c.f.  
http://catalog.belkin.com/IWCatProductPage.process?Product_Id=390404 )
requires settings to be set outwith the target program before it can 
interact with that program.


I had to set up a settings file called "Revolution" using the Nostromo 
Preference Pane (Mac OS X) so that

when I pressed button 06 it would paste from the clipboard.

If you are 'just' developing your stack for your own use then you should 
have no problems, but, in the
case of authoring for other end users who may have USB devices with 
user-editable settings you will

be up a gum tree.

Apart from my 'blah' above; the thing to know is whether your target USB 
device has USER-EDITABLE settings.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-14 Thread Dave Cragg

On 14 Jan 2010, at 10:13, Richmond Mathewson wrote:
> All USB devices will send some sort of keyDown signals and/or pointer 
> movements
> to the system; as long as you can interpret those keyDowns inside your stack 
> there is
> no earthly reason why your USB device won't work with RunRev.

I don't think that's right. Each USB device identifies what "class" of device 
it is, and the host device (computer) loads the appropriate driver. One such 
class is Human Interface Device which covers keyboards, mice, etc. If the 
device is of that class, then you should be able to get key messages. But there 
are other classes (Audio, Communications, Vendor Specific, etc.) where key 
messages probably aren't sent.

http://en.wikipedia.org/wiki/Universal_Serial_Bus#Device_classes

Cheers
Dave___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-14 Thread René Micout
Richmond,
I agree, but how can we pass messages from system to RunRev ?

Le 14 janv. 2010 à 11:13, Richmond Mathewson a écrit :
> All USB devices will send some sort of keyDown signals and/or pointer 
> movements
> to the system; as long as you can interpret those keyDowns inside your stack 
> there is
> no earthly reason why your USB device won't work with RunRev.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-14 Thread Richmond Mathewson



Hello,
I have a musical keyboard (Axis 49 : 
http://www.c-thru-music.com/cgi/?page=prod_axis-49) plugged by USB (on the Macintosh 
keyboard) witch work on GarageBand>  rawKey messages on RunRev>  nothing !  :-(
I am very interested by this question...
Bons souvenirs de Paris
René

Le 14 janv. 2010 à 08:33, Sarah Reichelt a écrit :

   

On Thu, Jan 14, 2010 at 1:47 PM, Nicolas Cueto  wrote:
 

I'd like to connect a USB dance-pad to my PC and then make a stack
that does game-type stuff with the signals sent in by the dance-pad.
But I don't know if Rev can read in signals other than from the mouse
or keyboard.
   


I would guess this sort of device functions like a trackpad or joystick.
My recommendation would be to plug it in and do stuff while tracking
rawKey messages.

Cheers,
Sarah

 


I have used a Belkin Nostromo Gamepad n52 for about 3 years as a 
programming aid

to stop me getting sore wrists.

All USB devices will send some sort of keyDown signals and/or pointer 
movements
to the system; as long as you can interpret those keyDowns inside your 
stack there is

no earthly reason why your USB device won't work with RunRev.

sincerely, Richmond.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-14 Thread René Micout
Hello,
I have a musical keyboard (Axis 49 : 
http://www.c-thru-music.com/cgi/?page=prod_axis-49) plugged by USB (on the 
Macintosh keyboard) witch work on GarageBand > rawKey messages on RunRev > 
nothing !  :-(
I am very interested by this question...
Bons souvenirs de Paris
René

Le 14 janv. 2010 à 08:33, Sarah Reichelt a écrit :

> On Thu, Jan 14, 2010 at 1:47 PM, Nicolas Cueto  wrote:
>> I'd like to connect a USB dance-pad to my PC and then make a stack
>> that does game-type stuff with the signals sent in by the dance-pad.
>> But I don't know if Rev can read in signals other than from the mouse
>> or keyboard.
> 
> 
> I would guess this sort of device functions like a trackpad or joystick.
> My recommendation would be to plug it in and do stuff while tracking
> rawKey messages.
> 
> Cheers,
> Sarah
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB dance-pad with Rev?

2010-01-13 Thread Sarah Reichelt
On Thu, Jan 14, 2010 at 1:47 PM, Nicolas Cueto  wrote:
> I'd like to connect a USB dance-pad to my PC and then make a stack
> that does game-type stuff with the signals sent in by the dance-pad.
> But I don't know if Rev can read in signals other than from the mouse
> or keyboard.


I would guess this sort of device functions like a trackpad or joystick.
My recommendation would be to plug it in and do stuff while tracking
rawKey messages.

Cheers,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


USB dance-pad with Rev?

2010-01-13 Thread Nicolas Cueto
I'd like to connect a USB dance-pad to my PC and then make a stack
that does game-type stuff with the signals sent in by the dance-pad.
But I don't know if Rev can read in signals other than from the mouse
or keyboard.

Anyone know if and how this can be done... or perhaps have even
actually done it?

Thanks.

--
Nicolas Cueto
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-13 Thread Richard Gaskin

Larry Snider wrote:

I can confirm that blkid, which is part of the e2fsprogs package, is
part of the following distributions:

CentOS release 5 (Final)
CentOS release 5.3 (Final)
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
Red Hat Enterprise Linux AS release 4 (Nahant Update 7)

If blkid is installed on CentOS and Redhat Enterprise Linux then more
than likely it is on Fedora as well.

You can find which distributions have the RPM/package available by
checking RPMFind.net.

http://www.rpmfind.net/linux/rpm2html/search.php?query=blkid&submit=Search+...&system=&arch=


Thanks, Larry.  I found that it's included with Ubuntu also.

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-12 Thread Larry Snider
I can confirm that blkid, which is part of the e2fsprogs package, is
part of the following distributions:

CentOS release 5 (Final)
CentOS release 5.3 (Final)
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
Red Hat Enterprise Linux AS release 4 (Nahant Update 7)

If blkid is installed on CentOS and Redhat Enterprise Linux then more
than likely it is on Fedora as well.

You can find which distributions have the RPM/package available by
checking RPMFind.net.

http://www.rpmfind.net/linux/rpm2html/search.php?query=blkid&submit=Search+...&system=&arch=


Larry



On Tue, Jan 12, 2010 at 9:51 AM, Richard Gaskin
 wrote:
> Peter Alcibiades wrote:
>
>> Extra bonus points:  what shell calls would I use to get this info on
>> Linux?  I think I have the Windows side of things down, but I'll need to
>> work out the Linux side soon.
>>
>> Richard, have you tried blkid?
>>
>> http://linux.die.net/man/8/blkid
>
> Thanks.  Do you know offhand if this is part of the default install for many
> distros?
>
> --
>  Richard Gaskin
>  Fourth World
>  Rev training and consulting: http://www.fourthworld.com
>  Webzine for Rev developers: http://www.revjournal.com
>  revJournal blog: http://revjournal.com/blog.irv
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-12 Thread Richard Gaskin

Peter Alcibiades wrote:


Extra bonus points:  what shell calls would I use to get this info on
Linux?  I think I have the Windows side of things down, but I'll need to
work out the Linux side soon.

Richard, have you tried blkid?

http://linux.die.net/man/8/blkid


Thanks.  Do you know offhand if this is part of the default install for 
many distros?


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-08 Thread Peter Alcibiades

Extra bonus points:  what shell calls would I use to get this info on 
Linux?  I think I have the Windows side of things down, but I'll need to 
work out the Linux side soon.

Richard, have you tried blkid?

http://linux.die.net/man/8/blkid

Peter

-- 
View this message in context: 
http://n4.nabble.com/Finding-the-name-of-a-USB-volume-tp1002404p1010192.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-07 Thread Phil Davis

On 1/7/10 9:36 PM, Scott Morrow wrote:

Very nice.  Thanks, Phil!

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--
   

You're welcome!

Here is an improved version of the original handler. It adds a "Device:" 
label to the device name and replaces the single "Volumes:" label before 
ALL volume descriptions with a "Volume:" label before EACH volume 
description (should make it easier to break out descriptions of each 
partition on a USB drive).


function macUsbDrives
   -- get USB device info from system profiler
   put shell("system_profiler -detailLevel full SPUSBDataType") into tData

   -- convert data to one line per USB device
   replace (colon & cr & cr) with numToChar(245) in tData -- device name
   replace (cr & cr) with numtoChar(250) in tData
   replace cr with tab in tData
   replace numtoChar(245) with (colon & tab) in tData
   replace numtoChar(250) with cr in tData

   -- remove records for all but USB drives (English data only)
   filter tData with "*Detachable Drive: Yes*"

   -- remove space-padding from items in each line
   set the itemDel to tab
   repeat for each line tLine in tData
  put empty into tNewLine
  repeat for each item tItem in tLine
 put word 1 to -1 of tItem & tab after tNewLine
  end repeat

  -- insert a device tag at beginning of device description
  delete last char of item 1 of tNewLine -- trailing colon
  put "Device: " before item 1 of tNewLine

  -- remove single 'volumes:' tag at beginning of all volume 
descriptions

  replace "Volumes:" & tab with empty in tNewLine

  -- insert a "volume: " tag at the start of each volume description
  replace (colon & tab) with cr in tNewLine -- break after each 
volume name

  repeat with x = 1 to (the number of lines in tNewLine - 1)
 put "Volume: " before last item of line x of tNewLine
  end repeat
  replace cr with tab in tNewLine

  -- append finished line to rest of data
  put cr into last char of tNewLine
  put tNewLine after tNewData
   end repeat
   delete last char of tNewData

   -- return the data
   return tNewData
end macUsbDrives

--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-07 Thread Scott Morrow
Very nice.  Thanks, Phil!

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--


On Jan 6, 2010, at 6:46 PM, Phil Davis wrote:

> Here is an simplified 'system_profiler' output approach. It returns one 
> tab-delimited line of info per detachable USB storage device, with all the 
> data items known to system_profiler for each device. NOTE: It expects 
> system_profiler output to be in English.
> 
> 
> function macUsbDrives
>   -- get USB device info from system profiler
>   put shell("system_profiler -detailLevel full SPUSBDataType") into tData
> 
>   -- convert data to one line per USB device
>   replace (colon & cr & cr) with numToChar(245) in tData -- device name
>   replace (cr & cr) with numtoChar(250) in tData
>   replace cr with tab in tData
>   replace numtoChar(245) with (colon & tab) in tData
>   replace numtoChar(250) with cr in tData
> 
>   -- remove records for all but USB drives (English data only)
>   filter tData with "*Detachable Drive: Yes*"
> 
>   -- remove space-padding from items in each line
>   set the itemDel to tab
>   repeat for each line tLine in tData
>  repeat for each item tItem in tLine
> put word 1 to -1 of tItem & tab after tNewData
>  end repeat
>  put cr into last char of tNewData
>   end repeat
>   delete last char of tNewData
> 
>   -- return the data
>   return tNewData
> end macUsbDrives
> 
> HTH -
> Phil Davis
> 
> 
> 
> On 1/6/10 5:50 PM, Phil Davis wrote:
>> On 1/6/10 3:31 PM, Richard Gaskin wrote:
>>> tsj wrote:
>>>> Richard - I haven't got an unnamed USB drive handy to test this with but
>>>> what does the volumes function return when one is mounted? Does this give
>>>> you the expected "untitled" (or "untitled 1" etc)?
>>>> 
>>>> If so, you could iterate through the listed volumes using a couple of
>>>> applescripts to determine whether the drive was local (false if it's a
>>>> network drive) ejectable (false if it's internal) and then if you get two
>>>> false results you can attempt to open a file on the volume. If that gives
>>>> you an error then the drive is write protected. If it passes all tests then
>>>> you're left (presumably) with an external USB or Firewire drive.
>> 
>> The "passes all tests" list can also includes mounted .dmg files.
>> 
>> Thanks for posting this - very helpful.
> 
> -- 
> Phil Davis
> 
> PDS Labs
> Professional Software Development
> http://pdslabs.net
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-07 Thread Phil Davis

Hi Richard,

I believe this does include the volume names as they appear in the 
Finder. Look for the "Volumes:" tag in each output line.


Phil



On 1/7/10 7:43 AM, Richard Gaskin wrote:

Phil Davis wrote:

Here is an simplified 'system_profiler' output approach. It returns one
tab-delimited line of info per detachable USB storage device, with all
the data items known to system_profiler for each device. NOTE: It
expects system_profiler output to be in English.


function macUsbDrives
-- get USB device info from system profiler
put shell("system_profiler -detailLevel full SPUSBDataType") into 
tData


-- convert data to one line per USB device
replace (colon & cr & cr) with numToChar(245) in tData -- device 
name

replace (cr & cr) with numtoChar(250) in tData
replace cr with tab in tData
replace numtoChar(245) with (colon & tab) in tData
replace numtoChar(250) with cr in tData

-- remove records for all but USB drives (English data only)
filter tData with "*Detachable Drive: Yes*"

-- remove space-padding from items in each line
set the itemDel to tab
repeat for each line tLine in tData
   repeat for each item tItem in tLine
  put word 1 to -1 of tItem & tab after tNewData
   end repeat
   put cr into last char of tNewData
end repeat
delete last char of tNewData

-- return the data
return tNewData
end macUsbDrives


Very helpful Phil, and I appreciate your posting it, but unfortunately 
the issue I found with using system_profiler is that it doesn't report 
the volume name as it appears to the user on the desktop.


I had hoped there would be some reasonably simple way to get a list of 
mounted volumes that looks something like this:


  

...where  is the name as it appears in the Finder, 
 is either "/" or "Volumes/", and  is 
either ATA, SCSI, CD/DVD, USB, etc.


With what I've learned in this thread it seems I may be able to use 
output from system_profiler checked against output from AppleScript 
calls to obtain such a list.


For the future, I see that Jeanne DeVoto had submitted an RQCC request 
for "the detailed volumes" which could do what I need if implemented 
as described there:

<http://quality.runrev.com/qacenter/show_bug.cgi?id=101>

In the meantime, it looks like I have some parsing to do and some 
homework to figure out the details of getting this info for Win Vista, 
Win 7, and Linux.  I'll post the result here once I get it working.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-07 Thread Richard Gaskin

Phil Davis wrote:

Here is an simplified 'system_profiler' output approach. It returns one
tab-delimited line of info per detachable USB storage device, with all
the data items known to system_profiler for each device. NOTE: It
expects system_profiler output to be in English.


function macUsbDrives
    -- get USB device info from system profiler
put shell("system_profiler -detailLevel full SPUSBDataType") into tData

-- convert data to one line per USB device
replace (colon & cr & cr) with numToChar(245) in tData -- device name
replace (cr & cr) with numtoChar(250) in tData
replace cr with tab in tData
replace numtoChar(245) with (colon & tab) in tData
replace numtoChar(250) with cr in tData

    -- remove records for all but USB drives (English data only)
filter tData with "*Detachable Drive: Yes*"

-- remove space-padding from items in each line
set the itemDel to tab
repeat for each line tLine in tData
   repeat for each item tItem in tLine
  put word 1 to -1 of tItem & tab after tNewData
   end repeat
   put cr into last char of tNewData
end repeat
delete last char of tNewData

-- return the data
return tNewData
end macUsbDrives


Very helpful Phil, and I appreciate your posting it, but unfortunately 
the issue I found with using system_profiler is that it doesn't report 
the volume name as it appears to the user on the desktop.


I had hoped there would be some reasonably simple way to get a list of 
mounted volumes that looks something like this:




...where  is the name as it appears in the Finder, 
 is either "/" or "Volumes/", and  is 
either ATA, SCSI, CD/DVD, USB, etc.


With what I've learned in this thread it seems I may be able to use 
output from system_profiler checked against output from AppleScript 
calls to obtain such a list.


For the future, I see that Jeanne DeVoto had submitted an RQCC request 
for "the detailed volumes" which could do what I need if implemented as 
described there:

<http://quality.runrev.com/qacenter/show_bug.cgi?id=101>

In the meantime, it looks like I have some parsing to do and some 
homework to figure out the details of getting this info for Win Vista, 
Win 7, and Linux.  I'll post the result here once I get it working.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-06 Thread Phil Davis
Here is an simplified 'system_profiler' output approach. It returns one 
tab-delimited line of info per detachable USB storage device, with all 
the data items known to system_profiler for each device. NOTE: It 
expects system_profiler output to be in English.



function macUsbDrives
   -- get USB device info from system profiler
   put shell("system_profiler -detailLevel full SPUSBDataType") into tData

   -- convert data to one line per USB device
   replace (colon & cr & cr) with numToChar(245) in tData -- device name
   replace (cr & cr) with numtoChar(250) in tData
   replace cr with tab in tData
   replace numtoChar(245) with (colon & tab) in tData
   replace numtoChar(250) with cr in tData

   -- remove records for all but USB drives (English data only)
   filter tData with "*Detachable Drive: Yes*"

   -- remove space-padding from items in each line
   set the itemDel to tab
   repeat for each line tLine in tData
  repeat for each item tItem in tLine
 put word 1 to -1 of tItem & tab after tNewData
  end repeat
  put cr into last char of tNewData
   end repeat
   delete last char of tNewData

   -- return the data
   return tNewData
end macUsbDrives

HTH -
Phil Davis



On 1/6/10 5:50 PM, Phil Davis wrote:

On 1/6/10 3:31 PM, Richard Gaskin wrote:

tsj wrote:
Richard - I haven't got an unnamed USB drive handy to test this with 
but
what does the volumes function return when one is mounted? Does this 
give

you the expected "untitled" (or "untitled 1" etc)?

If so, you could iterate through the listed volumes using a couple of
applescripts to determine whether the drive was local (false if it's a
network drive) ejectable (false if it's internal) and then if you 
get two
false results you can attempt to open a file on the volume. If that 
gives
you an error then the drive is write protected. If it passes all 
tests then

you're left (presumably) with an external USB or Firewire drive.


The "passes all tests" list can also includes mounted .dmg files.

Thanks for posting this - very helpful.


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-06 Thread tsj
On 7/01/10 12:50 PM, "Phil Davis"  wrote:

> On 1/6/10 3:31 PM, Richard Gaskin wrote:
>> tsj wrote:
>>> Richard - I haven't got an unnamed USB drive handy to test this with but
>>> what does the volumes function return when one is mounted? Does this
>>> give
>>> you the expected "untitled" (or "untitled 1" etc)?
>>> 
>>> If so, you could iterate through the listed volumes using a couple of
>>> applescripts to determine whether the drive was local (false if it's a
>>> network drive) ejectable (false if it's internal) and then if you get
>>> two
>>> false results you can attempt to open a file on the volume. If that
>>> gives
>>> you an error then the drive is write protected. If it passes all
>>> tests then
>>> you're left (presumably) with an external USB or Firewire drive.
> 
> The "passes all tests" list can also includes mounted .dmg files.

True - but only if it's modifiable (if not, trying to open a file for
writing will give you a "can't open file" error in the result). One other
test you can throw in is to get the format of the disk. DMGs appear to
always return 'Mac OS Extended format' while USB sticks *may* be in another
format (mine all appear to be MS-DOS (FAT32), which returns 'unkown format'
from applescript).
> 
> Thanks for posting this - very helpful.

Cheers,

Terry...

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-06 Thread Phil Davis

On 1/6/10 3:31 PM, Richard Gaskin wrote:

tsj wrote:

Richard - I haven't got an unnamed USB drive handy to test this with but
what does the volumes function return when one is mounted? Does this 
give

you the expected "untitled" (or "untitled 1" etc)?

If so, you could iterate through the listed volumes using a couple of
applescripts to determine whether the drive was local (false if it's a
network drive) ejectable (false if it's internal) and then if you get 
two
false results you can attempt to open a file on the volume. If that 
gives
you an error then the drive is write protected. If it passes all 
tests then

you're left (presumably) with an external USB or Firewire drive.


The "passes all tests" list can also includes mounted .dmg files.

Thanks for posting this - very helpful.
--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-06 Thread Richard Gaskin

tsj wrote:

Richard - I haven't got an unnamed USB drive handy to test this with but
what does the volumes function return when one is mounted? Does this give
you the expected "untitled" (or "untitled 1" etc)?

If so, you could iterate through the listed volumes using a couple of
applescripts to determine whether the drive was local (false if it's a
network drive) ejectable (false if it's internal) and then if you get two
false results you can attempt to open a file on the volume. If that gives
you an error then the drive is write protected. If it passes all tests then
you're left (presumably) with an external USB or Firewire drive.

The relevant applescript snippets are...

tell application "System Events" to get the local volume of disk
[volumepath]

tell application "System Events" to get the ejectable of disk [volumepath]

Would that do it?


Works a treat!  And simpler than parsing the XML data from system_profiler.

Thanks!

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-06 Thread tsj
Richard - I haven't got an unnamed USB drive handy to test this with but
what does the volumes function return when one is mounted? Does this give
you the expected "untitled" (or "untitled 1" etc)?

If so, you could iterate through the listed volumes using a couple of
applescripts to determine whether the drive was local (false if it's a
network drive) ejectable (false if it's internal) and then if you get two
false results you can attempt to open a file on the volume. If that gives
you an error then the drive is write protected. If it passes all tests then
you're left (presumably) with an external USB or Firewire drive.

The relevant applescript snippets are...

tell application "System Events" to get the local volume of disk
[volumepath]

tell application "System Events" to get the ejectable of disk [volumepath]

Would that do it?

Terry...


On 7/01/10 2:36 AM, "Richard Gaskin"  wrote:

> I'm making a custom installer in which I want to provide the option of a
> normal desktop install to the hard drive and a zero-footprint install to
> a removable USB drive (no registry entries, prefs stored in the app
> folder, etc.).
> 
> To help make this simple for the user I'd like to present a list of
> available USB drives if they choose that option, so they can pick the
> target for the install.
> 
> Phil Davis was kind enough to share some pointers in his libUsbDrive
> library (see <http://pdslabs.net/usb/index.html>), which has me
> exploring the use of shell calls on OS X to system_profiler, e.g.:
> 
> get shell("system_profiler -xml SPUSBDataType")
> 
> While the info returned there contains a lot of very useful stuff, the
> one thing I'm not able to find is the name of the volume as it appears
> to the user on the desktop.
> 
> Well, sometimes, that is.
> 
> It seems that if I've named the drive in the Finder, the Volumes section
> of the data returned from that shell call is filled in, and includes the
> apparent name of the volume.
> 
> But drives which haven't been given a name on a Mac system appear on the
> desktop as "Untitled", and although the data from the system_profiler
> shows it as a removable drive there is no Volumes section included and
> hence no way to know the name of the drive as it appears to the user.
> 
> When there is is a Volumes section the _name key there shows the name as
> it appears in the Finder, but drives that have not explicitly been given
> a name appear as "Untitled" or "Untitled 1", etc., in the Finder and the
> corresponding _name key from system_profiler is something different (for
> example my card reader device has a _name value of "Generic USB2.0 card
> " in system_profiler, but on the desktop it appears as "Untitled 1").
> 
> Do any of you know a way I can use shell or AppleScript to obtain the
> apparent name of a removable drive when system_profiler fails to return it?
> 
> Extra bonus points:  what shell calls would I use to get this info on
> Linux?  I think I have the Windows side of things down, but I'll need to
> work out the Linux side soon.
> 
> TIA -
> 
> --
>   Richard Gaskin
>   Fourth World
>   Rev training and consulting: http://www.fourthworld.com
>   Webzine for Rev developers: http://www.revjournal.com
>   revJournal blog: http://revjournal.com/blog.irv
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Finding the name of a USB volume

2010-01-06 Thread Peter Brigham MD
FWIW, I was unable to find a way of getting the name of the currently- 
connected USB printer without asking the user when it is first  
encountered and storing the associated printername (as listed in the  
printer dialog under printers with available drivers). With printers  
there seems to be no way of fetching the user-chosen name of the  
device from any shell call for USB info, at least as far as I have  
been able to discover. But I am hardly knowledgeable about shell  
calls


-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


On Jan 6, 2010, at 10:36 AM, Richard Gaskin wrote:

I'm making a custom installer in which I want to provide the option  
of a normal desktop install to the hard drive and a zero-footprint  
install to a removable USB drive (no registry entries, prefs stored  
in the app folder, etc.).


To help make this simple for the user I'd like to present a list of  
available USB drives if they choose that option, so they can pick  
the target for the install.


Phil Davis was kind enough to share some pointers in his libUsbDrive  
library (see <http://pdslabs.net/usb/index.html>), which has me  
exploring the use of shell calls on OS X to system_profiler, e.g.:


  get shell("system_profiler -xml SPUSBDataType")

While the info returned there contains a lot of very useful stuff,  
the one thing I'm not able to find is the name of the volume as it  
appears to the user on the desktop.


Well, sometimes, that is.

It seems that if I've named the drive in the Finder, the Volumes  
section of the data returned from that shell call is filled in, and  
includes the apparent name of the volume.


But drives which haven't been given a name on a Mac system appear on  
the desktop as "Untitled", and although the data from the  
system_profiler shows it as a removable drive there is no Volumes  
section included and hence no way to know the name of the drive as  
it appears to the user.


When there is is a Volumes section the _name key there shows the  
name as it appears in the Finder, but drives that have not  
explicitly been given a name appear as "Untitled" or "Untitled 1",  
etc., in the Finder and the corresponding _name key from  
system_profiler is something different (for example my card reader  
device has a _name value of "Generic USB2.0 card " in  
system_profiler, but on the desktop it appears as "Untitled 1").


Do any of you know a way I can use shell or AppleScript to obtain  
the apparent name of a removable drive when system_profiler fails to  
return it?


Extra bonus points:  what shell calls would I use to get this info  
on Linux?  I think I have the Windows side of things down, but I'll  
need to work out the Linux side soon.


TIA -

--
Richard Gaskin
Fourth World
Rev training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com
revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Finding the name of a USB volume

2010-01-06 Thread Richard Gaskin
I'm making a custom installer in which I want to provide the option of a 
normal desktop install to the hard drive and a zero-footprint install to 
a removable USB drive (no registry entries, prefs stored in the app 
folder, etc.).


To help make this simple for the user I'd like to present a list of 
available USB drives if they choose that option, so they can pick the 
target for the install.


Phil Davis was kind enough to share some pointers in his libUsbDrive 
library (see <http://pdslabs.net/usb/index.html>), which has me 
exploring the use of shell calls on OS X to system_profiler, e.g.:


   get shell("system_profiler -xml SPUSBDataType")

While the info returned there contains a lot of very useful stuff, the 
one thing I'm not able to find is the name of the volume as it appears 
to the user on the desktop.


Well, sometimes, that is.

It seems that if I've named the drive in the Finder, the Volumes section 
of the data returned from that shell call is filled in, and includes the 
apparent name of the volume.


But drives which haven't been given a name on a Mac system appear on the 
desktop as "Untitled", and although the data from the system_profiler 
shows it as a removable drive there is no Volumes section included and 
hence no way to know the name of the drive as it appears to the user.


When there is is a Volumes section the _name key there shows the name as 
it appears in the Finder, but drives that have not explicitly been given 
a name appear as "Untitled" or "Untitled 1", etc., in the Finder and the 
corresponding _name key from system_profiler is something different (for 
example my card reader device has a _name value of "Generic USB2.0 card 
" in system_profiler, but on the desktop it appears as "Untitled 1").


Do any of you know a way I can use shell or AppleScript to obtain the 
apparent name of a removable drive when system_profiler fails to return it?


Extra bonus points:  what shell calls would I use to get this info on 
Linux?  I think I have the Windows side of things down, but I'll need to 
work out the Linux side soon.


TIA -

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: First look at Service USB gadget

2009-05-04 Thread Bob Sneidar

I had no idea that Aussie's say, "Dude!"

Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On May 1, 2009, at 10:05 AM, Scott Rossi wrote:


Dude, you have no idea...

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: First look at Service USB gadget

2009-05-03 Thread Kay C Lan
On Fri, May 1, 2009 at 10:09 PM,  wrote:

>
> Almost anyone could create an alarm system, a light show or the like with
> radio shack components. You need hobby level electronic know-how to do
> anything really cool, but your Mac can completely control the world. It is
> hardware I/O for the rest of us.
>
> For a lot less money and more capability you might want to check out one of
these (you'll need advanced hobby level electronics know-how):

http://www.modtronix.com/product_info.php?cPath=105_112&products_id=149

If that's a little too hard for you and you wish to stick with hobby level
electronics know-how, then adding this expansion module is still cheaper:

http://www.modtronix.com/product_info.php?products_id=198

What I like is it's ethernet based, although there other options. As such
you can control things at home from the office and don't necessarily need
Rev, you can do it with a web browser :-) Check out the example they have
hooked up to the internet, you can turn it's ports on and off from your
browser.

Now that's cool and cheap :-)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: First look at Service USB gadget

2009-05-01 Thread Scott Rossi
Recently, Richard Gaskin wrote:

> Don Rossi, is this not the thing you need to take CyberRave into the
> 21st century?

Dude, you have no idea...

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: First look at Service USB gadget

2009-05-01 Thread DunbarX
Sure. It's:

http://www.bkohg.com/index_e.html

Craig Newman


**
Access 350+ FREE radio stations anytime from 
anywhere on the web. Get the Radio Toolbar! 
(http://toolbar.aol.com/aolradio/download.html?ncid=emlcntusdown0003)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: First look at Service USB gadget

2009-05-01 Thread Richard Gaskin

DunbarX wrote:
I got one of these, a general purpose I/O device. It simply plugs into a 
USB port on a Mac. It is a stronger, though very similar version of the old 
Beehive "ADB I/O" device. Stronger mainly in that USB is much faster than 
Apple's ADB bus. It is completely self contained. Plug and play. It comes with 
externals for revolution, as well as other environments.


It is a fabulous toy. Basically, a suite of rev commands and functions 
allows one to "write" (open and close output switch contacts) or "read" (detect 
the state of input switch contacts). There are also analog inputs with 12 
bit resolution, and pulse width modulation is implemented internally


Almost anyone could create an alarm system, a light show or the like with 
radio shack components. You need hobby level electronic know-how to do 
anything really cool, but your Mac can completely control the world. It is 
hardware I/O for the rest of us.


Way cool!  Thanks for posting that.  Somehow I'd missed it, but after 
your post I dug up RR's press release:

<http://www.runrev.com/company/press-release-archive/service-usb-plus/>

This caught my eye there:

   SERVICE USB plus is a proven, robust control technology in
   professional implementations for industry, tradeshows and
   entertainment. With this release, it can be used, for example,
   to drive special effects such as flashes or fog machines at
   concerts and tradeshows, directly from within Runtime
   Revolution applications.

Hmmm...I can envision all sorts of things I'd like to do for my next Rev 
seminar presentation.  With Rev and Service USB I can now replace Steve 
Jobs' entire support staff with some really cool robots to drive lights, 
projection, lasers, and a fog machine  :)


Okay, there are a million more useful things that can be done with it, 
but I can dream can't I?


Don Rossi, is this not the thing you need to take CyberRave into the 
21st century?


--
 Richard Gaskin
 Fourth World Media Corporation
 Developer of WebMerge: Publish any database on any Web site
 ___
 ambassa...@fourthworld.com   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: First look at Service USB gadget

2009-05-01 Thread Bernard Devlin
Craig, I'm interested.  Can you post a URL for the supplier?  I'm
amazed that there are Rev externals for it.

Thanks,
Bernard

On Fri, May 1, 2009 at 3:09 PM,   wrote:
> I got one of these, a general purpose I/O device. It simply plugs into a
> USB port on a Mac. It is a stronger, though very similar version of the old
> Beehive "ADB I/O" device. Stronger mainly in that USB is much faster than
> Apple's ADB bus. It is completely self contained. Plug and play. It comes with
> externals for revolution, as well as other environments.
>
> It is a fabulous toy. Basically, a suite of rev commands and functions
> allows one to "write" (open and close output switch contacts) or "read" 
> (detect
> the state of input switch contacts). There are also analog inputs with 12
> bit resolution, and pulse width modulation is implemented internally
>
> Almost anyone could create an alarm system, a light show or the like with
> radio shack components. You need hobby level electronic know-how to do
> anything really cool, but your Mac can completely control the world. It is
> hardware I/O for the rest of us.
>
> Craig Newman
>
>
> **
> Access 350+ FREE radio stations anytime from
> anywhere on the web. Get the Radio Toolbar!
> (http://toolbar.aol.com/aolradio/download.html?ncid=emlcntusdown0003)
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


First look at Service USB gadget

2009-05-01 Thread DunbarX
I got one of these, a general purpose I/O device. It simply plugs into a 
USB port on a Mac. It is a stronger, though very similar version of the old 
Beehive "ADB I/O" device. Stronger mainly in that USB is much faster than 
Apple's ADB bus. It is completely self contained. Plug and play. It comes with 
externals for revolution, as well as other environments.

It is a fabulous toy. Basically, a suite of rev commands and functions 
allows one to "write" (open and close output switch contacts) or "read" (detect 
the state of input switch contacts). There are also analog inputs with 12 
bit resolution, and pulse width modulation is implemented internally

Almost anyone could create an alarm system, a light show or the like with 
radio shack components. You need hobby level electronic know-how to do 
anything really cool, but your Mac can completely control the world. It is 
hardware I/O for the rest of us.

Craig Newman


**
Access 350+ FREE radio stations anytime from 
anywhere on the web. Get the Radio Toolbar! 
(http://toolbar.aol.com/aolradio/download.html?ncid=emlcntusdown0003)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Addressing Hardware - particularly usb port

2009-02-12 Thread Phil Davis
P.S. - Here's how I send a command to the device after the 
"myDeviceNames" function tells me which devices are available:


global gCurrentDevice

on mouseUp
  -- locate the device driver
  put myDeviceNames() into tDevice
  filter tDevice with "usbmodem*"
  if tDevice = empty then
 answer "Can't find device."
 exit to top
  end if
 
  if the number of lines in tDevice > 1 then

 answer "Multiple device drivers!" & cr & tDevice
 exit to top
  end if
 
  put (item 3 of tDevice) into gCurrentDevice

  open driver gCurrentDevice for update
  put the result into fld "result"
  write tMyCommand & cr to driver gCurrentDevice -- be sure the CR is 
there!

  put the result into fld "result"
end mouseUp



Phil Davis wrote:

Hey Peter,

Is your device listed in the output of this function? If so, try 
opening it and writing a command to it.



function myDeviceNames
 # Handler courtesy of Ken Ray & Dar Scott

 local theNames="", ioregOutput, skipLines, temp
 local IOTTYDevice, IODialinDevice, IOCalloutDevice
 set the hideConsoleWindows to true
 put shell("ioreg -n IOSerialBSDClient") into ioregOutput
 repeat forever
   put lineOffset("IOSerialBSDCLient",ioregOutput) into skipLines
   if skipLines is zero then return thenames
   delete line 1 to skipLines of ioregOutput
   -- Get all the data between the braces
   put char(offset("{",ioregOutput)) to (offset("}",ioregOutput)) of 
ioregOutput into temp

   get matchText(temp,"\"IOTTYDevice\" = \"(.*?)\"",IOTTYDevice)
   if it is not true then next repeat
   get matchText(temp,"\"IODialinDevice\" = \"(.*?)\"",IODialinDevice)
   if it is not true then next repeat
   get matchText(temp,"\"IOCalloutDevice\" = \"(.*?)\"",IOCalloutDevice)
   if it is not true then next repeat
   put IOTTYDevice,IODialinDevice,IOCalloutDevice & lineFeed after 
theNames

 end repeat
end myDeviceNames


HTH -
Phil Davis



Peter Alcibiades wrote:

Thanks everyone!  Its Linux, the OS that is being used.

Sarah's article is interesting, but my problem is that the device is 
USB. So a serial to USB adaptor won't do it - it will allow use of a 
serial
device on a usb port.  If anything what I'd need would go the other 
way -

allow use of a usb device on a serial port.

One other suggestion is to make one of the usb ports into a virtual 
serial

port.  Yes, maybe.  Again, not something I've ever gone near, but will
probably try it before this is over!  Apparently you can map them...
  




--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Addressing Hardware - particularly usb port

2009-02-12 Thread Phil Davis

Hey Peter,

Is your device listed in the output of this function? If so, try opening 
it and writing a command to it.



function myDeviceNames
 # Handler courtesy of Ken Ray & Dar Scott

 local theNames="", ioregOutput, skipLines, temp
 local IOTTYDevice, IODialinDevice, IOCalloutDevice
 set the hideConsoleWindows to true
 put shell("ioreg -n IOSerialBSDClient") into ioregOutput
 repeat forever
   put lineOffset("IOSerialBSDCLient",ioregOutput) into skipLines
   if skipLines is zero then return thenames
   delete line 1 to skipLines of ioregOutput
   -- Get all the data between the braces
   put char(offset("{",ioregOutput)) to (offset("}",ioregOutput)) of 
ioregOutput into temp

   get matchText(temp,"\"IOTTYDevice\" = \"(.*?)\"",IOTTYDevice)
   if it is not true then next repeat
   get matchText(temp,"\"IODialinDevice\" = \"(.*?)\"",IODialinDevice)
   if it is not true then next repeat
   get matchText(temp,"\"IOCalloutDevice\" = \"(.*?)\"",IOCalloutDevice)
   if it is not true then next repeat
   put IOTTYDevice,IODialinDevice,IOCalloutDevice & lineFeed after theNames
 end repeat
end myDeviceNames


HTH -
Phil Davis



Peter Alcibiades wrote:

Thanks everyone!  Its Linux, the OS that is being used.

Sarah's article is interesting, but my problem is that the device is USB. 
So a serial to USB adaptor won't do it - it will allow use of a serial

device on a usb port.  If anything what I'd need would go the other way -
allow use of a usb device on a serial port.

One other suggestion is to make one of the usb ports into a virtual serial
port.  Yes, maybe.  Again, not something I've ever gone near, but will
probably try it before this is over!  Apparently you can map them...
  


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Addressing Hardware - particularly usb port

2009-02-12 Thread Peter Alcibiades

Thanks everyone!  Its Linux, the OS that is being used.

Sarah's article is interesting, but my problem is that the device is USB. 
So a serial to USB adaptor won't do it - it will allow use of a serial
device on a usb port.  If anything what I'd need would go the other way -
allow use of a usb device on a serial port.

One other suggestion is to make one of the usb ports into a virtual serial
port.  Yes, maybe.  Again, not something I've ever gone near, but will
probably try it before this is over!  Apparently you can map them...
-- 
View this message in context: 
http://www.nabble.com/Addressing-Hardware---particularly-usb-port-tp21950882p21974634.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Addressing Hardware - particularly usb port

2009-02-11 Thread Phil Davis

Hi Peter,

What platform are you running?

Also, is your meter is a USB Communications Class device? In other 
words, does it have a defined command set (like a modem)? If so, you'll 
need a driver of some sort; or as others have said, the simplest 
approach would probably be to use a USB-to-Serial converter between the 
computer and the device.


Here's an article that might help some. It is based on info from Sarah 
Reichelt, who uses USB+Rev all the time:

  http://www.pdslabs.net/usb/rev-usb1.pdf

Best -
Phil Davis



Peter Alcibiades wrote:
Is it possible in Rev to address a usb device directly?  I've no experience 
of this sort of thing, but have a USB meter which I need to talk to.  

If not, does anyone know if its possible from the shell?  Or is this a case 
of, do it in C or forget it?


Peter


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Addressing Hardware - particularly usb port

2009-02-11 Thread DunbarX

In a message dated 2/11/09 4:13:24 AM, palcibiades-fi...@yahoo.co.uk writes:


> Is it possible in Rev to address a usb device directly?  I've no experience
> of this sort of thing, but have a USB meter which I need to talk to. 
> 

Get this. i have not, but it seems perfect.

\\http://www.bkohg.com/serviceusbplus_e.html


**
Nothing says I love 
you like flowers! Find a florist near you now. 
(http://yellowpages.aol.com/search?query=florist&ncid=emlcntusyelp0001)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Addressing Hardware - particularly usb port

2009-02-11 Thread camm29
Yes it can, but you must have a Virtual port that appears to be a serial comm 
port.

Rev will only send/receive Commands/Data  via serial RS232 , the only problem 
then is the USB meter data requirements.

Regards
Camm


 Peter Alcibiades  wrote: 
> Is it possible in Rev to address a usb device directly?  I've no experience 
> of this sort of thing, but have a USB meter which I need to talk to.  
> 
> If not, does anyone know if its possible from the shell?  Or is this a case 
> of, do it in C or forget it?
> 
> Peter
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Addressing Hardware - particularly usb port

2009-02-11 Thread Peter Alcibiades
Is it possible in Rev to address a usb device directly?  I've no experience 
of this sort of thing, but have a USB meter which I need to talk to.  

If not, does anyone know if its possible from the shell?  Or is this a case 
of, do it in C or forget it?

Peter
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB barcode scanner?

2008-11-30 Thread Peter Alcibiades

They are LED or Laser.  The difference is range and fragility.  The LED ones
have to be used much closer up to the code, like 6 inches, but they are very
robust.  The Laser ones can be used quite a distance away, but don't drop
them.  I prefer LED.  They will get dropped.

As others say, the 'wedge' ones act like a keyboard, and need no drivers. 
But, and it may not matter in your application, bear in mind that they send
the characters they read followed by either return or enter but not both. 
This has a couple of consequences.  If you allow keyboard entry of codes as
well, obviously you have to handle both enter and return.  Also I had some
timing problems.  I made caps D send mouseup to a Discount button. The user
wanted for the cashier to be able to either do discounts by just using the
reader, or alternatively, just using the mouse. Problem was that it sent
mouseup to the Discount button and then sometimes but not always then sent
return when the user was expected to first enter the amount of the
discount I fixed this by the brute force method of sending to an
invisible dummy button, waiting a fraction of a second, and then sending
mouseup on, so absorbing the enter. 

Sarah's little stack was very useful in decoding what exactly the reader was
sending.  If you want to handle some keypresses, this means that you know
exactly what is being sent and so you can harmonize the keyboard and the
reader.  

kbarcode, if you can run Linux apps, is a great free package for generating
bar codes and printing bar code labels.  Bear in mind that if you generate
labels in a word processor, like for a cash register laminated sheet, and
there are quite a few free bar code fonts out there that can be used for
this, you have to use start/stop characters, and these differ from Windows
to Linux, and I assume the Mac will be different as well.  Its * for Linux,
and if I recall correctly its ! in Windows. You can find yourself staring at
the thing in frustration wondering why the shop label codes work perfectly,
but the ones you have just made up do not.  This is probably why.

I found the really hard issue to be not so much this stuff, as the tradeoffs
you end up considering between convenience and security.  Very hard to
strike the balance.  You have to spend some time thinking like a thief and
craftily installing logs, and whatever you do you'll miss something. 
-- 
View this message in context: 
http://www.nabble.com/USB-barcode-scanner--tp20747555p20759008.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB barcode scanner?

2008-11-29 Thread Scott Rossi
Recently, Tim Ponn wrote:

> Can anybody recommend a usb barcode scanner that I can get to work
> with rev?  I using rev 2.81 and a Mac.  I've got my POS app working
> nicely now and it's time for the next step...adding a scanner.

Hi Tim:

I haven't used it extensively but I have an IntelliScanner Mini from here:
http://www.intelliscanner.com/

The biggest selling point for me on this unit is the size -- it could
literally fit on a keyring.  It works in 2 modes: batch, where you scan
codes unplugged and it stores codes in onboard memory; and tethered, where
scans are immediately sent to the front most application (or one of the
applications that ships with the unit).

It's been a while since I last used it, but I just installed the latest
dashboard software on OSX 10.4.11, and ran it with Revolution 3.  Scans are
immediately transferred to an open field, along with a return character.

FWIW.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB barcode scanner?

2008-11-29 Thread Sarah Reichelt
On Sun, Nov 30, 2008 at 12:28 AM, Tim Ponn <[EMAIL PROTECTED]> wrote:
> Hello!
>
> Can anybody recommend a usb barcode scanner that I can get to work with rev?
>  I using rev 2.81 and a Mac.  I've got my POS app working nicely now and
> it's time for the next step...adding a scanner.
>

As the others have said, any scanner that operates in keyboard wedge
mode will be fine. A lot of them come with cables sold separately, so
don't forget to specify that you want USB. I recommend a scanner with
multiple scan lines - it easier to use as the barcode doesn't have to
be positioned so exactly.

I have used scanners made by Unitech and by Datalogic, both with Macs
& Revolution applications.

Cheers,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB barcode scanner?

2008-11-29 Thread J. Landman Gay

Stephen Barncard wrote:
Most of the bar code devices operate like a keyboard input device out of 
the box as a straight barcode scanner (i.e. outputs a translation of the 
barcode in text),


I wrote a stack some years ago that worked with a barcode reader, which 
I had never seen and did not have access to. I just used normal 
keydown/keyup and "on returnkey" handlers, and it all worked fine. There 
was no difference between keyboard entry and barcode entry. So what you 
say works. I warned the client they'd have to test, and it never failed 
in any way.


 I think Jacque was on the Evangelists list, or was it Mac Marines? It 
was a while ago. Over 20 years of mail-lists. The mind boggles.


It was the Evangelists list, but I only read it, I never posted. And 
yes, I can't believe where the time goes.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB barcode scanner?

2008-11-29 Thread Colin Holgate


On Nov 29, 2008, at 9:28 AM, Tim Ponn wrote:


Hello!

Can anybody recommend a usb barcode scanner that I can get to work  
with rev?  I using rev 2.81 and a Mac.  I've got my POS app working  
nicely now and it's time for the next step...adding a scanner.




What Stephen said. One other thing to know is that the barcode  
scanners can have their behavior modified by scanning barcodes in the  
booklet that comes with them. For example, you can have the scanner  
send a return after it's finished reading the barcode. That can be  
handy for your input routine, so it knows when the scanner has  
finished sending.


There is no difference at all between a user typing on a keyboard, and  
the scanner sending its keystrokes, so if you have an application  
where a user is supposed to type into one field, and a scanner grabs a  
barcode without showing the text captured, your user could trigger the  
scanner while typing into the visible field, and they will see the  
barcode numbers typed in for them. That may not matter, but it could  
influence your design, you would want to make sure not to set up  
situations where the user can easily be confused.


Another setting for the scanner is the baud rate (they're really  
serial, with USB converters). Set that to as high as you can, and even  
then the apparent typing speed is not very fast.



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: USB barcode scanner?

2008-11-29 Thread Stephen Barncard

Timothy ,
Most of the bar code devices operate like a keyboard input device out 
of the box as a straight barcode scanner (i.e. outputs a translation 
of the barcode in text), others have features like storage where the 
scanner does not have to be tethered to the computer, can dump later, 
Wifi, etc.


Most of them won't mention the Mac, even though everybody's 
conforming to standards. So don't let the PC part deter you, unless 
you need software to do more than recognize IPC symbols. It appears 
your scripts will do the rest.


 It's interesting in the peripherals world, when often many USB and 
Firewire devices built to standards, are sold with no reference to 
Macintosh at all in the ads and packaging, even though they work 
perfectly (and often install without drivers) and are a significant 
part of their sales are to mac customers. This is especially true of 
hard drives and network routers. Incredibly ignorant of the marketers 
if you ask me, and a wasted opportunity.


I used to be an annoying Mac Evangelist (remember those?) when we 
felt we had to fight every fight against the PC 'hegemony', or we'd 
be stuck with the alternative in the future. Today, Apple's strong, 
hip, visionary, and makes solid products these days that sell 
themselves, so I don't have to do that anymore.


 I think Jacque was on the Evangelists list, or was it Mac Marines? 
It was a while ago. Over 20 years of mail-lists. The mind boggles.




Hello!

Can anybody recommend a usb barcode scanner that I can get to work 
with rev?  I using rev 2.81 and a Mac.  I've got my POS app working 
nicely now and it's time for the next step...adding a scanner.


Thanks!



Best Regards,


Timothy R. Ponn
--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


  1   2   3   4   >