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.
Hi,
I like to log all my sms messages as plain text onto my pc, because I am writing a perl script to search through them and manipulate them in other ways. I can't seem to figure out however, how to access the messages as they are stored. I have deduced that they seem to be stored in \Windows\Messaging, but these are simply the messages, without any information such as sender, date/time, etc. I also found some files named "MsgQueueDataFileMicrosoft Text SMS Protocol" and similar, but they appear to be empty when opened. Could somebody please tell me how I can access the message files, and also how to read them if this is not immediately clear?
Cheers,
Adam
The right way to do your works is: use RIL interface DLL.
ok..
Thanks, but I'm still not entirely sure how to do this, I've read the wiki and a few googled articles, but I can't seem to find "instructions" on how to get SMS's stored in the phone, and output them into a plain text list similar to:
To: (my number)
From: (number)
Date: (date) (time)
Message: (message here)
If anyone could point me in the right direction, i would be grateful!
Adam
I have tried to search with no luck. My question is when i installed touchit 4.4 i do not have any of the pop up menu's IE when making a text and i start typing the persons name or a word it never pops up suggestions. With over 200 contacts i would like to have the short option to type in 3 letters or so and select the contact from the actual Sms screen. Another thing is when i goto create new (msg) i dont get the option to do MMS or SMS. Lastly off the top of my head when i am typing words i like the option with suggestions again. Can anybody either point me to the proper settings or registry keys to re-enable these features. Also i noticed when i put touch it on my phone all of my contacts are doubled now ? how can i fix this without manually deleting them all
Tmo With wings
touch it 4.4
duprades kb fix
diabolical28 said:
I have tried to search with no luck. My question is when i installed touchit 4.4 i do not have any of the pop up menu's IE when making a text and i start typing the persons name or a word it never pops up suggestions. With over 200 contacts i would like to have the short option to type in 3 letters or so and select the contact from the actual Sms screen. Another thing is when i goto create new (msg) i dont get the option to do MMS or SMS. Lastly off the top of my head when i am typing words i like the option with suggestions again. Can anybody either point me to the proper settings or registry keys to re-enable these features. Also i noticed when i put touch it on my phone all of my contacts are doubled now ? how can i fix this without manually deleting them all
Tmo With wings
touch it 4.4
duprades kb fix
Click to expand...
Click to collapse
1. I havent seached for a fix as far as typing input for SMS recipients, I have just gotten use to clicking menu and adding someone from my contacts instead of typing there name.
2. If you put messaging on your today screen, click on the no unread messages bar and it will take you to the messaging center to pick MMS,SMS, email account.
3. I did think the wings OEM text suggestion program was great, Ive gotten use to not using it with 4.4. Tho if you use the virtual keyboard the program is still enabled.
I dont know if any of this will be a fix for you, it is alil info. There might be things you have to get use to not having with Touch, but be glad you have more than 14mb of memory.
Also, for the duplicate contacts, I would just make sure all your numbers are embedded on your sim card, then select all from your contacts and delete them. Open SIM manager from programs, select all from menu and save all to contacts.
Yes true maybe someone can find the registry keys to enable it, Speaking of registry besides the lame attempt at wiki of a good solid registry hack,tweak mod guide does anybody have a better site while i was Out of town visiting over xmas i stumbled accross a site that offered so many registry hacks but i didnt book mark it
Also a few more questions i get really mad that the Wing does not allow lets say .mid .gif etc files in MMS's is there a way to disable automatic file deletion in mms? sorry if this doesnt make much sense just worked 14 hrs.
you can just write your contact's name (or part of their name) and then go to "menu" and click on "check names".
This should be easier than going through your contacts.
jkrn2003 said:
you can just write your contact's name (or part of their name) and then go to "menu" and click on "check names".
This should be easier than going through your contacts.
Click to expand...
Click to collapse
typing a name and then going thru menu is more steps than just clicking add recipent and clicking the contact you want.
I dont know any other registry sites.
Good Luck
firstly, can't register my nick on freenode. i'd love to ask it in IRC, but would prefer not to *actually* register, and perhaps freenode's nickserv doesn't email to mailinator. if i don't figure it out here, i guess i'll actually register.
so here come the peculiarities....the mmssms.db file holds texts, right? i've been playing around with and modifying that. there are a few oddities with this... perhaps someone can help me dissect the following cases and help me get some insight into this. questions at the bottom.
1) steps:
turn on the phone
check texts
modify the database
check texts
---texts haven't changed
restart phone
check texts
---texts have changed
---why don't the texts change immediately?
2) steps:
turn on the phone
check texts
modify the database
write and receive another text, "hi"
check texts
---shows unmodified database with "hi" texts
restart phone
check texts
---it shows the modified database, and does not have the written and received text after the database was modified. the "hi" text isn't getting written to the database?
---this is particularly curious to me.
3) steps:
turn on phone
check texts
modify database
restart
modify database again
check texts
---it takes a short while, as if it's reading mmssms.db initially after bootup, but only shows the first modification and not the second, which pokes a hole in my theory that everything is written to the database, then the database is read only at first access after startup and kept in cache afterwards
ideally, i'd like to find out how (root commands i can run, just let me know if there's a way) to reflect the modified database in the messaging apps immediately after changing it without having to restart, and have the texts commit to the database between modification and restart.
any insight? i understand there's an SmsManager, but that's used to send texts. presumably, this would commit them to the mmssms.db, but then i don't understand why the second case is happening. does SmsManager also read texts, and keep them all in cache? if so, when does it commit sent texts to the database itself, and when does it re-read the database?
What are you trying to accomplish? What's the point?
just learning how to code and the ins and outs of the android OS (including rooted android).
first app is something to move the database to and from the sdcard as kind of a backup, and i'd rather have the app not prompt to restart.
mmssms.db file
It is my understanding that the mmssms.db file creates tables and populates them at boot. Thus changing the file will not have any effect on the tables until they are re-populated from the file. This seams to fit with your testing, and mine.
interesting
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?