| | |
source for LED using parallel port codes
![]() |
•
•
Join Date: Oct 2006
Posts: 10
Reputation:
Solved Threads: 0
Hi everyone. Hope you guys can help me. Attached below are VB6 codes for a hand phone to call to a modem. When the action is executed, a message box will pop out ‘Ring Ring’. I just want to know is there anyone out there have the codes for SMS where when the action is executed, a message box will pop out.
On the other hand, I also need some simple codes (VB6) for 8 LEDs lights for parallel ports.
Thanks and appreciate for you guys help.
Regards
yanz
Below is the coding for the calling with the MsgBox"Ring Ring"
Private Sub Form_Load()
' Buffer to hold input string
Dim Instring As String
' Use COM1.
MSComm1.CommPort = 1
' 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 the attention command to the modem.
'MSComm1.Output = "AT" + Chr$(13)
' Wait for data to come back to the serial port.
Do
DoEvents
Loop Until MSComm1.InBufferCount >= 2
' Read the "OK" response data in the serial port.
Instring = MSComm1.Input
' Close the serial port.
MSComm1.PortOpen = False
End Sub
Private Sub MsComm1_OnComm()
Select Case MSComm1.CommEvent
Case comEvRing 'Value 6
MsgBox "Ring Ring"
Case Else
MsgBox "Don't know what event."
End Select
End Sub
Private Sub Form_a()
MSComm1.PortOpen = False
End Sub
On the other hand, I also need some simple codes (VB6) for 8 LEDs lights for parallel ports.
Thanks and appreciate for you guys help.
Regards
yanz
Below is the coding for the calling with the MsgBox"Ring Ring"
Private Sub Form_Load()
' Buffer to hold input string
Dim Instring As String
' Use COM1.
MSComm1.CommPort = 1
' 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 the attention command to the modem.
'MSComm1.Output = "AT" + Chr$(13)
' Wait for data to come back to the serial port.
Do
DoEvents
Loop Until MSComm1.InBufferCount >= 2
' Read the "OK" response data in the serial port.
Instring = MSComm1.Input
' Close the serial port.
MSComm1.PortOpen = False
End Sub
Private Sub MsComm1_OnComm()
Select Case MSComm1.CommEvent
Case comEvRing 'Value 6
MsgBox "Ring Ring"
Case Else
MsgBox "Don't know what event."
End Select
End Sub
Private Sub Form_a()
MSComm1.PortOpen = False
End Sub
•
•
Join Date: Nov 2006
Posts: 13
Reputation:
Solved Threads: 0
I don't have any help for your first problem, but go to http://www.geekhideout.com/iodll.shtml for a simple port IO solution. I've used it in a number of computer-to-realworld interface projects with great results. I've also used it in just about all Windows OS's from Win95 up though XP Pro. I even used it with a home-made 8255 PPI ISA card with no problems.
HAVE A NICE DAY!
Please do not assume that I have a clue just because I post possibly helpful replies. I am a programming amateur at best, and I do this for FUN.
Please do not assume that I have a clue just because I post possibly helpful replies. I am a programming amateur at best, and I do this for FUN.
![]() |
Similar Threads
- how to program parallel port (Java)
- A Parallel Port Control Program with Hotkeys for each pin? (IT Professionals' Lounge)
- parallel port access in perl (Perl)
- Problem with parallel port access (*nix Hardware Configuration)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Seriusly need help!
- Next Thread: Question in Visual Basic 6.0
| 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





