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.
Hi Folks,
This is my first post, although I've owned my XDAIIs for several weeks and I've ROM'd it to the iMATE 1.4 ROM. So I've had a good play.
I was looking at smsOrganizer (from Jeyo) which is badly supported (and it ain't free) and I wondered why I (we) couldn't write something to do the same thing, for free.
Is there a forum for this kind of activity, or could someone point me in the direction of some exmples of how to pass data between the PC and phone?
Best regards
AndrwB
Andrew, look into RAPI: eg here
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarppc2k/html/ppc_teapppi.asp
Development and Hacking is the right place for this kind of query...what do you want the app to do?
V
Hi V,
Basically I want to control the SMS message transfer on my XDA from Outlook, just like smsOrganizer.
Re. your link, I think we've got those? but I generally write embedded C, non of this fancy C++ stuff :-((
AndrewB
Hi V,
I just tried this :
http://support.microsoft.com/default.aspx?scid=kb;en-us;307256
And I can now copy files to and from my device
Not bad for 1 hours playing, specially as I've fixed 2 work related bugs too )
Andrew B
Good stuff.
I'm just learning C++ actually, I never learnt C, coming from self-taught VB on the PC.
RAPI is the way to do most PC<>PDA communications, although right now I'm only just getting into sms stuff. It'd be easy enough (I think) to write an interface to create an SMS on the PC in text, transmit that to the PDA and then SMS it off, but the backend of it would require some implementation.
Keep us posted though!
V
99% of c programs should compile and work just fine on
c++ compilers and you can write c++ programs without using
oop in which case they are pretty much c programs
From what I've read it looks as if you need to write an app to sit on the device and another app on the main PC. The app on the phone just acts as an agent passing data between the sms services and the PC.
Anybody got any ideas?
AndrewB
Yipeeeee
I can now write a DLL that sits on the device and I can write a C++ application on my PC to communicate with it
Now to start reading some text messages from the device to the PC......
Does anybody know agood way to send and recieve SMS ?? I would also like to edit the text and pass it to an Edit Box.
I am not too sure about the available API's that will let me do this.
Please HELP :shock:
Hey , i would like to send and recieve SMS on my xda2. Also pass the recieved message into an Edit Control. Does anybody know a good way to do this ??
I know about the SMS API but i am unaware of others. Pleas Help !! thnkx
SMS Auto sending
Hi everybody,
Is there a way to auto send all sms in draft? Basically, every sms in draft folder needs to be send one by one by ticking send button.
OK,
I can now send a text message from my PC to a DLL on my phone using RAPI, then send a SMS using MAPI.
The trouble is I can't get the subject and body fields to display correctly on my XDAIIs. Also I can't get the Name to appear instead of the number.
I'll try to post the code later on the understanding that it is FREE and we pool our experiences/knowledge.
Here is the code for the DLL and the PC program. Just press one of the keys on the tol bar to send the message. The number and message are hard coded.
There are ABSOLUTELY NO guarentees with this code, use it at you own risk.
can it recieve SMS as well ?? Has any body thought about other API's to use for sending and recieving SMS's maybe ?
Well.... Not yet.
This is my first ever .net VC++ program !!!!
There are lots of code snipets around but no full source code.
This is a work in progress project hence it is in the "Development and Hacking" fourm.
If you'd like to add some functionality to it......
I am asking because there seems to be a problem when trying to recieve SMS with SMS api as the HANDLE is already attributed to the messaging application (inbox/draft/outbox).
I believe you are using RAPI ? However i do not understand this API that well could u specify a bit more ?
Thanks for your help.
Hi nutitija,
I'm only using the RAPI function to pass parameters from my PC to the XDA. The actual sending of messages is done using the MAPI in the XDA.
My biggest problem is getting the subject/body and from fields to display correctly in the different XDA mail views.
Hi All. I've started this Topic because i cant find any information anywhere about this!
I need to write an app for WM5 (PPC) and part of its function will be to send an email in the background to a certain address. I've read up on the new additions to WM5 and it tells me about the wonderful new messaging API (MAPI) thats availiable. Problem is, i have no clue where to find it, nevermind use it.
If anyone has a clue what the simplest way is to send an email with an attachment from a C# WM5 app, i'd be extreemely grateful!
Thanks
You should be able to do this by using the tmail.exe app with appropriate command lines. If you're doing it the hard way, investigate POOM.
Are you saying you don't know where to find the WM5 SDK?
V
MAPI
I'm doing it the hard way.
K. looked at POOM. Looks good but...
it says i have to start a MAPI session and gives code showing how to do it but i don't know what references to add to get the specific types and methods that the code requires. Any ideas?
Hi!
I'm asking here if there is around a simple but valid flash sms sender, with GUI and access of outlook's phonebook... possibly with anonymous sender...
Searched a lot on the internet but found too crappy softwares...
cheers, Moccij
Hi MocciJ,
Have you tried Vijay555's tool for this type of sms? I know it's capable, but I'm unsure about the gui & contact integration part you want. You can find it @ www.vijay555.com
Regards, M
Already seen it..
But I'm looking to something qith contacts and some sort of GUI, maybe only for typing in the mex, the phone number from the contacts, and a send button..
Another app I've seen includes this minimal GUI, but no contacts and no copy and paste option..
Maybe I'm asking too much if I want it to integrate with outlook? Is it possible?
Many thanks, MocciJ
I'm sure it can be done, this integration with outlook. TomTom has it's added its 'contact navigation' option & Richard Owens the 'file as first last' option.
The question will be who's going to do it. Try to contact Vijay maybe he can do it for you, although I know he got a lot of stuff on his head lately.
M
Will contact him
Flashy messages rulez!! :lol:
MocciJ
Guys, Class 0 requires sending through a custom app, it's not a simple switch you check within outlook. As such, an Outlook plugin can grab the details of the contact, perhaps, but will then have to jump into its own GUI to do the text message creation and sending etc.
It's feasible, but just a pain in the backside to do GUIs right now...
However, I'm thinking about doing an app that will hopefully integrate such features at some point after a couple of more urgent things first...
V
Vijay,
By no means I'm pushing or rushing you to create this app. The general idea you sketch is just what I had in mind as the solution.
off topic: I see you moved to a new place :-( Hope everything is still ok with the family, especially with Alexander.
Have to get the kids to school & write you laterrrr,
M
an interface for sending class 0 sms would be very cool. Ive made up a basic interface that uses vijays program but its pretty crappy, just two boxs for text and the phone number and a send button :lol: thats about as far as my vb skills go!
Well, I haven't VB skills at all :wink:
Ryanmt:
I've tried carty flash messenger, which has the same GUI as your app, but no paste and phonebook if the app u compiled has cut and paste options at least, then we're at a good point (since u can copy the number from the phonebook and paste into the program ) can u post the app here?
Cheers, MocciJ
just hunting on the net to find some info on accessing contacts
who'd ahve thought they would make it so hard to add a paste option :S
if anybody could give me some pointers ide be willing to have a go at making it all work. But as it stands i could write it easily in java but dont understand the tutorials for C#
glad to see that there are upgrades... flashy sms are pretty cool... Must thank Ryanmt..
Best regards, MocciJ
Have you tried Jgui A.SMS ? It can send class0 smses.
hmm, I wanted a some more simplier app, just as Ryanmt thought.. But in any case I'll try it :wink:
MocciJ
I saw one in the msdn site
you can change in the provider options to change betweent classes
the example there sends in class 0
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfsendsms.asp
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?