FJ Software Foren-Übersicht  
 Homepage   •  Suchen   •  FAQ   •  Mitgliederliste   •  Registrieren   •  Login
 New command Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Neues Thema eröffnenNeue Antwort erstellen
Autor Nachricht
sharpy2010



Anmeldedatum: 11.06.2008
Beiträge: 1

BeitragVerfasst am: Mi Jun 11, 2008 19:31 Antworten mit ZitatNach oben

Hi all Smile

I was just wondering if it is possible to make the computer do something when It receives a text message. I have a mobile phone connected to my computer at all times, and what I want is to be able to text my computer (via the phone connected to it) from another phone, and when my computer receives the text message, it automatically reboots.

Is this possible using MPE? I guess there needs to be some sort of rule system set up, so when the computer receives a text, it will run a command line program?

Cheers!

p.s. If this doesnt make sense, all I want my computer to do is execute a command when a text message is received!
Benutzer-Profile anzeigenPrivate Nachricht senden
crea-doo
Co-Developer


Anmeldedatum: 22.08.2006
Beiträge: 59

BeitragVerfasst am: Do Jun 12, 2008 06:48 Antworten mit ZitatNach oben

Look at this thread...
There is a short description on how to develop a sms gateway.
You have to use some of the following entries in your "general.ini" file:

Code:
[EventHandlers]
OnMissedCall=C:\Test.exe missednumber="%number"
OnAcceptedCall (%number|%user)
OnOutgoingCall (%number|%user)
OnIncomingCall (%number|%user)
OnEndedCall (%number|%user)
OnAutomaticConnect (%port|%user)
OnManualConnect (%port|%user)
OnDisconnect (%port|%user)
OnConnectionLost (%port|%user)
OnIncomingMessage (%number|%text|%pdu|%user)


I think the most interesting for you is the "OnIncomingMessage" handler...
eg. OnIncomingMessage=C:\test.exe /message=%text
Benutzer-Profile anzeigenPrivate Nachricht senden
Gast






BeitragVerfasst am: So Jun 15, 2008 03:33 Antworten mit ZitatNach oben

Hi, thanks very much for the reply!

I have tried adding the following into my general.ini file,

[EventHandlers]
OnIncomingMessage=C:\test.exe /message=gig

I also tried

[EventHandlers]
OnIncomingMessage=C:\test.exe /message=%gig

as I need the computer to do something (run the test.exe) when the word 'gig' is received on the phone.

Unfortunately, although MyPhoneExplorer receives the text message (and the balloon popup appears, to show that it has been received) the prgram test.exe does not run (I have written my own test.exe which contains the commands I wish to execute).

I can't work out why nothing is happening!!
crea-doo
Co-Developer


Anmeldedatum: 22.08.2006
Beiträge: 59

BeitragVerfasst am: So Jun 15, 2008 19:58 Antworten mit ZitatNach oben

Why didn't you add
Code:
[EventHandlers]
OnIncomingMessage=C:\test.exe /message=%text

??

If MPE gets a message, it runs the given application and replaces the "%text" (which is some kind of a variable) with the original message text. (The same with the other variables "%number", "%pdu", "%user")

So for example: You get a message with the text "Hello..." MPE will start C:\test.exe with the following parameters:
Code:
C:\test.exe /message=Hello...


If that doesn't work, check if the applications path is valid and if your application reacts on the given commands as desired...
Benutzer-Profile anzeigenPrivate Nachricht senden
Gast






BeitragVerfasst am: Mo Jun 16, 2008 04:18 Antworten mit ZitatNach oben

BRILLIANT!!!!

Thanks very much, that works absolutely perfectly now!!!! Smile))

Thanks loads for helping me with this!
Beiträge der letzten Zeit anzeigen:      
Neues Thema eröffnenNeue Antwort erstellen


 Gehe zu:   



Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.

Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme :: Alle Zeiten sind GMT + 1 Stunde
Deutsche Übersetzung von phpBB.de