FJ Software Foren-Übersicht  
 Homepage   •  Suchen   •  FAQ   •  Mitgliederliste   •  Registrieren   •  Login
 Auto reply sms Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Neues Thema eröffnenNeue Antwort erstellen
Autor Nachricht
bnilantha



Anmeldedatum: 04.11.2008
Beiträge: 43

BeitragVerfasst am: So Jul 11, 2010 07:03 Antworten mit ZitatNach oben

is there any way to auto reply to incoming sms.. as same as www.ozekisms.com

there can config outgoing with php script.. please [/url]

_________________
Bernard Nilantha
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 32104
Wohnort: Tirol

BeitragVerfasst am: So Jul 11, 2010 14:54 Antworten mit ZitatNach oben

MyPhoneExplorer has already interfaces to detect incoming messages and to send messages. Create a *.vbs-File with this content:
Code:
Dim i, text, number, tmp, outtext

'First we filter out the commandlinearguments. We get the sender of the SMS and the text throught commandline from MPE
For i = 0 to WScript.Arguments.Count - 1
  tmp = WScript.Arguments.Item(i)
  If Instr(1, LCase(tmp), "number=") = 1 Then
    number = Mid(tmp,8)
  ElseIf Instr(1, LCase(tmp), "text=") = 1 Then
    text = Mid(tmp,6)
  End If
Next

'MPE does send the Number if possible also with the name (like "Name [0123456789]"), we have to cut this of.
If Instr(1,number,"[") <> 0 Then
  number = Mid(number, InstrRev(number,"[") + 1)
  If Instr(1, number, "]") <> 0 Then
    number = Left(number, Instr(1, number, "]") - 1)
  End If
End If

'Msgbox "Text=" & text & vbNewLine & "Number=" & number  'This line is for debugging, it shows the parsed variables

If IsNumeric(number) = True Then

' you can also set a numberfilter and/or textfilter like: If number = "1234567" And InStr(1,text,"question") <> 0 Then
' here you could do anything. An example: Another program writes some value (lets say the weather) into a local file
' your script checks if the messagetext contained "weather" and if yes then the script reads the wheater-textfile and
' tells the sender of the message how the weather will be. Or maybe it answers with the count of unread emails when the
' text contained "emails"

   outtext = "Automated response (" & text & "):%nThis is a test-feedback"  'here the returned text is set, %n represents a line break

   RunMPE "action=sendmessage flags=noerrmsg savetosent=1 number=" & number & " text=" & Chr(34) & outtext & Chr(34)
End If


Function RunMPE(Arguments)
  set shell = CreateObject("WScript.Shell")
  shell.run "myphoneexplorer " & Arguments ,3
End Function


save the file, then open the file %appdata%\MyPhoneExplorer\general.ini and add this lines:
Code:
[EventHandlers]
OnIncomingMessage=<path to script> number="%number" text="%text"
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
bnilantha



Anmeldedatum: 04.11.2008
Beiträge: 43

BeitragVerfasst am: Mo Jul 12, 2010 20:42 Antworten mit ZitatNach oben

is that possible update mysql database when incoming sms??
and generate reply sms from mysql database?

_________________
Bernard Nilantha
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 32104
Wohnort: Tirol

BeitragVerfasst am: Mo Jul 12, 2010 21:41 Antworten mit ZitatNach oben

Sure its possible, but its not my job to write scripts for you. Probably you need a commandline-tool for Web-Access to contact your php-Script on a remote Server.
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
Gast






BeitragVerfasst am: Mo Dez 06, 2010 10:18 Antworten mit ZitatNach oben

dear can you do little fever for me...
i want to write VB6 code for receive sms. i did send sms. but i coldnt revive sms.
i want when recive sms to my GSM modem save to mysql db.

i know dats not your job, but i think you know about this. i searched several forum.
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 32104
Wohnort: Tirol

BeitragVerfasst am: Di Dez 07, 2010 01:42 Antworten mit ZitatNach oben

Command the modem to notify about new sms with AT+CNMI=2,1
The listen for the notification: +CMTI
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
bnilantha



Anmeldedatum: 04.11.2008
Beiträge: 43

BeitragVerfasst am: Mi Dez 08, 2010 21:45 Antworten mit ZitatNach oben

Sorry i didnt get you dear.. please give sample..

also i want action dial on html page. it mean phone numbers list on html, onclick phone number can i dial dat using myphone exp

_________________
Bernard Nilantha
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 32104
Wohnort: Tirol

BeitragVerfasst am: Fr Dez 10, 2010 00:10 Antworten mit ZitatNach oben

Zitat:
i want to write VB6 code for receive sms.

Do you want to control the phone with your program directly or do you want to control MyPhoneExplorer ?
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
bnilantha



Anmeldedatum: 04.11.2008
Beiträge: 43

BeitragVerfasst am: Fr Dez 10, 2010 03:08 Antworten mit ZitatNach oben

FJ hat Folgendes geschrieben:
Zitat:
i want to write VB6 code for receive sms.

Do you want to control the phone with your program directly or do you want to control MyPhoneExplorer ?


1. I want dial number with out dialing on phone. when i click on number. MyPhoneExplorer or what ever i just dial number. But if its using MyPhoneExplorer its better. Eg:-- listing my phone book in web page (PHP) then i click on number it automaticaly dial.

2. If u can pleace give me sample code for receive sms & store in to mysql db. this is not using MyPhoneExplorer coz GSM modem not supported.

Thanks ur response

_________________
Bernard Nilantha
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 32104
Wohnort: Tirol

BeitragVerfasst am: Fr Dez 10, 2010 03:16 Antworten mit ZitatNach oben

1. Register a new protocol handler and enter this command for it:
Code:
myphoneexplorer action=dial number=%1


2. Take a look at the logfiles of MPE after a message was received and use Google. This part is to big as i would write a example for you
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
bnilantha



Anmeldedatum: 04.11.2008
Beiträge: 43

BeitragVerfasst am: Fr Dez 10, 2010 04:04 Antworten mit ZitatNach oben

[quote="FJ"]1. Register a new protocol handler and enter this command for it:
Code:
myphoneexplorer action=dial number=%1


this not possible in php. so i want one some thing like which u given for auto reply sms.

_________________
Bernard Nilantha
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 32104
Wohnort: Tirol

BeitragVerfasst am: So Dez 12, 2010 21:14 Antworten mit ZitatNach oben

Please use google and search how to register a new protocol. You have to do this in the windows regsitry, then you can start a call from a webpage with a link like "callto:12345"
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
bnilantha



Anmeldedatum: 04.11.2008
Beiträge: 43

BeitragVerfasst am: Di Dez 14, 2010 03:40 Antworten mit ZitatNach oben

FJ hat Folgendes geschrieben:
Please use google and search how to register a new protocol. You have to do this in the windows regsitry, then you can start a call from a webpage with a link like "callto:12345"


I have creat one.. but it open only full software.. i just want to dial number

_________________
Bernard Nilantha
Benutzer-Profile anzeigenPrivate Nachricht senden
bnilantha



Anmeldedatum: 04.11.2008
Beiträge: 43

BeitragVerfasst am: Di Dez 14, 2010 04:43 Antworten mit ZitatNach oben

FJ hat Folgendes geschrieben:
Please use google and search how to register a new protocol. You have to do this in the windows regsitry, then you can start a call from a webpage with a link like "callto:12345"


"E:\Program File\MyPhoneExplorer\MyPhoneExplorer.exe" "/action=dial number:"%number""

_________________
Bernard Nilantha
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 32104
Wohnort: Tirol

BeitragVerfasst am: Sa Dez 18, 2010 02:35 Antworten mit ZitatNach oben

Zitat:
I have creat one.. but it open only full software.. i just want to dial number

What did you expect ? If you do not want MyPhoneExplorer then you have to write your own little app which opens the connection to phone and dials the number.

Zitat:
"E:\Program File\MyPhoneExplorer\MyPhoneExplorer.exe" "/action=dial number:"%number""

I don't think this command will work. You should read the documents more carefully.
Code:
"E:\Program File\MyPhoneExplorer\MyPhoneExplorer.exe" action=dial number=%1

This should do the job
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
bnilantha



Anmeldedatum: 04.11.2008
Beiträge: 43

BeitragVerfasst am: Di Dez 21, 2010 22:12 Antworten mit ZitatNach oben

FJ hat Folgendes geschrieben:
Zitat:
I have creat one.. but it open only full software.. i just want to dial number

What did you expect ? If you do not want MyPhoneExplorer then you have to write your own little app which opens the connection to phone and dials the number.

Zitat:
"E:\Program File\MyPhoneExplorer\MyPhoneExplorer.exe" "/action=dial number:"%number""

I don't think this command will work. You should read the documents more carefully.
Code:
"E:\Program File\MyPhoneExplorer\MyPhoneExplorer.exe" action=dial number=%1

This should do the job



ahh i did it.. thanks..

_________________
Bernard Nilantha
Benutzer-Profile anzeigenPrivate Nachricht senden
bnilantha



Anmeldedatum: 04.11.2008
Beiträge: 43

BeitragVerfasst am: Mo Jan 03, 2011 18:59 Antworten mit ZitatNach oben

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\call]
@="URL: Protocol "
"URL Protocol"=""

[HKEY_CLASSES_ROOT\call\DefaultIcon]
@="C:\\Program Files\\MyPhoneExplorer\\MyPhoneExplorer.exe"

[HKEY_CLASSES_ROOT\call\shell]

[HKEY_CLASSES_ROOT\call\shell\open]

[HKEY_CLASSES_ROOT\call\shell\open\command]
@="C:\\Program Files\\MyPhoneExplorer\\MyPhoneExplorer.exe action=dial number=\"%1\""



its not dial number. it just open fully software of myphoneexplor.. it was working on win7..

_________________
Bernard Nilantha
Benutzer-Profile anzeigenPrivate Nachricht senden
bnilantha



Anmeldedatum: 04.11.2008
Beiträge: 43

BeitragVerfasst am: Do Mai 12, 2011 10:45 Antworten mit ZitatNach oben

still im having same problem what should i do??
it was working fine on some PC with WIN7

_________________
Bernard Nilantha
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 32104
Wohnort: Tirol

BeitragVerfasst am: Do Mai 19, 2011 23:10 Antworten mit ZitatNach oben

The command has to look like this:
Zitat:
@="\"C:\\Program Files (x86)\\MyPhoneExplorer\\MyPhoneExplorer.exe\" action=dial number=%1"


But there is a problem, i just tested and i saw that the call: prefix is not removed by windows. So you have to do this with a seperate script. I did write for you a auto-reply script, its similar: The script does parse the commandline, removes callto: and exectutes the exectutable of MyPhoneExplorer with correct commandline
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
linheli
Gast





BeitragVerfasst am: Do Jun 23, 2011 11:23 Antworten mit ZitatNach oben

Command the modem to notify about new sms with AT+CNMI=2,1
The listen for the notification: +CMTI
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