AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to capture footpedal input
Goto page 1, 2  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ribbet.1



Joined: 20 Feb 2007
Posts: 197
Location: D.C.

PostPosted: Thu Feb 28, 2008 7:19 pm    Post subject: How to capture footpedal input Reply with quote

The most common footpedal device used for transcription is your "Infinity" USB pedal. They're sold for ~ $75 USD and have 3 pedals on one device. Typical footpedal software only privides for play, pause, rewind, etc. using a specific audio program. I have one, and I'd like to extend the functionality of my pedal to lots of other stuff but don't know where to start. Any way to capture this input and use it in AHK?
Back to top
View user's profile Send private message
Conquer



Joined: 27 Jun 2006
Posts: 385
Location: Canada

PostPosted: Thu Feb 28, 2008 8:33 pm    Post subject: Reply with quote

You probably already checked, but do any of the pedals show up in KeyHistory? If so you can just remap the key with the SC Code #.


If you find it shows up in KeyHistory, please post your results. Smile
Back to top
View user's profile Send private message
Erittaf



Joined: 02 Nov 2007
Posts: 188

PostPosted: Thu Feb 28, 2008 9:29 pm    Post subject: Reply with quote

This is likely something that AHK won't be able to see. However, don't give up before you try the method at the bottom of http://www.autohotkey.com/docs/KeyList.htm
Back to top
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Thu Feb 28, 2008 10:25 pm    Post subject: Reply with quote

here's another thought, though it may be a long shot: try the joystick test script to see if your footpedal shows up as a joystick
_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!
Back to top
View user's profile Send private message
ribbet.1



Joined: 20 Feb 2007
Posts: 197
Location: D.C.

PostPosted: Fri Feb 29, 2008 3:45 am    Post subject: Reply with quote

Hey thanks everybody for all your replies. I've tried all your suggestions and no go. But I've learned a few things from your answers, so it was well worth it. Does not show in key history, is not recognized as a joystick. But thanks anyway! Lots of other solutions out there.
Back to top
View user's profile Send private message
ribbet.1



Joined: 20 Feb 2007
Posts: 197
Location: D.C.

PostPosted: Thu Aug 07, 2008 11:44 am    Post subject: Reply with quote

Eh, months later, I still don't know the answer to this one, but I do know that a pedal made by p.i. design allows you to assign any text string to each of the pedals.
Back to top
View user's profile Send private message
TrollingAL
Guest





PostPosted: Thu Aug 07, 2008 1:51 pm    Post subject: Reply with quote

I know you wanted to use autohotkey for this but maybe a different route

http://www.nch.com.au/footpedal/

Quote:

Just a note on Pedable:

Upon opening the application, you can map any shortcut key to one of the three footpedals. So, for example, if you wanted to use the foot pedal to play and pause your Windows Media Player, you could map one of the pedals to CTRL+P. Whenever the Windows Media Player window is active, pressing your designated pedal would play and pause the playback, making transcription from a video source theoretically possible. However, because you would be transcribing in Microsoft Word or a similar word processor, it would be the active window, meaning that pressing the pedal would cause a prompt window for printing the document to open (CTRL+P is the printing hotkey for Word and most other word processor applications).
In order to transcribe from a video source, you would need to have an application that supports Global Hot Keys (a shortcut key which would perform a function in the desired program, regardless of which application was currently active on your PC).

So, to enable you to transcribe from a video file, I would recommend downloading the Global Hot Key plugin for Windows Media Player, located at: http://wmpkeys.sourceforge.net/
Then, simply map your middle pedal to CTRL+ALT+HOME (the default for Play/Pause). This will allow you to be typing in Microsoft Word, and control the playback with the foot pedal controller, without switching applications.

There may be other media playback applications which support Global Hot Keys that are more appropriate for your system configuration. If you find one, please link it here. I have simply used Windows Media Player as an example, because it is the most popular.


Of course, this is just one use for the Pedable program. I will be testing several other uses over the next coming days, and report my findings here. One possibility which I'm particularly excited about is the possibility of using Pedable (and one of our standard transcription foot pedals) for game play. CounterStrike, World Of Warcraft and Need For Speed are a few examples of games which may be able to use our foot pedals to enhance game play. I'll let you all know what I find.

If you are interested in purchasing one of our Professional Transcription Foot Pedals, for use with Pedable or as a controller for our popular ExpressScribe software (http://www.nch.com.au/scribe/index.html), please visit: http://www.altoedge.com/pedals/index.html
Back to top
ribbet.1



Joined: 20 Feb 2007
Posts: 197
Location: D.C.

PostPosted: Sun Apr 05, 2009 2:38 am    Post subject: Reply with quote

Hey, thanks! I just installed Pedable, and I can certainly use it in conjunction with AHK. This is a very exciting development. Your standard Infinity USB pedal is selling online nowadays for about $58 USD, and you can find them for much less 2nd-hand. Which means one can have a 3-button footpedal to send 3 or more hotkeys for a very low price. It gives the same functionality to a VEC pedal as the PI Engineering, but for a much better price.

IMO, NCH has done it again!
Back to top
View user's profile Send private message
bflmpsvz
Guest





PostPosted: Sun May 31, 2009 9:30 am    Post subject: How to capture footpedal input Reply with quote

Hi,
I have solved the problem by another way - I used electronic from old waste keyboard together with pedal and the result is a kind of keyboard. So it works with AutoHotkey as any other keyboard.
See my page http://staff.cesnet.cz/~michal/vms/pedal/
(This is in czech language, but pictures are essential - or you can try google translation, which has funny results, but sometimes it is usable)
My pedal is Olympus, which is seen by Windows as HID - I am going to try Pedable or this: http://www.autohotkey.net/~Micha/HIDsupport/Autohotkey.html
Now I use only switches in my pedal, but pedal is able to communicate over USB. I gave up my attempts to find software solution and I assembled my keyboard-like solution, which works great, so I have no motivation, but I'll try it.
Back to top
ribbet.1



Joined: 20 Feb 2007
Posts: 197
Location: D.C.

PostPosted: Sun May 31, 2009 12:14 pm    Post subject: Reply with quote

If your Olympus pedal is seen by Windows as a HID device I think maybe there is no need to install Pedable. I believe AHK can work with any generic HID device.

My problem has always been that the Infinity brand is not even recognized as HID, and the drivers were not to be found until recently to allow me to do anything else with it. My work has involved transcription and so I had the common Infinity pedal but could not use it for anything else. I can now.
Back to top
View user's profile Send private message
n-l-i-d
Guest





PostPosted: Sun May 31, 2009 12:58 pm    Post subject: Reply with quote

I think you can get this cheaper, and with more options if you go for (old) MIDI footpanels instead of dedicated (newer) USB devices.

MIDI input library

HTH
Back to top
ribbet.1



Joined: 20 Feb 2007
Posts: 197
Location: D.C.

PostPosted: Sun May 31, 2009 5:54 pm    Post subject: Reply with quote

Eh, I originated this thread with regards to how to use the VEC Infinity footpedal with AHK. As far as I'm concerned the introduction of Pedable is a solution to this problem, although I don't object to others. But the purchase of some MIDI pedal instead is not a solution so much as a good idea for a different thread. I own a VEC pedal already and several MIDI devices, and I'll assure anyone out there that setting up an Infinity pedal is a lot less hassle than setting up a MIDI footpedal just to send keystrokes or simple commands.

The price comparison between a used MIDI foot pedal and a used VEC pedal still favors the VEC. I got one on eBay for $25 a few weeks ago. Install the driver software, set up the hotkeys, and you're done. No fussing with velocity, program change, CC, etc. Very plug-and-play.
Back to top
View user's profile Send private message
n-l-i-d
Guest





PostPosted: Sun May 31, 2009 6:30 pm    Post subject: Reply with quote

Sure.

But you only get 3 pedals...

Elaborate MIDI footpedals have many more.

It was just a hint, do with it whatever you like. A quick look on eBay and similar gives me multiple MIDI footpanels for around 50$ that have 10 or more switches.

Smile
Back to top
ribbet.1



Joined: 20 Feb 2007
Posts: 197
Location: D.C.

PostPosted: Mon Jun 01, 2009 3:17 am    Post subject: Reply with quote

Well I don't want to discourage you. I did try using a simple MIDI keyboard and Orbik's library. It worked but froze up after a few hours, don't know why. I have also built this:

http://homeofthegnome.net/junkdrawer/reaper.pedals.jpg

which used this: http://www.xkeys.com/xkeys/xkswi.php

And it works great.

There are plenty of options.

http://www.delcomproducts.com/products_USBFSW.asp

And I hear that those "dance pads" just send joystick messages, too. So they are yet another option.

And as bflmpsvz mentions, you can just cut up an old keyboard, too. Which is a very direct solution. Smile

And if anybody has any more input about using the Infinity pedal, that would be great. They are commonplace in transcription and in medical transcription also. And thanks to NCH and their application Pedable, they can now be used for a lot more. (Not a paid advertisement. Smile )
Back to top
View user's profile Send private message
DreymaR



Joined: 24 May 2009
Posts: 89
Location: Bćrum, Norway

PostPosted: Wed Jun 03, 2009 2:06 pm    Post subject: Reply with quote

Interesting concept. Three or so foot switches for each switch... vroom vroom! Twisted Evil

Could this thing be of help?
_________________
Better burden you cannot carry than man-wisdom much -- Hávamál
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group