FJ Software Foren-Übersicht  
 Homepage   •  Suchen   •  FAQ   •  Mitgliederliste   •  Registrieren   •  Login
 Most important Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Neues Thema eröffnenNeue Antwort erstellen
Autor Nachricht
Piyush
Gast





BeitragVerfasst am: Sa Aug 11, 2007 07:49 Antworten mit ZitatNach oben

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: 31478
Wohnort: Tirol

BeitragVerfasst am: Sa Aug 11, 2007 09:57 Antworten mit ZitatNach oben

You don't have to use any dll. MyPhoneExplorer informs you about new things with an EventHandler. Please read the FAQ
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 31478
Wohnort: Tirol

BeitragVerfasst am: Sa Aug 11, 2007 15:18 Antworten mit ZitatNach oben

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)
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
Petar
Gast





BeitragVerfasst am: Sa Okt 13, 2007 23:59 Antworten mit ZitatNach oben

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: 31478
Wohnort: Tirol

BeitragVerfasst am: So Okt 14, 2007 17:00 Antworten mit ZitatNach oben

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.
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
Petar
Gast





BeitragVerfasst am: So Okt 14, 2007 21:35 Antworten mit ZitatNach oben

Thnx for the reply... Then iI must code some script on my localmachine.
crea-doo
Co-Developer


Anmeldedatum: 22.08.2006
Beiträge: 59

BeitragVerfasst am: Mo Okt 15, 2007 09:21 Antworten mit ZitatNach oben

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 Wink

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...
Benutzer-Profile anzeigenPrivate Nachricht senden
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