Stopwatch Software for Himalayas - Windows Mobile Development and Hacking General

I'm just a newbie here on the board as well as a user of an O2 XDAII.
I would just like to ask if anybody have made a stop-watch or timer software that could be installed on the XDAII?
Thanks in advance.

Yes, actually I have as my first attemt at a .Net CF application.
It is a very simple stopwatch/strokecount application. If you want it, I can upload it.

That was a quick reply... please do upload it. If it is not a hassle, can you also indicate on how do I load it....I am really very new with my new toy..it's too high tech for my existing knowledge. TIA Kim

Now, as you will be able to see, it is an application in a very rough stage. AND there is a little thing that is not implemented (Save splits).
What you do is you unpack the zip file to a folder on your harddrive. Then you uploade the exefile to your XDA II using ActiveSync and Explore. (You just press the explore button in ActiveSync and you can copy/paste the .exe file to your device there.)
You can put the exefile anywhere, but you have to your Explore on your XDA II to execute the file. (I think you can make the program show in programs by placing a link in the \Windows\Start Menu\Programs folder)
Now, in order to use the app, here is a little explanation of the buttons.
Time gives you the pace of your presses. You have to press this button 3 times before you get a result. It gives you the number of presses you would have if you continued for 1 minute. (Used in rowing and swimming)
Then you have your start/stop button, and a split button. And the reset, just clears the boxes. Unfortunatly I have not made it pause. When you stop the watch, it starts from 0. This will be in another release
Hope you can use it, and do not hesitate to come with some surgestions.
Oh, and by the way, if you have .Net framework 1.1 installed on your pc, you can try out the application on that too....

You can also try these freewares:
Pocket Counter
StopTime
You may find them in the PocketPCFreewares site

tnx to you two

I don't know what else you are adding to the app but I would suggest button mapping.

wildthing said:
I would just like to ask if anybody have made a stop-watch or timer software that could be installed on the XDAII?
Click to expand...
Click to collapse
You could look at Spb Time - multiple up and down timers, very nice.

gunsandrosses said:
I don't know what else you are adding to the app but I would suggest button mapping.
Click to expand...
Click to collapse
Actually that was part of my first alpha version made in eVC++ 4.0. But after switching over to C# and .Net I haven't gotten around to it. BUT it is going to be in there.

anyone know a stopwatch for the wizard - supporting wm5?
thx

Related

I want to ask "How to cook a shortcut"?

Hi
Is there some convinient way to create shortcuts on wm5 ppc? some app with
-browse for file
-cmd line params
-browse for icon-dll
-insert icon number into cmd line
if there is no, one should be developed immediately
………
Turist said:
Hi
Is there some convinient way to create shortcuts on wm5 ppc? some app with
-browse for file
-cmd line params
-browse for icon-dll
-insert icon number into cmd line
if there is no, one should be developed immediately
Click to expand...
Click to collapse
i cant believe everybody makes it manually
Come on! You help is needed!
thanks for the idea!
OdeeanRDeathshead said:
thanks for the idea!
Click to expand...
Click to collapse
i quess its irony... ;(
nevertheless i found one _ttp://www.s-k-tools.com/sksmgr/sksmgr.html
its almost free for ex-USSR so i`ll give it a try.
Turist: you might want to read some of OdeeanRDeathshead's posts. I don't think he was being ironic.
Frankly, I've never found it difficult to write shortcuts by hand, but the sktools app is great, as ever.
V
There was no irony. As I was reading your post I was coding my app to check on startup its current location then generate a new shortcut to replace its existing one in the startup folder. One reason i use a shortcut done by hand is to get the command line arguments in it. I use the command line to tell my program if it is being started after a soft reset. If it is it minimises itself after a couple of seconds. Of course I don't need to look up the icon because my shortcut is for my executable, from memory it was just trial and error getting the correct icon for things like poutlook. I think any shortcut generator would have to be able to copy the info from existing shortcuts to make it useable over different versions/os etc.
vijay555 said:
Turist: you might want to read some of OdeeanRDeathshead's posts. I don't think he was being ironic.
Frankly, I've never found it difficult to write shortcuts by hand, but the sktools app is great, as ever.
V
Click to expand...
Click to collapse
not really difficult, but i`d like a little bit more comfortable way.
yep, sk-software is really good. paid yesterday for sktools, skshems, skshortcut manager.
OdeeanRDeathshead said:
There was no irony. As I was reading your post I was coding my app to check on startup its current location then generate a new shortcut to replace its existing one in the startup folder. One reason i use a shortcut done by hand is to get the command line arguments in it. I use the command line to tell my program if it is being started after a soft reset. If it is it minimises itself after a couple of seconds. Of course I don't need to look up the icon because my shortcut is for my executable, from memory it was just trial and error getting the correct icon for things like poutlook. I think any shortcut generator would have to be able to copy the info from existing shortcuts to make it useable over different versions/os etc.
Click to expand...
Click to collapse
you`ll never know what could happen with those little apps designed "for my internal use only"
ps: got myself vs2005, msd, wm5 sdk. would like to try to make an xml-parsing/registry-editing engine for universal registrytweaking tool. I really like the idea of RegistryWizard-tool, but not very much its design and functionality. will see...
I just finished updating my file open dialog. It can now create shortcuts that have command line arguments and it can extract the icons and their id from any file that contains them (exe dll). This will be available shortly as part of my almost (really) finished project.
OdeeanRDeathshead said:
I just finished updating my file open dialog. It can now create shortcuts that have command line arguments and it can extract the icons and their id from any file that contains them (exe dll). This will be available shortly as part of my almost (really) finished project.
Click to expand...
Click to collapse
Great! And please notice - i`m not chraging you for this brilliant idea
will it be available as standalone utility too?
The shortcut functionality will not be limited in any way on the program, but no, it will not be stand alone. I tested on jamin today (wm2005) and the handle htc give for the port is good, unlike the atom. I spent the last week converting my lists in the file open dialog to owner drawn to try and cut the display time on the windows directory. It has 1300 items and was taking 23 seconds, I have cut that to 7 seconds. Resco take 3.

**UPDATED** MIDlet manager

i will give credit to risidoro for this one.. and im lazy som im just going to copy/paste. original post can be found here: http://forum.xda-developers.com/showthread.php?p=1079560&posted=1#post1079560
This new MIDlet Manager comes from the new HTC Herald ROM, version 1.2.405
This new version is JTWI 1.0 compliant and SUPPORTS Google's SATELLITE Maps (of course, you need to download Google Maps' client from www.google.com/gmm
This release also supports sending SMSs from Opera Mini 3.0 (mini.opera.com)!!!
Some Details about the program:
Developer: Intent
Name: MIDlet Manager
Version: 11.1.7.1023
Build: 20060907
JWTI v.1.0 Compliance!
------- HOW TO INSTALL ------------
- download the zip archive from:
Risidoro_Intent_MIDlet_Manager_v11.zip
- extract the cab (inside the archive) somewhere in your PC (e.g. Desktop)
- copy to somewhere in your PocketPC (e.g. \storage card)
- in your PocketPC, navigate with File Manager to the cab and tap on it to install
- when asked, choose to install in the Device (and NOT in Storage Card!)
- reboot when asked
PS: It can be installed over previous version (or in roms where the old midlet is included)!
-------- COMPATIBILITY ---------------
So far, i've only tested it with the midlets i use the most.
- Google Maps runs fine. Satellite maps are supported!!!
- Opera Mini 3.0 runs OK too and supports SMS sending. Even softkeys works! Photo blog feature, however, is not supported
- Mobile GMaps, beta 1.30.08 http://wap.mgmaps.com/ simply wonderful. Sat images for google and yahoo maps.
Does this replace the MIDP manager suplied by default on the phone? Can I use both once this is installed?
(I'm using an Orange branded M3100 with the Intent Midlet Manager, v10.1.7.559 if that matters. I guess thats the same on all hermes devices.)
Thanks,
Sam
mikechannon said:
Hi
Interesting good info.
Couple of ever so picky things shogunmark, a couple of the links need attention the www.google.com/gmm). one needs the ). removed from the end and the (http://wap.mgmaps.com/): one needs the ): removed.
My obsessive compulsive personality disorder forced me to point these out.
Cheers
Mike
Click to expand...
Click to collapse
i should have proof read that stuff if i was gonna copy/paste so i will take the blame for not proof reading it!
sambartle said:
Does this replace the MIDP manager suplied by default on the phone? Can I use both once this is installed?
(I'm using an Orange branded M3100 with the Intent Midlet Manager, v10.1.7.559 if that matters. I guess thats the same on all hermes devices.)
Thanks,
Sam
Click to expand...
Click to collapse
this does replace the current midlet on your phone
You had me at the soft keys working in Opera 3.0. Thanks!!
Shogun are you working on a new rom for the Hermes? Your rom for Wizard was the best one.
Anyone else having problems downloading through Firefox and IE?
bump can anyone email me it to [email protected] can't seem to be able to download it.
right click on the link in IE and choose "Save Target As" and see if that works for ya
ZzFDKzZ said:
Shogun are you working on a new rom for the Hermes? Your rom for Wizard was the best one.
Click to expand...
Click to collapse
and no not yet, i am still a little busy with life, my wife is due to pop out #4 any day now, plus with all the bootloader security stuff going on i dont feel comfortable on making a rom quite yet.. we will see what the future holds
Wowz! Great news! Thanks! I post a link to this thread to all PPC forums / my blog!
Congrats on number 4 Shogun!
I hate to high jack a thread but...
Is there a launch command to put at the end of the .exe file to lauch to start the midlet manager and launch a midlet.
Found my answer and here it is incase anyone else wants to launch midlets from a shortcut. Works for me on iLauncher.
jmm.exe -r"suite","vendor","name" runs Opera Mini and Google Maps for me.
If I try to put the whole line in quotes "name,vendor,name" - it doesn't launch the midlet - only JMM.exe.
You can run any midlet that you have installed. You can find the parameters such as a midlet name and the exact vendor name in Application Data\Tao\intent\app\jam\midlets\midlets.db. I just repeat the midlet name instead of the suite.
Just installed 11.1.7.1023 on my 8525. I first got a system message "access denied"... Oh yeah... I guess I should close MIDlet first
2nd try (once I had a cup of coffee and turned on my brain) install went A-OK. Opera Mini gave me an error and would not connect to anything. I uninstalled the midlet and re-installed and now everything is working. GMaps is faster than map4pda. Softkey functions work as advertised. Thanks for this update!
Install failed
I tried installing it on my MDA Vario II and received the following error
"Installation was unsucessful. The program or setting cannot be installed because it does not have sufficient system permissions." Any suggestions?
Thanks
Richard
shogunmark said:
and no not yet, i am still a little busy with life, my wife is due to pop out #4 any day now, plus with all the bootloader security stuff going on i dont feel comfortable on making a rom quite yet.. we will see what the future holds
Click to expand...
Click to collapse
Congrats on the 4th kid!
Also I try the right click save target and still won't work. It just downloads a 1kb file.
ZzFDKzZ said:
Congrats on the 4th kid!
Also I try the right click save target and still won't work. It just downloads a 1kb file.
Click to expand...
Click to collapse
dont know if congrats are in order.. i will be a 26yr old with 4 girls under the age of 6 in house plus my wife... i will take sympathies though anyway, i just emailed it to you!
Hi,
I don't know if some body knows about it, but soft keys function is replaced by the following keys in the stock version of JAVA VM from TyTN.
Left Soft Key = Q
Right Soft Key = P
I did a search but I didn't find any related to this, then I'm posting this info.
Regards,
Taguapire.
Hi,
I don't know if some body knows about it, but soft keys function is replaced by the following keys in the stock version of JAVA VM from TyTN.
Left Soft Key = Q
Right Soft Key = P
I did a search but I didn't find any related to this, then I'm posting this info.
Regards,
Taguapire.
Edit/Delete Message
Click to expand...
Click to collapse
BTW: I don't know if it works in every app, but is working in Opera Mini 3.
Regards,
Taguapire.
My experience,
I just installed it JVM, Google Mail worked fine, in previous version it just do not retrieve the mails, this new can get them but... When I pop the menu it returns an error.
Gmail stuff is still a buggy app for this JVM.
About the rest, I mean, Soft keys... all is OK.
Regards,
Taguapire.
i havent had any major issues with the gmail app, i did run into one buggy issue but havent had it since.. but i wont call it a solid app yet, everything else has worked great for me, soft keys, etc

[alt-tab] sbp pocketplus

Hi, I would extract the task switch and "alt-tab" included in spb pocket-plus... I think that it's the best, but the entire suite is too big.. about 4,5MB. Anyone can tell me a way for do that.
Does anyone had already tried to do somethings like this...
Thanks
scaltro said:
Hi, I would extract the task switch and "alt-tab" included in spb pocket-plus... I think that it's the best, but the entire suite is too big.. about 4,5MB. Anyone can tell me a way for do that.
Does anyone had already tried to do somethings like this...
Thanks
Click to expand...
Click to collapse
Install Pocket Plus trial.
Activate the 'alt-tab' program.
Isolate it.
Remove Pocket Plus.
helterskelter said:
Install Pocket Plus trial.
Activate the 'alt-tab' program.
Isolate it.
Remove Pocket Plus.
Click to expand...
Click to collapse
What do you mean with "isolate it"?
It's possible to make a separated cab with this? I would built it in on my ext ROM.
scaltro said:
What do you mean with "isolate it"?
It's possible to make a separated cab with this? I would built it in on my ext ROM.
Click to expand...
Click to collapse
Here Check this, I just packed that into cab from my ROM's OEM Package.
It will assign the voice button to alttab
WORKING CAB
I have rebuild your cab because the link inside was corrupted.
I've tried it, and works... perhaps when you invoke the app,it switch directly to the next switch. With SPB ALT-TAB you can see all apps opened, and also select with finger what do you want to restore... It's so cool.
All the other that I've seen, switch directly to next apps like your.
Then here it is, the Spb One:
ANyway in spb plus option there is an option to remove unused component
see in start-setting-system-spb pocket plus
click tools and click uninstall component
It's just an .exe file I copied to my windows directory, created a shortcut and maped it to my ptt button. worls as a standalone app like a charm.
Yes...I have tried too and works great.
It's wonderfull
Thanks.
I've installed on my PDA, it looks very nice!
In the beginning; I couldn't found it. It doesn't make automatically a shortcut to Programs. So I made it and made a shortcut too in the Traylaunch of Battery Status and as first shortcut in START. Where did you made shortcuts to this program?
Its cool~
And how about a soft-reset short-cut??
SPB Pocket Plus Voice Command Functions
Well, this thread already solved my Alt-Tab need from SPB. Has anybody been able to get the Voice Command functions to work without SPB fully installed?
I'm a voice command fan and use it constantly with a bluetooth head set. It was great to just say: "Start - Suspend" after ending a call and the phone would go into standby or "Start - Screen saver" and the screen would turn off when I'm on WIFI downloading something and want to save some battery life. I looked for these on SPB Mobile Shell and aren't available.
Anybody solved this?
maybe this is interesting for you:
MSCEInf is a nice tool which lets you analyze every .cab file:
it shows you all files, all directories and registry entries. and you can extract single files if you want.
with it i simply extracted the alttab.exe file from pocketplus and copied it on my ppc. so i didn't need to install the app.
A little more help
Ok, I could consider myself a power user, but I'm not at that level just yet. (better said, I gotta long way to go)
I got the software, I was able to Identify the executioner which would be spbservices.exe, now, how do I pull it out? Would I need to modify any registry?
Thanks
this one is really easy:
just drag&drop the cab file into the WinCE Cabs Analyser. then go to the "files" tab (if it is named so. i use the german build) and in the list with the file id 20 there is a "alttab.exe".
one simply drag&drop and you have your file ^^
I'm getting there
Trust me, it'll be easy for me after this last question:
Where do I drag and drop it? I select it and drop it in which folder? As of yet it's not working. I tried selecting it and dropping it over any other folder in Windows and it tells me it's unable to read the file, i've tried it on a browsing folder on my PPC and it doesn't answer anything, nor do anything.
Thanks for your patience.
Thanks man!
I was looking for quick-Alt-Tab applications. wunderfull....
Guys, is this copyrighted software? If so, please remove it from the thread.
We don't support piracy on this board. I will be forced to evacuate my bowels on those that are assisting and persisting. We ban first and ask questions later.
V
Help with Install...
Olay, I downloaded the SNE SPB AltTab file but I do not know what to do with it... could you explain what to do for a newbie?
Jaz
Soft Reset button
emch said:
Its cool~
And how about a soft-reset short-cut??
Click to expand...
Click to collapse
Try this one, works on my Triny

Pocket PC Shortcuts

Is there a desktop program that creates Pocket PC shortcuts? Just enter what you want it to point to, and the icon for it, and it spits out the file?
By "just enter what you want it to point to" do you mean you type in the full path?
I have written a utility that creates the lnks for the full path, although no icons are created: http://forum.xda-developers.com/showpost.php?p=2102312&postcount=117
That's pretty much perfect! But does anyone know how to incorperate a .ico?
Whatever icon the program has will be included when the shortcut is placed onto the device...
I see... so there's no way to include an icon in just a shortcut, huh? Interesting
There probably is I just haven't worked it out!
I have worked out how to do it now: http://oldsap.blogspot.com/2006/07/customising-icons-on-your-ppc-shortcut.html
Problem is, it needs the icon to be stored in a dll...
Huh... fair technique, I suppose, although having a third file aside from the program and shortcut can make things hard to manage when file numbers grow to the double digits. Thanks for looking around... good find!
l3v5y.. thank you very much. the app is very useful.
xd1936 said:
Huh... fair technique, I suppose, although having a third file aside from the program and shortcut can make things hard to manage when file numbers grow to the double digits. Thanks for looking around... good find!
Click to expand...
Click to collapse
The dll can be used for multiple images...
xd1936 said:
That's pretty much perfect! But does anyone know how to incorperate a .ico?
Click to expand...
Click to collapse
Have a look at the attachment...
It does just what you are searching for....
Shortcut Creator crashes under Windows Mobile 6 Standard
Just to let you know - I was able to install this application on my phone (Verizon SMT5800 smartphone, running Windows Mobile 6 Standard (i.e., no touch screen). However, when I ran the application, it crashed immediately, and locked the phone up so that I had to take the battery out in order to reboot the phone and regain control.
there is an OLD WinCE program called 'Launch Pad' that does this, but will it run on a smartphone? I guess you could try and see. check this link:
http://www.onhiatus.com/Software/
this requires 'Pocket C' runtime here:
http://www.orbworks.com/wince/index_20.html

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