Internal answering Machine software - Windows Mobile Development and Hacking General

I post it in the General forum, and I think it's relevant here as well.
I was looking all over the net, and I didn't find any internal answering machine utility for the phone edition.
Of course this isn't any cell phone carrier best interest, but this could save some bucks to most of us, instead of using the regular voice mail.
Does anybody knows of any existing software, or any on development?
Maybe one of the programmers here will find it as a good idea for his next utility?

As far as I've investigated it is impossible to write such an application. Windows disables the audio driver while the call is active, so you cannot play anything to the cell line. Only recording is possible. At least this is true for my Rover S1 (aka AnexTek SP230)

hard to do
not quite: "Windows disables the audio driver"
but only lock the driver.
we can do it only in this way: we have to close/delete the default Phone application and replace all its features in the new one, which will have "answering machine" options too.

Re: hard to do
JGUI said:
not quite: "Windows disables the audio driver"
but only lock the driver.
we can do it only in this way: we have to close/delete the default Phone application and replace all its features in the new one, which will have "answering machine" options too.
Click to expand...
Click to collapse
A program which diables the phone app is pocketnav. It is almost the only app closing the phone app!

Related

Where can I get SDKs for XDA II?

I saw a lot of programs developed for XDA II, and they are for XDA II only. So it must be a SDK documents somewhere, otherwise no-one can write codes specific for XDA II, Am i correct?
If so, could anyone tell me where can I get the XDA II's SDK?
Thanks in advance
SDK is the PocketPC2003 SDK available free from Microsoft.
It really needs embedded Visual C++ 4, also available free from Microsoft.
http://www.microsoft.com/windowsmobile/default.mspx
They'll also send you all the tools on DVD for a small handling fee, as they are huge downloads.
andyclap said:
SDK is the PocketPC2003 SDK available free from Microsoft.
It really needs embedded Visual C++ 4, also available free from Microsoft.
http://www.microsoft.com/windowsmobile/default.mspx
They'll also send you all the tools on DVD for a small handling fee, as they are huge downloads.
Click to expand...
Click to collapse
Sorry, I didn't make myself clear.
I have the generic SDK from MS, what I need is the SDK for XDA II, it should come from XDA II's manufacture.
Thanks
well there are not xda2 stk
but there are a collection of stk's
one of them is ms's
another is the one which the cam program uses
another is the stk of the ati 2d chip
i think ati will give you their sdk if you reg at their site or something
dont think the cam's sdk is something they would let people get their hands on
a xda2 sdk would be like having a dell Latitude sdk
it dont work like that
Rudegar said:
well there are not xda2 stk
but there are a collection of stk's
one of them is ms's
another is the one which the cam program uses
another is the stk of the ati 2d chip
i think ati will give you their sdk if you reg at their site or something
dont think the cam's sdk is something they would let people get their hands on
a xda2 sdk would be like having a dell Latitude sdk
it dont work like that
Click to expand...
Click to collapse
Thanks, where is the website for ATI? could you post a link please?
BTW, what I need to do is to develop GSM related applications specific for XDA II, say, timed SMS sending. It is best if I can plug my apps into their build-in apps like SMS (it does not have timed SMS sending options)
Aha you're after the device SDK for the XDAII. You want to know what drivers are supplied and how to use them to control the specific hardware at the lowest level, e.g. ATI graphics, Radio hardware, Camera, Bluetooth, Buttons, comms, etc.
... unfortuantely HTC are an absolutely closed shop. Getting any information out of them is like getting blood out of a stone. A particularly hard and bloodless stone.
This site is really the closest thing we have, although as mentioned above you might have some luck with the specific hardware manufacturers such as ATI (although they are also notoriously unforthcoming). There's also sourceO2, who have similar level of knowledge about supporting low level development on the XDAII as a particularly stupid earthworm.
Usual rant follows... If only the device manufacturers would properly open up their products to developers, they'd see a wealth of applications developed that'd make their hardware a real "must have". They probably think it'd eat into their profits on the next device they produce, which is all they're interested in really.
Incidentally, you can both send SMSs, and use the notification subsystem to schedule an app to run at a particular time via the PPC2003 API. So it'd be fairly simple to knock up a client-side SMS timed sending application wihtout hacking RIL.
Hi, andyclap
Thanks a lot for your informative reply.
I am not actually developing very low level applications. What I planned to do is to develop some value added little programs that could be a plug-in or such a kind.
To make myself clear, I can use an example to explain what I might want to do:
The build-in SMS program does not have the feature the let you send a timed (scheduled) SMS. I am wishing to do is:
insert a menu item into its original context menu (tap-and-hold on SMS message body), you can choose to send at specific time
Anyone have an idea?
build in sms programs are not something which would make it a special xda program
all pocketpcs would be able to use that
that is unless you want to block your application somehow from being used on other pocketpc's then the xda then i suppose you need to access some reg indentifier or something
you want me to give your the link to ati ?
well if you are too lazy to type it then i suppose I must
http://www.ati.com/products/handheld.html
Hmm this may be quite hard to do, as I the messaging system is quite unextensible. It's fine if you want to create a new format from scratch, but extending an existing form handler is, I think, impossible.
Some low level dirty tricks (subclassing windows etc) might work, but would be pretty tricky to do, and very hacky.
I just wish somebody would give the PocketPC team a Symbian SDK, Symbian really got it right when it comes to messaging.
Yes, i can write a new SMS program, but it will need me to deal with Contacts object. I mean, I have to write code for fetching data stored in the build-in contacts database. If I can just plug my function into its contextmenu, I will only need to implement a simple function program (setting date/time, save phone number and message text, create a notification, etc).
Using SetWindowLong can hook into the *****, but this program model is some kind of fragile, very easy to crush the system or the apps itslef, not really stable if not tested thoroughly

SMS Notifier released – a great application for PPCPE users!

Finnish Aali Alikoski, Academic Developer Evangelist of Microsoft Finland, has just released a highly useful application, SMS Notifier, along with its source code.
The application offers some really nice and, up to now, to my knowledge, on the Pocket PC Phone Edition platform, unprecedenced functionality: it waits for unanswered incoming calls and, depending on the configuration settings, it either sends an SMS message to the caller (with configurable contents), possibly containing also the end time of current appointment (this is also configurable) or adds an item to the system-level Windows Mobile calendar (containing the caller info).
The latter functionality is nothing new – you can check the caller's identity and the call date/time in any low-end mobile phone. The former – that is, the SMS feedback –, however, is really long-awaited!
Downloading and Installation
You can download the application here. Transfer the CAB file to your PDA and execute it there.
If, after installing and upon starting SMS Notifier, you're presented this error message, make sure you download and install .NET CF 2.0 from Microsoft. Make sure you install it in the main memory. Also note that, as the application heavily relies on the new, connectivity/database-related libraries of .NET CF2, it's not very easy to port it to run under the earlier Compact Framework library. (For CAB lovers, you will only need c:\Program Files\ Microsoft.NET\SDK\CompactFramework\ v2.0\WindowsCE\wce500\armv4i\NETCFv2.wm.armv4i.cab ; you can also download it from here (to avoid having to download the 24 Mbyte-long MSI installer).
Configuration
On the main set-up screen, there're some checkboxes in AND relationship. The first one, Send SMS to unanswered callers, instructs the application to send an SMS to everybody that tries to call you but his or her calls remain unanswered. Using (not disabling) the second two checkboxes, however, you may make the application not send a SMS to anyone that calls you, just to the ones that call you during an active/busy appointment.
The checkbox/text input area at the bottom makes it possible to report the end of the current appointment so that he or she can know when you are reachable again.
The Calendar tab contains only one checbox, which instructs the application to enter all the incoming calls into Calendar.
Note that the configuration settings are not correctly saved/restored, as the author also points out.
Usage
To use the application, just start and configure it to your liking. Do not click the Quit button – then, it won't send your callers any SMS. Just let it run. You can, of course, suspend the PDA while you do so and also minimize the application. This also means you can safely start it from \Windows\Startup (just like the other highly recommended application, PMRecorder – please see this article on it if interested) – if it's running in the background, it'll safely catch all unanswered calls.
Other stuff
I also recommend the author's blog here. Don't be taken aback of some of the material's being in Finnish: there's nothing really interesting in them for non-Finns (the Finnish blog posts are only about local, Finnish meetings, conferences). Unfortunately, some of the other Finnish .NET bloggers (see the links in the lower left of the page) post exclusively in Finnish, even highly technical stuff that would be interesting for non-Finnish speakers too. (Feel free to ask me in my blog for a public translation for some of them if really interested.)
thanx man .. jus tried it . this application actually works .rockinnn
I can't seem to be able to install the .net Framework 2.o on my new T-Mobile MDA - USA (Wizard)
I get the same error from .cab install or activesynch install:
"Installation error. Stop all applications and processes, maximize all available storage space, and run installation again. Support info:4"
Any suggestions?
oops
PhoneGuy said:
I can't seem to be able to install the .net Framework 2.o on my new T-Mobile MDA - USA (Wizard)
I get the same error from .cab install or activesynch install:
"Installation error. Stop all applications and processes, maximize all available storage space, and run installation again. Support info:4"
Any suggestions?
Click to expand...
Click to collapse
Did you try to install it in the main storage or the storage card? Only install it in the main storage.
Yeah, the options were "Device" or "Storage Card".
I tried Devicce but no luck...
PhoneGuy said:
Yeah, the options were "Device" or "Storage Card".
I tried Devicce but no luck...
Click to expand...
Click to collapse
I've encountered the same when I first tried to install it on a storage card. Then, subsequent installs to the main memory didn't succeed either. A hard reset helped.
I have installed it and it seems to work well. My only concern is that it seems to use the notification application of the phone rather than the call list of the phone. The reason I say this is because it puts a calendar entry in when I miss a call then adds another entry when I check the notification of missed calls.
is this what is supposed to happen? would it send 2 text messages in this case (when the call comes in and when I check the notification that the call did come in)?
thanks,
Edwin
also, it seems if I am on the phone when I miss a call it uses the name of the person I was on the phone with and not the person I missed.
Ruttensoft also has a similar program call minder - works well but not as many features as above program but you don't need NET thing - hate those addons
ethorn said:
is this what is supposed to happen? would it send 2 text messages in this case (when the call comes in and when I check the notification that the call did come in)?
Click to expand...
Click to collapse
That's what happens for me... I stopped using it because of the duplicated sms's...
meschle said:
Ruttensoft also has a similar program call minder - works well but not as many features as above program but you don't need NET thing - hate those addons
Click to expand...
Click to collapse
Tried it. Keep getting "Cound not find resource assembly" error.
Strange works sweet for me.
this is the link I used
http://www.freewareppc.com/communication/callassistant.shtml
meschle said:
Ruttensoft also has a similar program call minder - works well but not as many features as above program but you don't need NET thing - hate those addons
Click to expand...
Click to collapse
after using the Ruttensoft on my Qtek, i can no longer creat SMS, when I click on new, only a while screen appear, cannot input both phone number and Text.... did anyone meet the same ???
meschle said:
Strange works sweet for me.
this is the link I used
http://www.freewareppc.com/communication/callassistant.shtml
Click to expand...
Click to collapse
No it didn't... you didn't use this program. we are trying to give feedback to the author of this program which has so much more potential than the limited software you used.
No sms works for me even when activated. my qtek rom is 1.6.7.1 maybe that's the diff. Sorry ethorn could start a new thread if you like but may help some people if the other prog don't work for them.
Hi
I have a XDA 2i & a XDA Mini S and use a program called Do Not Disturb by Jguisoft, a very small footprint and easily configurable
no I am all for putting ideas of other products, but the way you worded it sounded like this program that Menneisyys worked on worked on your phone and that the version of his program you used was at another link.... my problem is that neither are true. Software Guru did things right and just introduced another alternative.
thanks guys
Software Guru said:
Hi
I have a XDA 2i & a XDA Mini S and use a program called Do Not Disturb by Jguisoft, a very small footprint and easily configurable
Click to expand...
Click to collapse
Can you provide a link? Did a google and no results found.
Cannot download the SMSNotifierSetup cab
Can someone please post this as i cannot seem to download it.
thanks

Speech Controlled Application Development on PPC

Hello All,
I hope I can ask you this question in this section.
I am not a hardcore developer but I have made some custom applications for PPC. NOW, I have a project that I need to develop an application that can be controlled with voice.
The project is designed for visually impaired users and I am trying to do indoor guidance for them. I have all parts of my project worked out, but I need to have a development tool that I can embed in my PPC application to do speech recognition of ** my own custom command ** and maybe do speech synthesis.
I have worked with Speech SDK 5.1 from Microsoft on XP and Vista, but as I understand there is no SDK for Microsoft Voice Command 1.6.
Do you guys have any suggestions or know of any SR engine that I can embed and program into my application?
PS - I am using AT&T Tilt as my test platform at this time and the goal is to have the application made for all Windows 5.0/6.0/6.1.
Regards,
HoSsEiN
hgn842001 said:
Hello All,
I hope I can ask you this question in this section.
I am not a hardcore developer but I have made some custom applications for PPC. NOW, I have a project that I need to develop an application that can be controlled with voice.
The project is designed for visually impaired users and I am trying to do indoor guidance for them. I have all parts of my project worked out, but I need to have a development tool that I can embed in my PPC application to do speech recognition of ** my own custom command ** and maybe do speech synthesis.
I have worked with Speech SDK 5.1 from Microsoft on XP and Vista, but as I understand there is no SDK for Microsoft Voice Command 1.6.
Do you guys have any suggestions or know of any SR engine that I can embed and program into my application?
PS - I am using AT&T Tilt as my test platform at this time and the goal is to have the application made for all Windows 5.0/6.0/6.1.
Regards,
HoSsEiN
Click to expand...
Click to collapse
I may be a little out of touch with what your asking for but Microsoft Voice Command has both audio input and reply. You may want to check it out.
You are right ...
Curious,
Thats right. I do use Voice Command on my PDA, but I don't think that I can have it to respond to ** Custom ** commands!
I actually contacted Microsoft and asked them about this and they said there is no way to customize the Voice command and it is a closed source code and I cant hack into it.
In my application I want to have the user say: "I need to go to room 200" (or just "room 200") and my program should be able to understand it and using my indoor positioning system rout the blind person to that room.
So I am hoping to find an engine ... SDK ... or toolkit that I can embed in my application.
Do you know if you can hack into the Microsoft Voice Command to do this?
Thanks for your reply ...
HoSsEiN
If you can find a software package to handle the voice recognition, you may still have problems with background noise interfering. My previous phone had a voice-activated dialing application that didn't need to be trained for most names. However, I found that, if I was on a road with a lot of traffic, I generally had to wait for a pause in the traffic before the phone could recognize what I was saying. In the case of this indoor-guidance application, the main issue would probably be other voices in the background, such as in a busy hallway.
Ambient noise is an issue, you are right.
I may be able to use a hands free headset that does a bit of noise cancellation to alleviate this problem, but first I need to find the engine to get it working.
Just as "pie-in-the-sky" armchair development, but maybe you could do it client-server. I think this is how Microsoft Live Search works-- I'm guessing it records a sound, then sends that to the a speech recognition server. The server then sends back the best guess at what was said.
No idea what the back-end server is though. Maybe Microsoft Speech Server
Dromio said:
Just as "pie-in-the-sky" armchair development, but maybe you could do it client-server. I think this is how Microsoft Live Search works-- I'm guessing it records a sound, then sends that to the a speech recognition server. The server then sends back the best guess at what was said.
No idea what the back-end server is though. Maybe Microsoft Speech Server
Click to expand...
Click to collapse
Dromio,
Thanks for your comment.
I did a bit of a search for this one before. It sounds promising but I am not sure how easy it is to implement. I had an impression that the Speech Server was mainly build for telephony connection, but as you pointed out Microsoft Live search does that in multimodal way with data only. It is of course subject to be always connected to a network and with a slow connection would probably not work as it should.
Also, I've not been able to find a good working example of server-client SR so far. Maybe if someone has done it and are willing to share it with us, it would shed more light on this approach.
Regards,
HoSsEiN

Bluetooth Audio Gateway Control

Application is designed to control BAG (Bluetooth Audio Control) service state on Windows Mobile systems. It can enable/disable audio/microphone routing to Bluetooth headset, set volume and microphone gain, enable/disable voice command launch application.
Writing this little piece of code was inspired by inability of AGEphone Mobile (ver 2.71) to collaborate with Bluetooth headset.
Really it can be used for other purposes as well. You can make some useful shortcuts or use it in some scripting language.
It is “command line” application (no GUI). Command line switches controls application behavior.
There are two working modes: “keep resident” (default: able to save and restore all settings) and “on fly” - for quick change.
Application itself and documentation with samples in attached file.
Thanks alot i'm downloading now!
gui in next ver?
Thank you very much for writing this! Your utility goes alone perfectly with AGEphone Mobile and is perfect for anyone who wants to use a BT headset AND voice command - highly recommended vs. the standard "BTAudioToggle" !
I'm trying to get this to launch via startup to see if it will work with my bt headset and voice command.
I'm just using "\Windows\bagctrl.exe /O"
as my shortcut link but it gives me an error the app isnt signed..I assume I'm probably just an idiot and not making my shortcut right..Can anyone help me please?
vidmabal said:
Application is designed to control BAG (Bluetooth Audio Control) service state on Windows Mobile systems. It can enable/disable audio/microphone routing to Bluetooth headset, set volume and microphone gain, enable/disable voice command launch application.
Writing this little piece of code was inspired by inability of AGEphone Mobile (ver 2.71) to collaborate with Bluetooth headset.
Really it can be used for other purposes as well. You can make some useful shortcuts or use it in some scripting language.
It is “command line” application (no GUI). Command line switches controls application behavior.
There are two working modes: “keep resident” (default: able to save and restore all settings) and “on fly” - for quick change.
Application itself and documentation with samples in attached file.
Click to expand...
Click to collapse
Many thanks, vidmabal - it works like a dream and does exactly what I was looking for!
MrDSL said:
I'm trying to get this to launch via startup to see if it will work with my bt headset and voice command.
I'm just using "\Windows\bagctrl.exe /O"
as my shortcut link but it gives me an error the app isnt signed..I assume I'm probably just an idiot and not making my shortcut right..Can anyone help me please?
Click to expand...
Click to collapse
Yes, application is not digitally signed.
If you want to use it you first must enable not signed applications (but there are plenty of them around).
To do this you can use "Advanced Config" or alternatively set registry value with some registry editor. "Total Commander" or "Resco explorer" can help you performing this task.
Registry key is "HKLM\Security\Policies\Policies" value name is "0000101a" (if not exists create new DWORD value) and must be set to 1.
P.s. I really don't know why you want to run it on startup and expecially with /O key
eazy2001x said:
gui in next ver?
Click to expand...
Click to collapse
Really not.
Application is designed to run without user intervention.
That’s why even all errors are silently ignored: no MessageBox for invalid keys or some other errors.
Even I don't see what GUI can be helpful. Except maybe for microphone gain changing. Volume normally has control keys on Bluetooth device itself.
Of course you can use it with Mortscript or some other scripting language and make some interface in here. Error codes returned (not present in attached document)
0 - No error (all OK)
128 (0x80) - Error redirecting audio (normally occurs if Bluetooth device is not connected)
129 (0x81) - BAG0: device not found
130 (0x82) - Invalid command line parameters
since u coded this, ive got a small question. do u think there is any chance to disable a remote microphone and use the internal one instead?
im asking this because the mic from my car radio totaly fails its job (JVC KD-BT11) and the internal from my phone (x1) is far supirior to it.
Nice work man, just find my bt headset behind the microwave oven (my girlfriend didn't know anything)
I'm going to write a small mortscript to controll the commnd line.
vidmabal said:
Yes, application is not digitally signed.
If you want to use it you first must enable not signed applications (but there are plenty of them around).
To do this you can use "Advanced Config" or alternatively set registry value with some registry editor. "Total Commander" or "Resco explorer" can help you performing this task.
Registry key is "HKLM\Security\Policies\Policies" value name is "0000101a" (if not exists create new DWORD value) and must be set to 1.
P.s. I really don't know why you want to run it on startup and expecially with /O key
Click to expand...
Click to collapse
I'll have to look into it more but I already have advanc config to run unsigned apps..
achmed20 said:
since u coded this, ive got a small question. do u think there is any chance to disable a remote microphone and use the internal one instead?
im asking this because the mic from my car radio totaly fails its job (JVC KD-BT11) and the internal from my phone (x1) is far supirior to it.
Click to expand...
Click to collapse
The application has nothing common with Bluetooth transport. Really it only send control codes to BAG service (Bluetooth Audio Gateway). This one is coded by Microsoft. I think other BT stack providers (for compatibility reasons) also supports such service.
According to documentation there is no such control code to enable only audio and leave microphone untouched. (Maybe there is, but undocumented, as M$ like to do).
Also it depends on BT profiles your device support. Maybe it has some "stereo headset" without mic?
Here i made a mortscript gui for this tool:
just extract to \Program Files\BTAGC
all files are included
Now make a shortcut of config.mscr in your start menu
vidmabal said:
The application has nothing common with Bluetooth transport. Really it only send control codes to BAG service (Bluetooth Audio Gateway). This one is coded by Microsoft. I think other BT stack providers (for compatibility reasons) also supports such service.
According to documentation there is no such control code to enable only audio and leave microphone untouched. (Maybe there is, but undocumented, as M$ like to do).
Also it depends on BT profiles your device support. Maybe it has some "stereo headset" without mic?
Click to expand...
Click to collapse
The radio itself offers "Bluetooth Headset" and "freespeech".
i tried to disable the freespeech (bluetooth settings in winmo) but somehow my phone still uses the radio as microphone.
guess i have to get my soldering iron and make some hardware mods to my radio. looks like disabling a bluetooth mic isnt going to work.
PS: but thx
old post i know, but do you know if there is a way to display the error msgs on screen somehow ? I think im getting errors.
Pytte said:
old post i know, but do you know if there is a way to display the error msgs on screen somehow ? I think im getting errors.
Click to expand...
Click to collapse
Really there is no much error processing here. But you can try to start app from say Mortscript and examine return code. See message #8 for return codes.
Thanks for your effort put into this.
Could you please confirm if/how is it possible to do just one thing:
1. Cyberon Voice Speed Dialer installed on phone.
2. BT button does not invoke it (audio route opened, and dialer screen opened, but no Speed Dialer. Reg Key exists)
3. Can this program help do it? (which mode resident/on fly, which extension to exe file and how to launch it (start-up or something else))
Many thanks in advance!
Thanks
Thanks a lot vidmabal, this is what I was looking for.
Cheers
Will this program work on an HD2 which i think uses a widcomm bluetooth stack??
dino_Donis said:
Will this program work on an HD2 which i think uses a widcomm bluetooth stack??
Click to expand...
Click to collapse
Really I don't know.
I am operating with service "BAG0:" ("Bluetooth Audio Gateway") - you can check if it is present in your system.
1. Launch Fdsoft Task Manager
2. Go into "Services" page.
3. Check that you have started service BAG0:
Alternatively you can check it in registry:
HKEY_LOCAL_MACHINE\Services\BTAGSVC
(Service name can differ, but "Prefix" value must be "BAG" and "Index" must be 0, "IsEnabled" value must be 1)

New audio switch program for skype and others.

This program is an evolution of the first I made. It will route the audio to the earpiece when an certain program is running.
I put the program here because I have test it in wizard, if people test this in others phones and it works, please post here and maybe move this this thread to an more "generic" forum.
the program MUST be under "\($program files)\audioswitch" folder, you must unzip the contents to this folder.
the configuration file (command.txt) is under this format:
1000
skype
fring
etc
the first line is the delay(in miliseconds) in witch the program will "look" if a program in the list is in the top level window, faster phone, smaller delays, I recommend 1000 ms.
the next 20 lines are the programs you want the audio to be routed to the earpiece(max 20 lines for now).
Again the program is under the "do it on your own risk" and "I am not responsible for anything" licence. And,of course, it is free!! Do not sell it!
It is manly intended for little expert users, as it is still in "beta" fase, hehehe.
How it works:
the program runs in an eternal loop and look for the title of the current window that is displayed for the user in a time interval.
When the program mach the title window with one of the names user configured it it will switch the audio, when the program is not running anymore, the audio will swich back.
Do not launch two or more instances of the program at the same time, could really mess things up. -- se the forum (thanks tucahara)
To stop the program, u must use a process manager.
it would be good if someone could make a cab to install it. -- done see the forum (thanks tucahara)
this is still a beta, I intend to make ajustments as people give feedback.
Thanks,
hope u like.
-----first update---
now, an file called "audioswitch_error.txt" in the root directory will hold the error messages.
------------ List - Working ------------
wizard - I tested
P3301 or P3300 - I tested
att tilt - I tested
touch 3452 and 3450
touch dual
touch cruise
touch HD
Sony Ericsson Xperia X1
BenQ E72
Titan --> see the forum
------------ List - NOT working ------------
T-Mobile Diamond
HTC Touch by Sprint
Samsung SGH-i780
------------------------------------------------------------------------------------
check the new thread at:
http://forum.xda-developers.com/showthread.php?t=502361
new aproach to do the switch and now open source, even with an class that others can improve and put in other apps...
Some people complain about me not openning the source of the app, I have just made this way because there was proprietary code inside and I had no time to rewrite it without the proprietary code.
I have made the best I could, and now I had some time and rewrite the app in open source, to those who only complain about it, get the code and make it better instead of complaining!
Thanks for all that encourage me to continue the work and helped the development.
will retire this project for while...
thanks u all.
Audioswitch for Skype
On HTC Touch by Sprint (CDMA, also known as Vogue), audioswitch does switch the audio in the Skype 2.5 windows mobile PPC from external speaker to handset. Unfortunately, the microphone is then also disabled. I hope you'll be able to tweak your audioswitch to resolve this.
Thank you so much for developing this wonderful applet. I'm sure you will have the gratitude of many frustrated Skype windows mobile users.
What really happens is that when the sound output is switched in some phones, the microphone gain changes too. This happens because the phone thinks it is a "normal call".
Most of the times the mic gain increases, but in your phone it must be decreasing. Try to figure out in registry where the mic gain controls are recorded and chage all of then to the same value. I had this issue with my P3301 and solved this way, but there is quite a time now and I do not remenber where are the reg keys to change, but I have found the information here in the forum.
I will try to figure out for other "hack" to solve this issue... thanks for reply.
doesn't work at T-Mobile Compact IV (aka Diamond)
Sound went to loudspeaker....
PS: fring last version working fine with sound at mine phone (without any additional programms). Sound is going to correct destination automatically
I just tried the latest version of Fring, which automatically switches audio to earpiece when call is connected.
The same issue occurs with the new Fring as I described above with your audioswitch program: I can hear audio through earpiece, but microphone doesn't work (or is inaudible).
I couldn't find a tweak or registry hack to correct this. Any help would be greatly appreciated.
MarceloFB said:
This program is an evolution of the first I made. It will route the audio to the earpiece when an certain program is running.
I put the program here because I have test it in wizard, if people test this in others phones and it works, please post here and maybe move this this thread to an more "generic" forum.
the program MUST be under "\($program files)\audioswitch" folder, you must unzip the contents to this folder.
the configuration file (command.txt) is under this format:
1000
skype
fring
etc
the first line is the delay(in miliseconds) in witch the program will "look" if a program in the list is in the top level window, faster phone, smaller delays, I recommend 1000 ms.
the next 20 lines are the programs you want the audio to be routed to the earpiece(max 20 lines for now).
Again the program is under the "do it on your own risk" and "I am not responsible for anything" licence. And,of course, it is free!! Do not sell it!
It is manly intended for little expert users, as it is still in "beta" fase, hehehe.
How it works:
the program runs in an eternal loop and look for the title of the current window that is displayed for the user in a time interval.
When the program mach the title window with one of the names user configured it it will switch the audio, when the program is not running anymore, the audio will swich back.
it would be good if someone could make a cab to install it.
this is still a beta, I intend to make ajustments as people give feedback.
If someone like this program and wants to make an donation...
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=4WLQVA6LTKWSL&lc=GB&item_name=marcelofb&item_number=marcelofbxdadonations&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
Thanks,
hope u like.
Click to expand...
Click to collapse
I have an idea. Rather than regularly polling to see what the current windows is, why not use a windows hook to monitor windows messages. When you see a message indicating a window has come to the foreground test it against your list of windows and enable/disable audio switch as necessary. Use SetWindowsHookEx and hook for WH_CBT messages. If you are unfamiliar with using SetWindowsHookEx I could supply you with the hooking code and all you would need to do is insert the code to check the window names, enable the audio switch, and disable the audio switch. Or you could send me the enable/disable routines.
Another tip, I noticed that skype places an icon in the notification area during a call. If there is someway of detecting the notification icon that could be another great way to trigger the switch.
Great program though. Works beautifully.
OOOH
If this program works on the new BenQ E72 I'm getting in a couple of days I'll certainly donate!
THANKYOUTHANKYOUTHANKYOU
hello,
it does not work on hermes (tytn).
by the way "troca2" does work on hermes! - maybe you guys want to work together?
baal_zebub said:
hello,
it does not work on hermes (tytn).
by the way "troca2" does work on hermes! - maybe you guys want to work together?
Click to expand...
Click to collapse
hehhehe, I made troca2, I will see if the switch code is the same or if I have made some mistake...
are u sure you have put the program in the correct directory?? I will make some modifications to have an error feedback. So u can see if something is wrong...
JKingDev said:
I have an idea. Rather than regularly polling to see what the current windows is, why not use a windows hook to monitor windows messages. When you see a message indicating a window has come to the foreground test it against your list of windows and enable/disable audio switch as necessary. Use SetWindowsHookEx and hook for WH_CBT messages. If you are unfamiliar with using SetWindowsHookEx I could supply you with the hooking code and all you would need to do is insert the code to check the window names, enable the audio switch, and disable the audio switch. Or you could send me the enable/disable routines.
Another tip, I noticed that skype places an icon in the notification area during a call. If there is someway of detecting the notification icon that could be another great way to trigger the switch.
Great program though. Works beautifully.
Click to expand...
Click to collapse
It is a good idea to use hook, I have not think of it!
I use a proprietary code included in a lib at the company I work for to make the "switch" but it is not different of what u find here in the forum.
Maybe we can make an effort to re-make it with hooks...
so this program must run all the time? after every softreset you have to start it?
is it not easier with mortscript (for example) to make an shortcut that opens skype as well as the audioswitch program? and closes the audioswithc program when you close skype?
I am using it right now and it seems to work perfect:
i used this script after installing mortscript (http://www.sto-helit.de/):
run( "\Windows\SkypeSoundSwitch.exe" )
runwait( "\Program Files\Skype\Skype.exe" )
close( "troca2" )
(see that in my case i downloaded your original program and renamed it to skypesoundswitch.exe and put it in the windows map)
I renamed it so i could remember what the purpose the file had.. changed nothing but the name!
Thanks for the program by the way! it always worked perfect!!
so to sum up the way i have it now (most files included) on my xperia x1:
1) installed skype
2) installed mortscript
3) add skypesoundswitch to \windows\....
3) add skype.mscr to \.... (root)
4) overwrite skype.lnk with the new skype.lnk in \windows\start menu\programs\..
in the way whenever i open skype(.lnk), it opens skype.mscr, this opens skypesoundswitch.exe and than skype.exe... when you close skype.exe it closes skypesoundswitch.exe...
it seems to work perfect.. but hey maybe i am doing something totally wrong here.. than just shout!
by the way, the .mscr and the .lnk files are offcourse edit-able .. so you can put the files everywhere you like..
madhijs said:
so this program must run all the time? after every softreset you have to start it?
is it not easier with mortscript (for example) to make an shortcut that opens skype as well as the audioswitch program? and closes the audioswithc program when you close skype?
I am using it right now and it seems to work perfect:
i used this script after installing mortscript (http://www.sto-helit.de/):
run( "\Windows\SkypeSoundSwitch.exe" )
runwait( "\Program Files\Skype\Skype.exe" )
close( "troca2" )
(see that in my case i downloaded your original program and renamed it to skypesoundswitch.exe and put it in the windows map)
I renamed it so i could remember what the purpose the file had.. changed nothing but the name!
Thanks for the program by the way! it always worked perfect!!
Click to expand...
Click to collapse
That works great too. The advantage of this new program is that it will only reroute the audio when skype is in the foreground. You could minimize skype and leave it running, and audioswitch will automatically restore your sound. Get a call and open up skype and your sound goes back to the earpiece.
I will create the code to do it with a windows hook when I get a chance MarceloFB. Please pm me your email address. All you will have to do is insert the code to read the config file, check the window names, and when necessary enable or disable the switch. Or please show me where to find details on how to code this myself. Thanks!
Hat off to both of you and really glad that we will have a much improved solution.
JKingDev said:
That works great too. The advantage of this new program is that it will only reroute the audio when skype is in the foreground. You could minimize skype and leave it running, and audioswitch will automatically restore your sound. Get a call and open up skype and your sound goes back to the earpiece.
I will create the code to do it with a windows hook when I get a chance MarceloFB. Please pm me your email address. All you have to do is insert the code to read the config file, check the window names, and when necessary enable or disable the switch.
Click to expand...
Click to collapse
okay! I only used skype to make calls and than get offline so this way did the trick for me! but i have to admit it would be much better when i can keep skype online!
this new program does the trick indeed! it changes the output back when i minimize skype!
But still my question above, you have to start this program on every startup isn't it? what does it do with the battery?
madhijs said:
okay! I only used skype to make calls and than get offline so this way did the trick for me! but i have to admit it would be much better when i can keep skype online!
this new program does the trick indeed! it changes the output back when i minimize skype!
But still my question above, you have to start this program on every startup isn't it? what does it do with the battery?
Click to expand...
Click to collapse
Yes it must be run at startup but placing a link in your startup folder will make everything transparent to the user. I don't think there will be an effect at startup. In it's current form it must check every second (or whatever you set the timeout to), but its only a little bit of code. I am not really sure if that will really have an effect. The more often it checks the faster it will switch when you open skype, but also the more processor use. Check less often and it uses less processor, but there might be a delay in switching the audio. I proposed doing it by hooks though because this would use even less processor. The app will only check when a new window takes focus, rather than just periodically checking. This way it only checks when it needs to and will always switch instantly.
I am glad u liked the program.
I will try to answer most of the questions...
1- JKingDev:
I have though in your idea of using hooks, but if I use a hook, the program will have a loop anyway to check for the messages(hidden loop ;-) ), and it would have to have an "fake window" or something to process the messages. This way we have only one loop, in a very simple command line program with high optimization, so we have to think what is really the best way of doing it... I will pm u as soon I have any time to "program" again. hehe
2- people that uses mortscript with the old "troca2"
I will try to make a way to make this program work the same way as troca2, maybe with an "argc argv", wait the next update.
3- the battery life??
if u notice any battery life decreasing with the usage of the program, configure a bigger delay, maybe 5000ms, it is a matter of adjust the "timming" for each processor. Post your results here so others can find the optimum value for the delay in their phones.
4- have to start the program every reset?
yes, just put it in the startup folder.
maybe someone can make an cab that put the program in the right place and a link in the startup, it would be cool! I dont have an easy program to deal with cabs, and the vs projects for cabs.... I really cant make that thing work!!
well it is only the batterylife i was worried about. but i'll try running the phone this weekend with the program running and doing some skype.. lets see how it turns out!
For folks who have issues of mic on using this program, there is a quick solution for this problem. You can try sjphone. It provides a internal mic volume control. However, the major setback is that it's only working in wm5.
my 2 cents
weekendli said:
For folks who have issues of mic on using this program, there is a quick solution for this problem. You can try sjphone. It provides a internal mic volume control. However, the major setback is that it's only working in wm5.
my 2 cents
Click to expand...
Click to collapse
will check this, but people reported that worked in xperia... and it is running in my P3301... anyway, will check and post an wm6 build if it is the case... check the error file and see if it tells anything.
Other thing, this program uses low level api`s, so your windows MUST be fully unlocked for it to work in wm6.

Categories

Resources