search
Search keywords
Category
Featured Applications
MailWorks Professional let's you create and manage your own e-mail marketing campaigns.
We offer FREE voting polls for your web site.
The new auction site that has all the features of a successfull market place.
Banner Advertisement to give you a channel to present your products to a targeted Web Development audience.
Give your Application the exposure it deserves! Your application will be displayed on each and every page header.
Your application holds one of the top positions and seen first when browsing through your Application's category.
Full application details

Full application details

SMS Receive
Utilities > Network
Modified: 30/11/2005
Application ID: #5808
Author:
License:
Commercial license(s) available (license information)
Platforms:
Programming language:
Visual Basic
Source Code Available:
No
Option Explicit

Dim objGsmIn
Dim objConstants

Dim nNumDevices, strDevices, i
Dim numMessages

Set objGsmIn = CreateObject ( "ActiveXperts.GsmIn" )
Set objConstants = CreateObject ( "ActiveXperts.SmsConstants" )

' Message storage constants

Wscript.Echo "ActiveXperts SMS and Pager Toolkit " & objGsmIn.Version & " demo."
Wscript.Echo "Expiration date: " & objGsmIn.ExpirationDate & vbCrLf

nNumDevices = objGsmIn.GetDeviceCount()
strDevices = "*** Enter one of the following device names *** " & vbCrLf & vbCrLf

For i = 0 To nNumDevices-1
strDevices = strDevices & objGsmIn.GetDevice( i )
strDevices = strDevices & vbCrLf
Next

strDevices = strDevices & "COM1" & vbCrLf & "COM2" & vbCrLf & "COM ..." & vbCrLf

' Set device
Do
objGsmIn.Device = inputbox( strDevices, "Input" )
Loop until objGsmIn.Device <> ""

' Set logfile
objGsmIn.LogFile = "c:\SmsReceive.txt"

' Do not remove messages from memory after receive
objGsmIn.DeleteAfterReceive = FALSE

' Set message memory ( SIM Memory )
' When receiving messages failed, change this propery to asSTORAGE_DEVICE

objGsmIn.Storage = objConstants.asSTORAGE_SIM

' Enter PinCode ( optional )
' objGsmIn.EnterPin ( "1234" )

' Read messages
objGsmIn.Receive ()

if ( objGsmIn.LastError <> 0 ) Then
WScript.Echo "Failed to receive, error: " & objGsmIn.LastError & " (" & objGsmIn.GetErrorDescription( objGsmIn.LastError ) & ")"
End If

' Loop through all received messages
objGsmIn.GetFirstMessage ()

while ( objGsmIn.LastError = 0 )
WScript.Echo "Message from: " & objGsmIn.MessageSender
wScript.Echo "Message : " & objGsmIn.MessageData
objGsmIn.GetNextMessage()
Wend

WScript.Echo "Ready."
License Information Direct link:
Rate this application now
hits: 44
downloads: 314
reviews: 0
rating: 0.0 / 5 (0 votes)
Statistics
Today
  • New listings
    0
  • Downloads
    0
This week
  • New listings
    0
  • Downloads
    0
This month
  • New listings
    0
  • Downloads
    0
Total
  • Members
    63
  • Listings
    657
  • Downloads
    63461
  • Categories
    137
  • Reviews
    2721