Texting script

Help and discussion about non-Linux operating systems

Moderators: ChrisThornett, LXF moderators

Texting script

Postby Dutch_Master » Fri Dec 07, 2012 10:31 pm

I am in urgent need of a script that sends text messages. Let me explain: over the years the credit on my account of my mobile phone ISP has been steadily rising, for the simple reason I just don't call that much. It's gone now into serious figures and I asked my ISP for a refund. They refuse point blank. Right. But that makes me even more determined they will not get it. The solution is to text messages to charities. But the ISP is not to know I'm not doing the texting myself, it's a script doing it. Unfortunately the device has Win-Mobile installed and I have no idea how that works... (nor do I want that, mind you!) So I want to ask your help. The script (batch-file?) preferably has a config file in plain text, specifying:

1) the number of times a message should be texted,
2) the number to text,
3) the content of the message
4) the interval the messages are send

The script should stop after the specified number of messaged has been reached and optionally deal with any replies, by moving them to a separate folder. Ideally it should be able to send multiple messages simultaneously, but that's might be too much for a simple script.

The reason it's urgent is that on Jan, 1st. a new law comes into force, effectively raising the price of electronic gadgets like mobile phones, MP3 players, harddrives, etc etc, by as much as 5 euro's to "compensate copyrightholders of the entertainment industry for illegally downloaded material from the internet" :evil: So, I'm buying a new phone this month instead... :roll:

Can you help? The charities would be grateful! ;)
Dutch_Master
LXF regular
 
Posts: 2460
Joined: Tue Mar 27, 2007 1:49 am

Postby dhester » Fri Dec 07, 2012 11:03 pm

if you had googled you would have found several projects that use the raspberry pi to do exactly what you want to do. There are examples in python that could be adapted to any device that can run python.

Which version of windows is your mobile using. I have several devices that use various versions of windows mobile and could point you in the right direct to a programme that may work on your mobile.
dhester
 
Posts: 72
Joined: Thu Feb 19, 2009 6:19 pm

Postby Dutch_Master » Sat Dec 08, 2012 1:01 am

The problem is that my phone is 7+ years old and I doubt it could handle python*. As for the Win-version: I have no clue where to find it**. The device says it's platform is PocketPC with a 2.21.2.5 ROM version.

*it reports to have a 16 bit bus and 64 MB memory, so python will struggle I guess...

**well, I did find it, in the end: it's Win-Mobile 5.1.195 (Build 14847.2.0.0)
Dutch_Master
LXF regular
 
Posts: 2460
Joined: Tue Mar 27, 2007 1:49 am

Postby dhester » Sat Dec 08, 2012 2:08 am

Not sure if I am allowed to post a direct link so google for windows mobile 5.1 apps and first five links take you to software you can try.

Could you not get a keystroke recorder to record the key strokes and play that back.

I have win mobile 5.1 on an old HP device, I will dig it out the pile over the weekend and see what is on it. I did have the SDK for win mobile 5.1 and made a couple of small programmes, as they were called then, to do some tasks I needed. Win mobile uses .Net framework as I recall.

Could you not get a cheap android phone and code for that, the tutorial in Linuxformat is a good one to follow. (shameless grovelling there!). I have just done a quick google and found six or seven apps for android that may do some of what you want. I will charge my Android phone up and try some for you.

Python is available for Android so I will see if the Raspberry pi scripts work on android if I get time over the weekend.

Approximately how many texts do you need to send?
dhester
 
Posts: 72
Joined: Thu Feb 19, 2009 6:19 pm

Postby Dutch_Master » Sat Dec 08, 2012 1:55 pm

Thanks for trying! It's in the 400-500 range. But for individual charities it'll be lower, like 200 or so. That's why I like a config file, to change the target. I'll have a google, thx!
Dutch_Master
LXF regular
 
Posts: 2460
Joined: Tue Mar 27, 2007 1:49 am

Postby dhester » Sat Dec 08, 2012 4:14 pm

I got python and one of the scripts for the raspberry pi working on android, now to see if I can adapt it to read config file and loop properly.
dhester
 
Posts: 72
Joined: Thu Feb 19, 2009 6:19 pm

Postby Dutch_Master » Sun Dec 09, 2012 2:52 pm

Thanks, much appreciated!
Dutch_Master
LXF regular
 
Posts: 2460
Joined: Tue Mar 27, 2007 1:49 am

Postby dhester » Mon Dec 10, 2012 1:51 am

Not had chance to work on the script today, I was watching my son play football.

But i found this Auto SMS which works on android 2.1 and above where you can schedule a text to a number and schedule the time interval between texts. Not 100% what DM you are after but it might help if you could get a cheap android phone or you could borrow one for a couple of days.
dhester
 
Posts: 72
Joined: Thu Feb 19, 2009 6:19 pm

Postby Dutch_Master » Mon Dec 10, 2012 3:19 am

Thanks for trying! The key is: I can't use an Android phone... The ISP has locked down the device to the SIM card, so I'm forced to use this cr*p... :evil: It has to run on the Win-version I posted earlier, otherwise it won't work :( (still need to do that google though, work intervened unfortunately :? )
Dutch_Master
LXF regular
 
Posts: 2460
Joined: Tue Mar 27, 2007 1:49 am


Return to Other OS

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests