Related
Hi there,
Is it possible (or could any kind developper!) to script a text message that would always have the same text.
Basically to pay the London Congestion Charge (£5 for driving into Central London), one needs to send a text message to the number 81099 containing the last four digits of their credit card.
As the message is always the same, I thought it might be easy to script such a message to make it easy to pay the charge.
Thanks!
isn't that easy? set up your pre set messages as the words and numbers u need so then u create a new text and click my text chose the one u want and send it!
Hi,
Thanks for your reply. I see what you mean, but that is still several clicks more than I have in mind. With a script/batch file, it would literally be a one button (through a shortcut) click which could even be assigned to a hardware button. Lazy ... maybe! I guess it all really depends on whether the function to send a text message can be accessed from the command line.
no kidding ur lazy!
You can write smssender.html which will include a javascript, that will redirect you to:
mailto:123456789 body="Send me a taxi!" - I'm not sure about the syntax...
Everytime you execute this webpage, you will only have to confirm SMS sending and close IE (I don't know if window-terminating scripts work in PocketIE) :idea:
(!)
I don't know if you're willing to pay for it, but there is a utility called Cell Profiler found here
You can pre-define an SMS to be sent to a particular number when you drive through a particular point.
Download the trial and see if it fits in with your requirements.
You can use the scripting utility called nscriptm to automate your screen taps etc. Give it a go. Its fairly simple and there is a good sample that shows you how to work with screen taps.
Thanks for your replies. I will try each and see what works best for me.
Thanks again!
XDA2-owner said:
Hi there,
Is it possible (or could any kind developper!) to script a text message that would always have the same text.
Basically to pay the London Congestion Charge (£5 for driving into Central London), one needs to send a text message to the number 81099 containing the last four digits of their credit card.
As the message is always the same, I thought it might be easy to script such a message to make it easy to pay the charge.
Thanks!
Click to expand...
Click to collapse
I wonder if I understand you correctly. In my SMS messaging on the XDAII I have something called My Text as a menychoise. The predefined messages in there can be added/amended in the Edit menu...You could do it easily there...?
Hi,
Yeah - someone mentioned that earlier. What I was really looking for though was a literally one-button way to pay my congestion charge - basically a shortcut to a batch-file/script that creates the SMS, enters the text and addresses it correctly.
Does anyone know if the mailto: command that you can use to create an e-mail would work for an SMS? If so, that would be fine as within the mailto: command you can specify the recipient (81099 in this case) and the text (credit card digits).
Thanks for all the responses.
1. PPCs don't make any difference between e-mails and short messages - you have same dialog, same options and same mailto: command...
2. JavaScript in HTML page is probably the fastest way to perform actions you need (if you dont want to write it in C++ of coz!)
3. If I'm not too drunk today I'll have probably posted an example of such page by tomorrow - I finished with school today, so I have something to celebrate! 8)
Would be great to see a javascript sample if you could be bothered/sober enough to put one together.
Thanks very much indeed.
So, that's what it looks like:
<html><body>
<script language="JavaScript">
window.location="mailto:81099?body=Here's my creditcard number!"
</script>
</body></html>
mailto: - where
body: - what
You can also add subject: (don't forget to divide it with "?" :!: )
It looks like Pocket IE does not support close() function. Can anyone confirm? Any way, even if you will have to close IE manually, executing this file (possibly from Today screen) and pressing SEND is still faster than going to New>SMS>MyText>choose>enter number>confirm... 8)
That worked just great! Thank you so much.
I used the PHM Pocket PC PowerToys's TrayLaunch program to put a shortcut to the .htm file onto the bottom bar of the Today screen.
I still need to press the Send button (is there a way to automate that?) and close IE but it's still MUCH quicker than doing it through a manual SMS.
Thanks again for all comments and help.
Compose new text message from shortcut
Hi there,
I'm a total newbie (NOT a programmer at all), just a Qtek 9090 addict. I 've been looking for something similar to your request: I wanted a way to go straight to the "compose text message" window from the today screen or a hardware button. I finally found a way to do this (maybe not the best way, but I can't find a site that lists all the possible parameters for tmail.exe).
If you're still looking for a better way to automatically launch your message, try this:
Copy the "Messaging" shortcut from Windows/Start Menu and put the copy somewhere you can work on it. Rename it to something like "London Congestion".
If you have Resco file explorer on your device, select your new shortcut and view its properties. On the second tab ("shortcut"), you should see the line "\Windows\tmail.exe". Change it to this:
"\Windows\tmail.exe" -service "text" -to "81099" -body "your credit card number"
Then tap "ok".
Move your new shortcut to Windows/Start Menu/Programs. Now you should be able to access it with your Today screen launcher or Button launcher.
If you don't have Resco file explorer, copy your shortcut to your desktop and open it with Notepad. You'll see something like 43#"\Windows\tmail.exe"; just leave the number at the front, make the adjustments I described and save the file. Then put it in Windows/Start Menu/Programs on your device.
I tested this and it worked for me, so I hope it does for you too!
To simply go to the "compose" window from a shortcut, I use this line:
"\Windows\tmail.exe" -service "text" -to ""
Robrecht.
Thanks a lot Robrecht,
I was actually going to re-open this issue because I have a Blueangel now - and I don't know if it's because it is WM2003 Second Edition or not, but the javascript that was written for me in the above post no longer works, so I needed a new method.
A very timely reply and I will try it over the weekend.
Thanks a lot,
Jimmy
I think you should add "I hope it chokes you bunch of rip off bastards" We pay road tax, we pay huge tax on fuel, we sit for hours in jams and they want money :?:
Well, XDA2-owner, you're very welcome!!!
I have a Blue Angel too and it works for me, except....... I discovered a flaw.
I thought the
-service "text"
parameter made sure the automatically created message was always a text (SMS) message, but instead it turns out that the format of the new message (SMS, e-mail, MMS...) changes according to the last viewed folder in Pocket Outlook. So if you were checking your e-mail account just before you use my shortcut, it wil create an e-mail instead of a text message.
This sucks! And I was so happy I'd been able to help someone!
Does anyone know a way to make sure the new message is always a text message?
Hi again,
This issue was one I was also having with the Javascript - I got used to the fact that if I was using the e-mail part of Messaging, I would switch it back to SMS before closing it.
One issue I am having though - and it might just be to do with my setup - is that when I run the shortcut from Start-->Programs-->Congestion, it works fine. When I try and launch it from my Today screen though, using BatteryPackPro, it doesn't seem to create the text message, and just stays on the Today screen.
Any ideas?
Thanks again for your help and ideas.
Is there a hack or application that anyone knows that will allow me the option of sending a text to a contact from the Contacts list (instead of having to open the contact, scroll down the numbers etc etc)
So I would be able to press the Menu key and it appear in this list as Send SMS...
Many thanks
It is already there...
I'm using the AKU 2.3 Rom but I can't remember it not being there even in the 1.8 Rom that mine shipped with.
Vijay has a nice tool to do this here:
http://www.vijay555.com/?Releases:VJPhoneTools
If that's not what you're after you can always add a line in the Notes section of a contact like this
smsnnn)[email protected]<recipient'sCarrierDoman>
(Carrier Domain example: @mymobile.cingular.com)
with a space and/or line return after it (but no spaces within), and it will show up as a selectable link. When you tap it the SMS app will open with the number you're wanting to text to in the appropriate place.
G'luck
Tref said:
Vijay has a nice tool to do this here:
http://www.vijay555.com/?Releases:VJPhoneTools
If that's not what you're after you can always add a line in the Notes section of a contact like this
smsnnn)[email protected]<recipient'sCarrierDoman>
(Carrier Domain example: @mymobile.cingular.com)
with a space and/or line return after it (but no spaces within), and it will show up as a selectable link. When you tap it the SMS app will open with the number you're wanting to text to in the appropriate place.
G'luck
Click to expand...
Click to collapse
Thanks for that but neither of those is really what I was hoping for.
I use sms more than phone calls and find it kind of couter intuitive that I can see the contact and dial it from the contacts list, but in order to send a text I have to find the contact open it, scroll down to the SMS number then send the text. What I was really looking for was a way to put an extra entry in the menu list allowing me to "Send SMS to contact" seems a bit silly that I have the option to send a media message but not an sms (given the relative ratios of SMS to MMS that the mobile operators handle) unless it is an attempt by Vodafone to get me to send more non bundled MMS instead of the huge number of bundled SMS that I have.
Whilst I love the functionality of my new handset I really do miss the more object orientated funtionality of my old Sony Ericsson
kyphur said:
It is already there...
I'm using the AKU 2.3 Rom but I can't remember it not being there even in the 1.8 Rom that mine shipped with.
Click to expand...
Click to collapse
Missed this post, sorry.
That would be really useful, but I am a bit of a woose and don't want to wreck my phone and Vodafone haven't released the 2.3 ROM (from what I can tell).
I will do a search through the forums and figure out what I have to do to upgrade the ROM and then I'll have to take a gamble on whether I am brave enough to proceed.
Thanks
I s'pose I'm more of the old school, as I use my phone more for calls than text messaging. And in that regard I've been pleasantly surprised to learn how easy it is to do so.
I hope you find a solution, especially given the cost of the device!
I mainly go to inbox, Text Messages, type a few letters of the persons name, and their number pops right in. Am I missing something?
bblue said:
Missed this post, sorry.
That would be really useful, but I am a bit of a woose and don't want to wreck my phone and Vodafone haven't released the 2.3 ROM (from what I can tell).
I will do a search through the forums and figure out what I have to do to upgrade the ROM and then I'll have to take a gamble on whether I am brave enough to proceed.
Thanks
Click to expand...
Click to collapse
I'm thinking that this option was always there for me. Maybe Vodafone removes it from the list intentionally?
You can always try doing a hard reset (or clear storage) and then stop the vodafone customizations from installing by soft reseting when it says "installing customizations in 3 seconds".
kyphur said:
[quote="bblueMissed this post, sorry.
That would be really useful, but I am a bit of a woose and don't want to wreck my phone and Vodafone haven't released the 2.3 ROM (from what I can tell).
I will do a search through the forums and figure out what I have to do to upgrade the ROM and then I'll have to take a gamble on whether I am brave enough to proceed.
Thanks
I'm thinking that this option was always there for me. Maybe Vodafone removes it from the list intentionally?
You can always try doing a hard reset (or clear storage) and then stop the vodafone customizations from installing by soft reseting when it says "installing customizations in 3 seconds".
Click to expand...
Click to collapse
Will give this a try when I have a quiet moment (and have made an inventory of everything that I will need to reload).
Thanks
Hi I was wondering if there was a piece of software that will read out my emails when driving and indeed let me reply via my voice.
I have seen a couple of suggestions that this is possible and as I spend most of my time on the road it would help greatly.
Is there such a piece of software.
Thanks in advance
I had been looking for exactly the same thing. Finally I installed it last week and tried it. I find it useful.
Fonix speech is probably the best I have come across. And does the job quite well.
Features:
1. Can assign a hardware button to start it.
2. Then it can read your outlook emails. You can also use voice instructiomns to start an applicvation (e.g. gps), dial a phone number, have the calendar appointements read to you, have the tasks read to you.
3. You can read emails, delete them or skip them (after it has read the header). The emails read to you are quite accurate (some pronounciations may be funny
4. You can reply to an emai, but it records your response in an attachment (.wav file) which iy them sends it by email. Not the best way to respond to your work emails (atleast not yet). So to restate, the replies are not converted to text.
Let me know if you need any help.
spahwa said:
I had been looking for exactly the same thing. Finally I installed it last week and tried it. I find it useful.
Fonix speech is probably the best I have come across. And does the job quite well.
Features:
1. Can assign a hardware button to start it.
2. Then it can read your outlook emails. You can also use voice instructiomns to start an applicvation (e.g. gps), dial a phone number, have the calendar appointements read to you, have the tasks read to you.
3. You can read emails, delete them or skip them (after it has read the header). The emails read to you are quite accurate (some pronounciations may be funny
4. You can reply to an emai, but it records your response in an attachment (.wav file) which iy them sends it by email. Not the best way to respond to your work emails (atleast not yet). So to restate, the replies are not converted to text.
Let me know if you need any help.
Click to expand...
Click to collapse
I have noticed on Fonix web site the Fonixtalk is due out which is apparently fantastic but cant seem to find it.
Any ideas. I have the older version but the speach is not to clear and as you say it doesnt type emails.
http://www.fonix.com//fonix/index.php
sounds good but when is it out.
How do I do batch text messaging. On my old Motorola Razr I could simply compose a message open up my contacts and then go through and check off all the names I wanted to send it to and hit send and it would send to all the people. However in the TYTN I have to add each person separately. Which takes about 10x the amount of time.
I.E. I am arranging coffee for a small group. I want to send to about 20 odd people in my contact list. Is there a button combination I can press to quickly scroll through my list and select all the people I want to send to and have it add that group to the send field without having to open and close the message each time I want to add a new person to the "To" field.
I suppose a workaround would be to add the contacts once, copy the lot of them and save it as a note, then just paste the group each time you need to send out a batch to them.
Other than that I'm not sure how you would be able to get around the single adding thing.
Cheers
Yes this is one dis-advantage in WM5 and above devices. WM2003 atleast had an easy oiption to choose contatcs.
You can ofcourse try the above workaround by copying a list of contact numbers separated by ; if you often message the same list. Else, use the predictive input to type few letters and select them! Get the point?
There have been a couple of utilities posted that will help you in your cause - both called "Group SMS" strangely enough!!
One can be found >HERE< and the other is mentioned a little further down the same thread and links to >HERE<.
Check them out and see if either fits your needs
Cheers,
Mark.
I am just flashing my radio at the moment, but thank you for the suggestions, I will check them both out and post back the results.
This forum and its members have been a life saver for me. You guys are all awesome.
Thanks again.
Happy Hacking.
Mark Crouch said:
There have been a couple of utilities posted that will help you in your cause - both called "Group SMS" strangely enough!!
One can be found >HERE< and the other is mentioned a little further down the same thread and links to >HERE<.
Check them out and see if either fits your needs
Cheers,
Mark.
Click to expand...
Click to collapse
Thank You, the one from the Asheesh guy, http://forum.xda-developers.com/showthread.php?t=306682&highlight=group+sms Worked perfect, I am able to compose my message and then just click through my contacts and select with a check box the ones I want to send to, and hit send, works perfect.
Glad I could help
You can pretty much guarantee that somewhere on this site is the one program that will make your device complete......you've just gotta be prepared to look for it - they tend to hide in some pretty obscure places
Cheers,
Mark.
Hi all,
First post! Just got very interested in customising my HTC Touch WM6...been playing with spb pocketplus. Like the idea of putting shortcuts where I want them to what I want. But wanted to take it further...
For example I found this:
Create a shorcut, ex: NewSMS.lnk, then put this line in:
30#windows\tmail.exe -service "SMS" -to "" -body ""
writting by Cloudyfa in http://forum.xda-developers.com/showthread.php?t=320448
I renamed the .txt to .lnk and stuck it on my phone and it worked perfectly! What i would like to learn is how to create my own shortcuts, i.e. what does all the text mean in the lnk? the 30# and -service etc...
Hope its not a stupid question or maybe its one that cant really be answered simply..?
Cheers in advance,
Jon
The example you gave in your post can be broken down as follows:
Code:
30# - total length of the string following the "#"
(it's not strictly enforced - you could put "0#" and it would still work!!)
windows\tmail.exe - the path to the application followed by any parameters...
-service "SMS" - the mail service; in this case, text messages
-to "" - set the recipient to blank
-body "" - set the body of the message to blank
The "-service" parameter could also be set to "MMS" or to the name of another mail type account you may have set up on your phone; e.g. "Google" or "Yahoo" etc... You could also set the "To" parameter to someone's name if you wanted to create a shortcut for sending a message to a particular person.
Creating shortcuts is fun - the difficult bit is working out what parameters are available and what format they take! There is a post on creating shortcuts to the "control panel applets" - i.e. the stuff in Start | Settings - you can find it at this page. Good for more examples
Hope this helps,
Mark.
Hi Mark,
Thanks for that, it kind of looked like that was how it was working... like you say though, the question is knowin what format the parameters are to be put in.
For example, on my phone I have a program called "Patiences" when opened, within the program i could choose from 3 different variations of game. How would I go about finding out the right parameters to create a shortcut that would start the program and choose the right game?
Also, modifiying the SMS one, if it was to go to a specific person, should i enter the number in the "to" bit or can it refer by say name to an entry in my address book?
Cheers!!
Jon
jcr1 said:
For example, on my phone I have a program called "Patiences" when opened, within the program i could choose from 3 different variations of game. How would I go about finding out the right parameters to create a shortcut that would start the program and choose the right game?
Click to expand...
Click to collapse
Now you're starting to get technical .....there may be an easy way to get a list of available parameters, probably using the debugger in Visual Studio or something - not something I've ever used! My own method would involve opening the .EXE file with a text editor and searching for recognisable strings; then I would employ a great deal of trial and error to see if I could get it to work
jcr1 said:
Also, modifiying the SMS one, if it was to go to a specific person, should i enter the number in the "to" bit or can it refer by say name to an entry in my address book?
Click to expand...
Click to collapse
The SMS application will resolve whatever name you enter before the message is sent; as long as the name you enter in your .lnk file contains enough characters to make it unique (e.g "John How" would match "John Howard" and "John Howlett", but "John Howl" would get the one you want!!).
Hope this helps - at the end of the day, there's nothing more satisfying than figuring something out yourself (and sharing it with the community if it's worth sharing )....there's so much crap on the TV, I'd much rather spend an hour or two (or six!) messing about with something on my phone, getting it just the way I want it
Enjoy!
Mark.
Hi Mark,
Thanks for the help! Great advice and I shall definately be taking a look at what you suggested. Thats all I needed was some prompting as to where to start looking, as you say, it is much more satisfying working things out for yourself than just getting someone else to do it.
Cheers again!
OK next question, how do I get the tmail.exe from my phone onto my pc so I can have a look at it in notepad? I can find it by browsing through my phone from my laptop but I cannot copy it over? Access denied!
On the phone can't change the properties so it isn't read only or anything?
please help.
Cheers
Now there's a question!!
I've just tried to copy the file myself (using Total Commander V3 Beta - from this page) and it fails for me.....
I used to be able to do it on my Hermes/TyTn, which was unlocked/SuperCID - but now that I have a stock ROM on my Kaiser/TyTn II, it seems that it's no longer possible. I've yet to SuperCID my Kaiser as I've been too busy with work to get involved in flashing/trashing it but after this weekend I may well have a go.
Not sure who else is reading this topic, but if a ROM cook or a more worldly wise user is able to verify my thinking, then that should help you/me/us in our quest to get Tmail.exe off the damn phone and onto the PC!!!
I'll check back/post back if I come across the answer in the meantime. BTW, what device are you using - you don't have a signature that tells me
Cheers,
Mark.
Hopefully now my sig is working... I have a HTC Touch with Windows Mobile.
I'm new to this so I've no idea what you mean by locked ROMs etc.
Either way, thanks very much for your help.