PDA

View Full Version : Changing the function of a bt handsfree's button ?


trueHOUSE
12th October 2008, 06:34 PM
How can i (if it's possible) change the function of the buton on my bt handsfree i want to make it start the camera not dial/hangup is that possible ?
Thanks !

jez83uk
14th October 2008, 01:06 AM
That would be useful. Have the phone set up somewhere, and use your headset as a remote to take pictures. Far better than using a timer, and running to be in the photo.

irus
14th October 2008, 03:22 PM
you can change it to run a different app if you want or make a mort script to run what ever you want.

HKLM\Software\OEM\VoiceCommand\path

jez83uk
15th October 2008, 01:20 PM
you can change it to run a different app if you want or make a mort script to run what ever you want.

HKLM\Software\OEM\VoiceCommand\path


Thanks for this info. I have managed to make it so I can run the camera.exe by pressing the handsfree button. Unfortunately taking a picture is proving slightly more difficult. I thought setting the reg string to run a mortscript saying simply SendCR would press the carriage return upon pressing the handsfree button, and take a photo, but this doesnt seem to work.
Can anyone point out where I'm going wrong, or point out another way of taking the photo. Is it possible to point HKLM\Software\OEM\VoiceCommand\path to button 4 (this is camera button on my hermes) as the function of button 4 changes when in the camera app from 'run set app' to 'take photo'? I dont know if you can set a shortcut to simulate a hardware button

irus
15th October 2008, 09:22 PM
Thanks for this info. I have managed to make it so I can run the camera.exe by pressing the handsfree button. Unfortunately taking a picture is proving slightly more difficult. I thought setting the reg string to run a mortscript saying simply SendCR would press the carriage return upon pressing the handsfree button, and take a photo, but this doesnt seem to work.
Can anyone point out where I'm going wrong, or point out another way of taking the photo. Is it possible to point HKLM\Software\OEM\VoiceCommand\path to button 4 (this is camera button on my hermes) as the function of button 4 changes when in the camera app from 'run set app' to 'take photo'? I dont know if you can set a shortcut to simulate a hardware button

ok first what you need is a mort script that will run camera then change the reg to something else then you press the bt button again and it will take the pic but you need to look on vijay's website, just google vijay555, he has an app where you can emulate any hardware button. hope this helps

jez83uk
16th October 2008, 03:04 AM
ok first what you need is a mort script that will run camera then change the reg to something else then you press the bt button again and it will take the pic but you need to look on vijay's website, just google vijay555, he has an app where you can emulate any hardware button. hope this helps

This is exactly what I had in mind once I'm sure I can get it to work. After a bit of playing around, I have discovered that you can only set the reg key to run a program, not a shortcut or a mortscript.
I checked out VJKeyPress, but it works by following a command line in a shortcut to select the button it emulates. I need a program which purely operates the shutter, and has no other function.
If I cant solve this in the next few days then I may PM Vijay555 and see if he can help.

jez83uk
16th October 2008, 04:15 PM
Success!!
Turns out the amazing vijay555 has another app which does the job called VJBrisk.
By setting the reg key to run VJBrisk.exe, this automatically launches VJTarget.lnk in the same folder. This is a link to VJKeyPress.exe with the command 13, which is RETURN, and which operates the shutter. I have just taken a photo by pressing the button remotely on my bluetooth headset.

Next step is a mortscript which will automatically change the reg key, turn on bluetooth, and run the camera application. And then change the reg key back and turn bluetooth off when the camera app is closed.

trueHOUSE
18th October 2008, 03:56 PM
Amazing , now if you can explain Step by step how we can do this will be really amazing can you do that for all of us who are searching for solution ?
Can you do this ?

jez83uk
19th October 2008, 01:52 AM
I haven't had time to look at making a mortscript yet. To simply take photos using the headset, I have used VJBrisk and VJKeyPress, both freeware from vijay555's site (http://www.vijay555.com/?Releases). I have also used Resco Explorer to edit the registry and create shortcuts, but you can use freeware alternatives.

Download and install both the VJ apps, and then create a shortcut to VJKeypress. In Resco this can be done by selecting the target and pressing copy, then navigating to the folder it is wanted in, and pressing 'paste shortcut'. Place this shortcut in the VJBrisk folder, and edit its command line to read:

"\Program Files\vijay555\VJKeyPress\VJKeyPress.exe" 13

Rename the shortcut to VJTarget.lnk

Now edit the reg string HKLM\Software\OEM\VoiceCommand\path to point to \Program Files\vijay555\VJBrisk\VJBrisk.exe

Now when connected to your headset, the button operates as the RETURN key, and hence will take a photo when the camera app is active. You may want to check the shutter sound is on, and the review time is set to 'no review'.

trueHOUSE
19th October 2008, 03:29 AM
ok .. here comes the problem i don't have Voice Commander
Which commander to install ?
I installed Microsoft Voice Command 1.6 the folder in registry appeard and it doen't work i can't understand where i am wrong

vijay555
19th October 2008, 11:40 PM
I have to say, I had prepared another way to achieve this about 2 years ago, by dynamically rewriting the bluetooth headset driver, but this way seems quite a bit easier!

http://www.ee.bgu.ac.il/%7Ecensor/jpg-directory/miscellaneous/i-wish-these-were-brains.jpg


Clearly I am just a pretty face.

V

jez83uk
20th October 2008, 01:53 AM
ok .. here comes the problem i don't have Voice Commander
Which commander to install ?
I installed Microsoft Voice Command 1.6 the folder in registry appeard and it doen't work i can't understand where i am wrong

I'm afraid I'm no expert here.

What is the contents of 'HKLM\Software\OEM\VoiceCommand'?

I now have a string '(Default)' with no value set, a string 'path' pointing to VJBrisk, and DWORD's of 'LaunchAPEnable', 'VoiceCmdDuration' and 'VoiceCmdEnable' all set to 1.

I hope this helps you, or that someone more knowledgable than me can jump in and give you some advice.

jez83uk
20th October 2008, 02:01 AM
I have to say, I had prepared another way to achieve this about 2 years ago, by dynamically rewriting the bluetooth headset driver, but this way seems quite a bit easier!

Clearly I am just a pretty face.

V

Rewriting a bluetooth driver. It sounds like you are more than just a pretty face, you just needed an idiots perspective which I was glad to provide. Many thanks for your apps, because I wouldn't have had a clue where to start without them.:D:D:D

trueHOUSE
20th October 2008, 05:03 AM
i installed Windows Commander (i think) i have the same files ,but not the same succes i don't know why but it just doesn't work for me i tryed 5-6 times