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.
This might be a bit long winded so my apologies in advance.
My XDA11 dumped itself and did a hard reset a couple of days back.
Luckily I had an oldish backup.stg file and was able to restore virtually everything to it's prior, if a bit old, state by restore via active sync.
However I discovered that my SMS and e-mail inboxes were full of messages which were niether readable or deletable.
Interestingly none of them have the envelope icon beside them.
Tapping a message produces a screen activity as if opening the message but nothing appears.
Similarly, tapping and attempting to delete a message results in nothing happening.
However any new SMS messages and e-mails react as usual.
I was able to remove all the 'ghost' messages for my e-mails by deleting all the accounts and then reinstating them however it appears this can't be done for the SMS account.
Through file explorer I deleted all the .mpb files in the /windows/messaging folder. This did not remove the ghosts either.
I have spoken unsuccesfully with O2 who merely think I should hard reset again and then reinstall everything from the ground up. This seems a bit screwy as there has to be folder/file in which these headers are held. They were also apparently unaware that activesync to a hard reset XDA requires I establish a new partnership which wont allow access to the old data (OK I can get round that but that's not the point....)
So has anyone else had this problem and sorted it I wonder?
I can live with these headers but it would be nice to lose them.
Thanks
Slim
There's a lot of topics about this, and a lot of conflicting information. A lot of arguing, and it's quite difficult to get the info you need.
I suggest that a topic, maybe even this one, be stickied with the current status of the problem as it seems to be the most common problem around.
After a period of successful use, SMSs will suddenly get stuck in the outbox and not send (to check, turn your messaging to traditional mode which will give you access to a folder drop-down) - no amount of resetting and retrying will send them.
HTC have apparently been made aware of the problem and may have a fix on the way.
Current solutions being put forward are:
a) Keep your message amount trimmed down - delete as many old messages as you can
or
b) install this cab http://handheld.softpedia.com/get/Tweaks/Zenyee-Disable-HTC-Messaging-82632.shtml (or follow the directions here - a bit more hands-on but the same result http://forum.xda-developers.com/showthread.php?t=556614 ) to revert back to the default WinMo messaging service - a little less shiny, and doesn't have the benefit of pulling the contact name from your contacts when you get a delivery receipt, but is still perfectly functional and actually removes the slowdown from the messaging tab too.
If this is sticky'd, or if another one is made and sticky'd, can I also request that conversation be kept to a minimum and any info that crops up be immediately put into the first post?
Just to add to this with my personal points of experience:
* Normally you can tell if the message has sent if you watch it for a few seconds after you press send and it briefly flashes, though I still always check the Outbox folder to make sure.
* Sometimes when you check the Outbox folder it has messages from other folders (such as your inbox folder) which is wrong, just keep switching from inbox to outbox to get the true view of the outbox folder.
* An indicator for some people is that there is a problem was the volume bar not showing up correctly in the music player when music was playing, also caused stuttering in the song (possibly due to the volume keys actually skipping the playing track forward or backward with each press?) Normally when this was observed it was a tell-tale sign that the SMS bug has struck again.
Solutions (or more accurately, temporary work-arounds: think duct tape around a leaky pipe )
There is NO final guaranteed solution that works 100% of the time for 100% of people, however here are the few attempts that I know:
1.) WORKS FOR ME EVERYTIME SO FAR*::
- Soft reset the phone (turn it on and off).
- Go to your outbox folder (options, view traditional mode) and open the unsent message(s). Select all and copy the message, then delete it. Start a new message, paste the text and send again. This works everytime for me, though it is annoying turning the phone on and off.
- If you have whole bunch of unsent messages in the outbox then open up word/notes program and repeat the previous steps, copying and pasting all messages that were unsent in the outbox. This really really sucks if you have a lot of messages that didn't send, which is why I always make sure to regularly check my outbox.
2.) Another less successful (it seems) is to change your network to GSM only; mixed response, doesnt always work, or if it does the problem comes back again anyway at some point.
3.) Go in to the settings and add +44 (i.e UK area code or whatever your country code) in front of your SMS number (the network number) - again I tried this and did nothing, mixed responses but in my eyes does nothing.
4.) Add +44 to the beginning of every number in address book: did nothing for me I doubt this is a solution.
5.) Send yourself an SMS to clear your outbox: I tried this twice, never worked for me
That's it off the top of my head, to conclude though the best method I have found is to simply turn it off and on and copy and paste then resend freshly composed messages.
The problem may not be there for ages, then suddenly hit your phone, dissapear, then come back. With my old HD2 it happened about 3-5 4 times a day, with me turning it off each time, with moderate texts (maybe 10-20 max a day). I received a replacement HD2 today and after sending about 6 texts I have not had this problem but this means nothing, I'm expecting it to rear its ugly head at any second...
*Note that when I say 'works for me every time so far' I am not saying that this is a solution to fix the SMS bug, merely that it is a workaround (albeit not a good one) that has worked every time for me so far. However there have also been reports of people turning the phone on and off and the message still not sending, though this may be due to them holding their finger on the message in the outbox and pressing 'resend' which in my experience hardly ever works. Deletion and resending the pasted message seems to be the best way forward, apart from disabling the HTC messaging app altogether that is...
When I copy text in my dolphin hd browser I get a little message saying copied to clipboard. Where is this clipboard? And does it retain the text even after I have pasted it somewhere else?
Can I access the clipboard? Can't find it anywhere on my system.
Looks to be addressed in this thread:
http://forum.xda-developers.com/showthread.php?t=692404
You should be able to paste text saved to your clipboard several times, at least until the next time you copy a chunk of text, at which point it will be replaced by whatever you copied most recently. You can also download a number of apps that collect & let you see your clipboard data.
Thanks vagicle I did a search but couldn't come up with anything for some reason.
Good username
try clipper clipboard app I use it
Where do I find the clipboard?
so i just looked all over the net trying to find this but is there really no way to view pictures like a normal human being from the stock message app when their are multiple pictures being received??:silly: instead of it putting it in the stupid slide show making the pictures smaller and not zoomable unless you save them.
I know even if you just receive one message with text then it also goes to the slideshow view. Just try to tell your friend to only send one picture at a time