Autor |
Nachricht |
Piyush
Gast
|
Verfasst am:
Sa Aug 11, 2007 07:49 |
|
I want to create one application in which when i will get call then this calling number will autometicaly save into outlook or access database.
Plz help me. or give me solution how can i usu your dll's. |
|
|
|
|
FJ
Site Admin
Anmeldedatum: 15.02.2006
Beiträge: 31493
Wohnort: Tirol
|
Verfasst am:
Sa Aug 11, 2007 09:57 |
|
You don't have to use any dll. MyPhoneExplorer informs you about new things with an EventHandler. Please read the FAQ |
|
|
|
|
FJ
Site Admin
Anmeldedatum: 15.02.2006
Beiträge: 31493
Wohnort: Tirol
|
Verfasst am:
Sa Aug 11, 2007 15:18 |
|
Sorry, i didn't know that its not in the english FAQ. If you make new entrys in the general.ini-file of MyPhoneExplorer it will run a script/exe/whatever. The data will be transfered throught the commandline-interface. You'll find the file general.ini in the database-folder of MyPhoneExplorer
Sample:
Code: | [EventHandlers]
OnMissedCall=C:\Test.exe missednumber="%number"
|
Other Handlers are:
OnAcceptedCall (%number|%user)
OnOutgoingCall (%number|%user)
OnIncomingCall (%number|%user)
OnAutomaticConnect (%user)
OnManualConnect (%user)
OnIncomingMessage (%number|%text|%pdu|%user) |
|
|
|
|
Petar
Gast
|
Verfasst am:
Sa Okt 13, 2007 23:59 |
|
I want to send received message's to a internet website through the URL.
Iv'e treid it with the following entry in general.ini:
Code: |
[EventHandlers]
OnIncomingMessage=http://mywebsite.com/gateway.php?text="%text"&phone="%user"
|
In that PHP script I've made the action that a email must be send to me, but I don't receive anything.
Can you explain how I could use the Eventhandler to do this? |
|
|
|
|
FJ
Site Admin
Anmeldedatum: 15.02.2006
Beiträge: 31493
Wohnort: Tirol
|
Verfasst am:
So Okt 14, 2007 17:00 |
|
The Handler does not connect to the web. It starts a local srcipt or executable. Write a script which connects to your server and it will work. |
|
|
|
|
Petar
Gast
|
Verfasst am:
So Okt 14, 2007 21:35 |
|
Thnx for the reply... Then iI must code some script on my localmachine. |
|
|
|
|
crea-doo
Co-Developer
Anmeldedatum: 22.08.2006
Beiträge: 59
|
Verfasst am:
Mo Okt 15, 2007 09:21 |
|
Petar hat Folgendes geschrieben: | Thnx for the reply... Then iI must code some script on my localmachine. |
No, if you use for example cUrl you dont have to write a local script.
So if you use:
Code: |
[EventHandlers]
OnIncomingMessage=C:\path\to\curl\curl.exe -s "http://mywebsite.com/gateway.php?text="%text"&phone="%user""
|
your script should work...
If you want to use other commandline options of cUrl, type "curl -h" in your command promt...
EDIT: If you have troubles with special chars, its really better to use a script
Code: |
For i = 0 to (WScript.Arguments.Count - 1)
sCommand = WScript.Arguments(i)
sCommand = URLPathEncode(sCommand)
sCommands = sCommands & sCommand & " "
Next
sCommands = Trim(sCommands)
set fs = CreateObject("Scripting.FilesystemObject")
sScriptName = Wscript.ScriptFullName
sScriptPath = fs.getparentfoldername(sScriptName)
Set objShell = CreateObject("WScript.Shell")
objShell.Run sScriptPath & "curl.exe -o ""C:\test.txt"" -s """ & sCommands & """", 0, True
Function URLPathEncode(Text)
sTemp = Text
For i = Len(Text) To 1 Step -1
Char = Asc(Mid(Text, i, 1))
If (Char >= 97 And Char <= 122) Or (Char >= 48 And Char <= 57) Or (Char >= 65 And Char <= 90) Or (Char >= 45 And Char <= 47) Then
'
ElseIf (Char = 95) Or (Char = 126) Or (Char = 38) Or (Char = 58) Or (Char = 61) Or (Char = 63) Or (Char = 64) Or (Char = 35) Or (Char = 33) Or (Char = 36) Or (Char = 42) Or (Char = 43) Then
'
Else
sTemp = Left(Text, i - 1) & ("%" & Hex(Char)) & Mid(sTemp, i + 1)
End If
Next
URLPathEncode = sTemp
End Function
|
To start this script:
Code: |
[EventHandlers]
OnIncomingMessage=C:\path\to\script\curl.vbs "http://mywebsite.com/gateway.php?text=%text&phone=%user"
|
Note: the file "curl.exe" has to be in the same folder as the "curl.vbs"
That worked perfect for me... |
|
|
|
|
|
|
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
| |