Seite 1 von 1

Extract SMS using command line parameters

Verfasst: Mo 14. Sep 2009, 04:34
von Lyrad
I read from FAQ section: Command line parameters which helps me alot in the things I wanted to do.

Now, I have this two (2) Questions:
1. Is there a command line to run MyPhoneExporer in Hidden mode?

2. Is there a command line to detect and extract new/unread messages?

Hope you will help me on this one. Thank you very much. :D

Verfasst: Mo 14. Sep 2009, 06:26
von FJ
1) No
2) Yes, take a look at the bottom of this FAQ. Maybe you need the Google-Translator cause this FAQ is german

Verfasst: Mi 16. Sep 2009, 05:56
von Lyrad
Thank you for the answer... Is there anyone here willing to translate German to English for me? :wink:

Ebenfalls neu in v1.6:
Die Möglichkeit von EventHandlern. Mit dieser Methode ist es z.B.: möglich ein SMS-Gateway zu bauen. Der Pfad zur Datei wird mit optionalen Parametern in der general.ini angegeben. Dadurch kann ein externes Programm oder ein Script angesteuert werden.
I hope we have a German language subject in our school here in Philippines.
:D

Verfasst: Mi 16. Sep 2009, 06:33
von FJ
Its quite easy. Open the file general.ini and add this lines:

Code: Alles auswählen

[EventHandlers]
OnIncomingMessage=<path to you script/application> text="%text" number="%number"
Everytime when a message comes in the mPE will execute the script, %text and %number are replaced then with dynamic values

Verfasst: Mi 16. Sep 2009, 06:43
von Lyrad
Thank you... could you give me an example of a script?

Verfasst: Mi 16. Sep 2009, 14:26
von weinbi
This depend on what you want to do.
Usually when a user needs this, he wants e.g. to start another application on an incoming message.

You can write a .vbs (Visual Basic Script) to do specific tasks.

Verfasst: Mi 16. Sep 2009, 16:59
von FJ
If you want to implement handlers and new functions then you should know how to work with them. If you don't have this knowledge its better you let it be.