| | |
receive sms using vb6(codes)
![]() |
•
•
Join Date: Oct 2006
Posts: 10
Reputation:
Solved Threads: 0
Hi everyOne..currently I m dOing my final yr project...I haf sOme cOdes attached..coz i realli don nOe how to continue...can anyone help mi...
Thanks!! The one is bold is where i got stuck..
Thanks alot!!!
Codes
Private Sub cmdSendMesg_Click()
' Set up the communications port
MSComm1.CommPort = 1 ' Com Port 1
' Set for 9600 baud, no parity, 8 data, and 1 stop bit.
MSComm1.Settings = "9600,N,8,1"
' Tell the control to read entire buffer when Input is used
MSComm1.InputLen = 0
' Open the port
MSComm1.PortOpen = True
' Send an 'AT' command to the phone
MSComm1.Output = "AT" & Chr$(13)
' The phone will respond with an 'OK'
' Set up the phone for a text message
MSComm1.Output = "AT+CMGF=1" & Chr$(13)
' The phone will respond with an 'OK'
' new mesg indication automatically send to pc, and not saved new mesg to sim/phone memory
MSComm1.Output = "AT+CNMI=1,2,0,0,0 " & Chr$(13)
(THIS IS WHERE I AM STUCK; dont know what to write next..)
' Close the port
MSComm1.PortOpen = False
End Sub
Reply With Quote
Thanks!! The one is bold is where i got stuck..
Thanks alot!!!
Codes
Private Sub cmdSendMesg_Click()
' Set up the communications port
MSComm1.CommPort = 1 ' Com Port 1
' Set for 9600 baud, no parity, 8 data, and 1 stop bit.
MSComm1.Settings = "9600,N,8,1"
' Tell the control to read entire buffer when Input is used
MSComm1.InputLen = 0
' Open the port
MSComm1.PortOpen = True
' Send an 'AT' command to the phone
MSComm1.Output = "AT" & Chr$(13)
' The phone will respond with an 'OK'
' Set up the phone for a text message
MSComm1.Output = "AT+CMGF=1" & Chr$(13)
' The phone will respond with an 'OK'
' new mesg indication automatically send to pc, and not saved new mesg to sim/phone memory
MSComm1.Output = "AT+CNMI=1,2,0,0,0 " & Chr$(13)
(THIS IS WHERE I AM STUCK; dont know what to write next..)
' Close the port
MSComm1.PortOpen = False
End Sub
Reply With Quote
![]() |
Similar Threads
- Send & Receive SMS Via mobile Phone from PC (Visual Basic 4 / 5 / 6)
- receive sms using vb6 (Visual Basic 4 / 5 / 6)
- receive sms using vb.net (VB.NET)
- source for LED using parallel port codes (Visual Basic 4 / 5 / 6)
- Migrate VB6 codes to VB2005 (VB.NET)
- receive sms by PC using VB (VB.NET)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: converting a text or xml file into binary format
- Next Thread: Datagrid and Ado problem
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





