Time limit problem

For user who dont speak german please use this part of my forum
Antworten
cit
Beiträge: 6
Registriert: Di 27. Okt 2009, 06:58
Wohnort: UK
Kontaktdaten:

Time limit problem

Beitrag 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
CIT
FJ
Site Admin
Beiträge: 32117
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol

Beitrag 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
cit
Beiträge: 6
Registriert: Di 27. Okt 2009, 06:58
Wohnort: UK
Kontaktdaten:

Beitrag 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>
CIT
cit
Beiträge: 6
Registriert: Di 27. Okt 2009, 06:58
Wohnort: UK
Kontaktdaten:

Beitrag 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>
CIT
cit
Beiträge: 6
Registriert: Di 27. Okt 2009, 06:58
Wohnort: UK
Kontaktdaten:

Beitrag 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
CIT
FJ
Site Admin
Beiträge: 32117
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol

Beitrag 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.
Antworten