Seite 1 von 1

Time limit problem

Verfasst: Di 27. Okt 2009, 07:08
von cit
hi
i m using MPE in my VB application to send mass sms it takes data from access database then work in loop

StartDoc = ShellExecute(0, nil, "C:\Program Files\MyPhoneExplorer\MyPhoneExplorer.exe", msg, "C:\Program Files\MyPhoneExplorer", vbHidden
Sleep 20000

its work fine but few problem

1.if message is to long then its become all mess up

my question how do i control this , wait untill the last msg send and then take next message

increasing sleep time is one option is there any other way

2.Can i hide that send window ??
3.incase of error dont disply message and just move to next sms

thnx

Verfasst: Di 27. Okt 2009, 07:31
von FJ
You can send the message throught a batch-file: http://www.fjsoft.at/forum/viewtopic.php?t=7609

In this case you get no errormessage and you can detect that the operation is done when the batchfile has changed (cause MPE does save the results in the batchfile)

Its not possible to make the process invisible

Verfasst: Di 27. Okt 2009, 07:53
von cit
ok thnx for quick response

i read the code but its not in english can u translate that so i can set correct parameters

<batch>
<message>
<recipient>die Telefonnummer</recipient>
<text>der Nachrichtentext</text>
</message>
<message>
<recipient>die Telefonnummer</recipient>
<recipient>die 2. Telefonnummer</recipient>
<text>der Nachrichtentext</text>
<flags>Flags für die Nachricht</flags>
</message>
</batch>

Verfasst: Di 27. Okt 2009, 07:55
von cit
can i use this simple format

<batch>
<message>
<recipient>Telefonnummer</recipient>
<text>text</text>
</message>
<message>
<recipient>Telefonnummer</recipient>
<text>text</text>
</message>
</batch>

Verfasst: Di 27. Okt 2009, 09:13
von cit
there is a problem
this is not one time job sms keep coming from external resoruce so using batch processing need manual assistance other wise many instance of same batch will start any other better way do that
just need that
next sms will not go in untill the sms in progress in finished

Verfasst: Di 27. Okt 2009, 18:49
von FJ
next sms will not go in untill the sms in progress in finished
Thats right. I told you to check if the batchfile has been modified before you do the next job. MPE does write the result into the batchfile so you are able to detect when it is finished.