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.
This is driving me up the wall - I got my O2 XDA Mini S yesterday, and I love it, bar 1 (major) fault - I can't (easily) send an SMS to multiple contacts.
Every day I send out 10 texts (sometimes more) to different people (to see who can play football that night). It's not always the same 10, so I can't just set up a Dist List or Group.
At the minute I have to click where it says To:, choose a contact, click where it says To:, choose another contact, etc, etc.
How on Earth can I just click To:, select as many contacts as I need, then send?
I realise after searching these forums that I don't think it can be done with the standard software, but is there any 3rd party software that will let me do this? (I'm only bothered about SMS, not e-mail, if that matters)
Thank you so much!
FlexMail 2007 seems to do what I need.
hey mate, on my mda vario when I start a new sms the cursor is in the 'To' field.
All I do is start typing the name of who I want to send to and the vario brings up a list of possibilites, like it does when it's guessing what words you're typing during a text. Once I pick a name the cursor then moves across so I can type in another name and so on and so on.
does your Mini S not do this?
I just noticed today that it does!!!
It's a shame really that people say "It doesn't do <insert action here>" but actually it does...
It's not their fault they havn't noticed it, it's that it's so well hidden, you don't see it...
i send similar SMS's to a group of friends. what i did was create a new "Contact" for each person and i put a prefix before each name (ie) 1carlos....etc 2mark.....etc this way they are the very first contacts on the list so when i hit the "To" button all the names are right in order at the top of the list
hope this helps
Same here. I send a list of emails or SMS messages to a group of friends. I never found a way to create a distribution list like you can do on the desktop version of Outlook.
I created a notepad file with all the groups. I cut and paste them in the To: box to send to those groups.
Sean
SeanH said:
Same here. I send a list of emails or SMS messages to a group of friends. I never found a way to create a distribution list like you can do on the desktop version of Outlook.
I created a notepad file with all the groups. I cut and paste them in the To: box to send to those groups.
Sean
Click to expand...
Click to collapse
I also tried doing this, but I also discovered not all the addresse received the message at the end...
It seems there is a limit on the number of characters the "To:" field accepts...
And also, if it is faster to send a pigeon, why do I need a PocketPC ???
Ciao
Mix
Hi
some one can help me make one program for send predefined sms quickly
I lake some like that:
when I press a button, program send one sms for one number with button text...
I make this with Basic4ppc but I dont know how I make the functions for send sms...
some one can help me make one program for make some like that?
if I need used other program no problem...
best regards
Never used basic4ppc, but I'd guess it would be possible to open a shortcut/program... That would allow you to use something like VJPhoneTools to send the message rather than interfacing with TMail.
E.G.
Code:
"\Program Files\vijay555\VJSMS.exe" "number" -body "text"
Might be faster that way...
Alternatively, if basic4ppc can inteface with the .NET CF, you can use Microsoft.WindowsMobile.Telephony to send an SMS.
EDIT: looking at the documentation, this may be more helpful!
Code:
Sms.New1("987-654321","This is the message body.")
Hi
I try make other program how I copy from other forum but it give me an error...
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
End Sub
Sub Button1_KeyPress (key)
sms.new1 ("965542750","teste")
End Sub
I dont understand anythink of basic I only use C but basic4ppc only use basic
I dont need declair "sms.new1 "? if yes where?
regards
I have no idea with this... But, I thin maybe this:
Code:
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
Sms.new1
End Sub
Sub Button1_KeyPress (key)
Sms.new1 ("965542750","teste")
End Sub
now I have an error on "sms.new1" :s
Ah!
I think I have it!
You'll need to add the libraries...
Tools->Components->Add Dll, and then click on the "outlook.dll"
Then, Tools->Add object, and select "SMSMessage", enter a name (E.G. Sms) and then use the code as per earlier (Sms.new1 ("965542750","teste")
)
Hi
problem solved... I need put this DLL to work
thanks
filjoa said:
Hi
problem solved... I need put this DLL to work
thanks
Click to expand...
Click to collapse
No problem... And, now I know some basic4ppc!
Now that SMS while driving is finally illegal here, I made a bunch of these .LNKs
Paste this into a *.TXT file, update the TO and BODY and rename to *.LNK.
20#"\Windows\tmail.exe" -service "SMS" -to "021xxxxxxx" -body "Can I call now?"
Click to expand...
Click to collapse
No Vijay or programing skills needed
I link them to WM5NewMenu so I can easily choose the one I want.
You may want to have custom icons. Not sure how to do this, maybe do like supbro and make .EXEs then use Resource Hacker to change the icon...
evojulz said:
Now that SMS while driving is finally illegal here, I made a bunch of these .LNKs
Paste this into a *.TXT file, update the TO and BODY and rename to *.LNK.
No Vijay or programing skills needed
I link them to WM5NewMenu so I can easily choose the one I want.
You may want to have custom icons. Not sure how to do this, maybe do like supbro and make .EXEs then use Resource Hacker to change the icon...
Click to expand...
Click to collapse
I think that requires you to confirm/send the message?
It's not that difficult in basic4ppc, or in C#/VB .NET CF
If you set tmail with -sync it will automatically send the message for you without needing confirmation to send.
h4waii said:
If you set tmail with -sync it will automatically send the message for you without needing confirmation to send.
Click to expand...
Click to collapse
Does that work with SMS as well as email?
I was wondering if there is a program built in the HTC that can send photos in 1 click to the assigned emails.
For example : I take a picture, go to send - email, and thats it.
The software automatically sends the picture to any assigned emails.
On my previous N97, I had a program called PixelPipe that can do that. But since the HTC triumphs over the N97, I feel that it can do that without the fuss of using an external program.
If its not possible, what program does that ?
You can do that with the camera.
Take a picture, and when the menu bar appears, click the envelope
Thanks for replying
Yes im aware of that feature, but thats exactly why I was referring for (implied actually)
I want a way to click e.g. Send by Email => It sends to all assigned contacts directly
The option you are referring to, I have to add the emails manually, PLUS I must have an email assigned to the phone.
So any ideas ?
ZaZu90 said:
Thanks for replying
Yes im aware of that feature, but thats exactly why I was referring for (implied actually)
I want a way to click e.g. Send by Email => It sends to all assigned contacts directly
The option you are referring to, I have to add the emails manually, PLUS I must have an email assigned to the phone.
So any ideas ?
Click to expand...
Click to collapse
Sorry - you've lost me there. Of course you have to have an email account on the phone, and of course you have to enter email addresses (or names, if they're in your contact list with email addresses assigned).
No phone in the world will have native functionality to send emails without you first setting up an email account, and to suggest you want to send emails without telling the phone who to send them to is ridiculous.
Either I've completely misunderstood you or that request is ludicrous (no offense, but it is!)
Hmm I think I wrote a rather confusing description
I remember in Pixel Pipe you had to register using your email, so yeah either way you must have your email registered, my bad.
But other than that here is how it works :
You open the program
You add a list of emails you want to send to
Take a picture
Press " SEND BY EMAIL "
The software comes in and you click your account name
The software sends the picture to emails you already registered to them before
I hope this makes it clearer
ZaZu90 said:
Hmm I think I wrote a rather confusing description
I remember in Pixel Pipe you had to register using your email, so yeah either way you must have your email registered, my bad.
But other than that here is how it works :
You open the program
You add a list of emails you want to send to
Take a picture
Press " SEND BY EMAIL "
The software comes in and you click your account name
The software sends the picture to emails you already registered to them before
I hope this makes it clearer
Click to expand...
Click to collapse
Okay, I understand now. I just don't see why that's any better than the native functionality of the phone as it stands.
You open the camera app
You take a picture
You press send
You select email type
You enter email addresses
It sends an email
It's a very straight-forward process. I guess not many people would want to send picture after picture to the same group of people. (I'm not even sure the group of people would want it either lol).
If you really want the application you mentioned earler, you're better off requesting that from the developers. The only close alternatives out-of-the-box are things like facebook or twitter uploads.
Trying to do something similar to the BBM (black berry messenger) .. Friends share pictures in an instant, one click.
Since I dont have a blackberry, I send by email, so I just wanted a faster way to send pictures rather than typing the same email over and over again.
Have you tried using the "Groups" tool in the HTC Contact application? Not sure if it can do e-mail or just phone numbers since I'm not using it myself.
I dunno about the Groups tool, going to check it now.
But I found a good thing about HTC, thats why I love this phone.
If you assign someone with an email in Contacts, then by typing the first letter (or first few) in the " TO : " Field, the name will pop instantly, saving time from typing it all !!!
So its :
*take a picture
*press mailbox sign
*choose email
*type first letter
*choose contact
*send
Love it
But what is the groups tool you mentioned pphuck ??
ZaZu90 said:
But what is the groups tool you mentioned pphuck ??
Click to expand...
Click to collapse
contact tab -> all contacts -> third icon "Groups"
my guess is that you can create a group of people and then use this group for your photo mail, but i haven't tested it myself
Not sure how that would work though, because you are supposed to enter contacts' emails in "Send To" field
ZaZu90 said:
Not sure how that would work though, because you are supposed to enter contacts' emails in "Send To" field
Click to expand...
Click to collapse
i would presume that you could enter the name of the group as a contact
I just tried that, didnt work.
It sounds like a great idea though, it should be implemented !!
I recently had this hilarious long text and i want to share screen it over facebook to share. I don't know how to turn a string of texts into a word document that is exportable or at least copy and paste able. How should I tackle this problem?
You could install a notepad app on your phone and hop between the Handcent and the notepad copy and pasting one text at a time. Save the notepad as a .txt file and push that to your PC. Open with an office suite and edit from there.
If you'd been using Google Voice, you could have logged in and simply copied the whole exchange.
Sorry, but the slow bit by bit method is all I can think of right now.
thepaddedroom said:
You could install a notepad app on your phone and hop between the Handcent and the notepad copy and pasting one text at a time. Save the notepad as a .txt file and push that to your PC. Open with an office suite and edit from there.
If you'd been using Google Voice, you could have logged in and simply copied the whole exchange.
Sorry, but the slow bit by bit method is all I can think of right now.
Click to expand...
Click to collapse
Thanks for the input. I've thought of that too, brute forcing it, but I rather I export this big long thing as a whole rather than ctrl c ctrl v-ing every single entry...
Not sure how long it is, but normally I just forward it, and instead of sending it out, I cut all the txt and paste it into a new msg. Then back out of that msg, handcent will save as draft. Repeat the steps of forwarding and cutting the txt and continue pasting it into the draft msg. Once u got all msges, u can cut that and paste it into other apps or email it to yourself if you want it on the computer...ect.
Will that work for what you want?
Sent from my HTC Vision using XDA App
wilnotdie said:
Not sure how long it is, but normally I just forward it, and instead of sending it out, I cut all the txt and paste it into a new msg. Then back out of that msg, handcent will save as draft. Repeat the steps of forwarding and cutting the txt and continue pasting it into the draft msg. Once u got all msges, u can cut that and paste it into other apps or email it to yourself if you want it on the computer...ect.
Will that work for what you want?
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Let's just say I have over 100 entries in the thread I want to put up onto facebook...
I don't know how I can cut ALL the entries at once,...
Another idea:
There are several SMS backup apps in the market that promise to back up to Gmail. Maybe you could backup the thread via one of those apps and copy the whole thread from your Gmail account.
Sent from my HTC Vision using XDA App
hmm. for something that large, idk. Someone would have to create a specific app or something.
Closest i got was using SMS Backup, which turned my texts into an XML file.
Opening that in excel 2007 allowed me to filter by a certain number, and than copy and paste the msgs to a word doc.
Thats the only quick option I could find....sry