Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

C# and a USB foot pedal device
Hello, I am trying to create a windows application that allows users
to playback .wav audio files in a windows application created using
c#.

I have embedded a windows media player into my form, and everything
works well, the next part of the program is to allow the users to
control the playback of the audio file with a foot pedal that is
connected to the computer via a USB connection.

Could someone please give me some help in this? Can the windows media
player be controlled by a USB foot pedal? If so how does one set this
up?

Can I capture the events of the foot pedal? If so how? Once I have
caught them I can just call the other methods that I have already
written to control the playback.

Any advice would be greatly appreciated.
Steve

Report this thread to moderator Post Follow-up to this message
Old Post
Steve
11-20-04 01:56 PM


Re: C# and a USB foot pedal device
1. Can the wmp be controlled by a USB foot pedal?

- sure

2. How does one set this up?

- see answer to Q#3

3. Can I capture the events of the foot pedal?

- probably, you'll have to contact the manufacturer of the USB pedal
to see if they have an SDK you can use or something.  Else you'll have
to dive into some painful IO port programming (search google for "C#
IO ports uncensored" for an idea on what you'll be in for ... the
article I'm thinking of is on codeproject I think)

Good luck,
Joel Martinez
http://www.onetug.org - Orlando .NET User Group
http://www.codecube.net - blog

sbkoppens@hotmail.com (Steve) wrote in message news:<a97bf82e.0411200237.1f82c500@posting.g
oogle.com>...
> Hello, I am trying to create a windows application that allows users
> to playback .wav audio files in a windows application created using
> c#.
>
> I have embedded a windows media player into my form, and everything
> works well, the next part of the program is to allow the users to
> control the playback of the audio file with a foot pedal that is
> connected to the computer via a USB connection.
>
> Could someone please give me some help in this? Can the windows media
> player be controlled by a USB foot pedal? If so how does one set this
> up?
>
> Can I capture the events of the foot pedal? If so how? Once I have
> caught them I can just call the other methods that I have already
> written to control the playback.
>
> Any advice would be greatly appreciated.
> Steve

Report this thread to moderator Post Follow-up to this message
Old Post
Joel Martinez
11-23-04 01:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

C# archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:18 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.