VERSION 5.00 Begin VB.Form Form1 Caption = "Form1" ClientHeight = 4860 ClientLeft = 60 ClientTop = 345 ClientWidth = 5820 ForeColor = &H00004080& LinkTopic = "Form1" ScaleHeight = 4860 ScaleWidth = 5820 StartUpPosition = 3 'Windows Default Begin VB.Frame Frame1 Caption = "Bazna Adresa - Heksa" ForeColor = &H00C000C0& Height = 1215 Left = 120 TabIndex = 0 Top = 3120 Width = 1815 Begin VB.OptionButton Option1 Caption = "Option1" Height = 195 Left = 240 TabIndex = 3 Top = 360 Value = -1 'True Width = 255 End Begin VB.OptionButton Option2 Caption = "Option2" Height = 195 Left = 240 TabIndex = 2 Top = 600 Width = 255 End Begin VB.OptionButton Option3 Caption = "Option3" Height = 195 Left = 240 TabIndex = 1 Top = 840 Width = 255 End Begin VB.Label Label6 Caption = "LPT2: 2F8" ForeColor = &H00404080& Height = 255 Index = 1 Left = 600 TabIndex = 7 Top = 600 Width = 1095 End Begin VB.Label Label3 Caption = "LPT1: 378" ForeColor = &H00404080& Height = 255 Index = 0 Left = 600 TabIndex = 5 Top = 360 Width = 975 End Begin VB.Label Label6 Caption = "LPT3: 3BC" ForeColor = &H00404080& Height = 255 Index = 0 Left = 600 TabIndex = 4 Top = 840 Width = 1095 End End Begin VB.Label Label1 Caption = "Re3" BeginProperty Font Name = "MS Sans Serif" Size = 13.5 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00004080& Height = 375 Index = 2 Left = 4320 TabIndex = 11 Top = 2160 Width = 615 End Begin VB.Label Label1 Caption = "Re2" BeginProperty Font Name = "MS Sans Serif" Size = 13.5 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00004080& Height = 375 Index = 1 Left = 2640 TabIndex = 10 Top = 2160 Width = 615 End Begin VB.Label Label2 Caption = "INTERFEJS KOLO 1" BeginProperty Font Name = "MS Sans Serif" Size = 18 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00C00000& Height = 375 Left = 1080 TabIndex = 9 Top = 120 Width = 3615 End Begin VB.Label Label1 Caption = "Re1" BeginProperty Font Name = "MS Sans Serif" Size = 13.5 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00004080& Height = 375 Index = 0 Left = 960 TabIndex = 8 Top = 2160 Width = 495 End Begin VB.Label Label3 Caption = "LPT2: 278" ForeColor = &H00404080& Height = 255 Index = 1 Left = 720 TabIndex = 6 Top = 3120 Width = 975 End Begin VB.Shape Shape1 BackColor = &H00FFFFFF& BackStyle = 1 'Opaque Height = 1335 Index = 2 Left = 720 Top = 720 Width = 975 End Begin VB.Shape Shape1 BackColor = &H00FFFFFF& BackStyle = 1 'Opaque Height = 1335 Index = 1 Left = 2400 Top = 720 Width = 975 End Begin VB.Shape Shape1 BackColor = &H00FFFFFF& BackStyle = 1 'Opaque Height = 1335 Index = 0 Left = 4080 Top = 720 Width = 975 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Dim Data As Byte 'Used in Save Restore Bios. Private Declare Sub Anjan Lib "vbio.dll" () Private Declare Function Inp Lib "vbio.dll" (ByVal portaddr&) As Integer Private Declare Function Inpw Lib "vbio.dll" (ByVal portaddr&) As Long Private Declare Sub Out Lib "vbio.dll" (ByVal port&, ByVal byt%) Private Declare Sub Outw Lib "vbio.dll" (ByVal port&, ByVal wrd&) Private Declare Function Peek Lib "vbio.dll" (ByVal MemAddr&) As Integer Private Declare Function Peekw Lib "vbio.dll" (ByVal MemAddr&) As Long Private Declare Function Poke Lib "vbio.dll" (ByVal MemAddr&, ByVal byt%) As Integer Private Declare Function Pokew Lib "vbio.dll" (ByVal MemAddr&, ByVal wrd&) As Integer Private Declare Function GetLptBaseAddr Lib "vbio.dll" (ByVal lpt&) As Integer Private Declare Function GetComBaseAddr Lib "vbio.dll" (ByVal com&) As Integer Private Declare Sub Enable Lib "vbio.dll" () Private Declare Sub Disable Lib "vbio.dll" () Private Declare Sub Delay Lib "vbio.dll" (ByVal count&) Private Declare Sub AboutVBIO Lib "vbio.dll" () Public Broj, LPTadresa As Integer Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) Dim i, j As Integer i = 4 j = 0 If (X >= 720) And (X < 1695) And (Y > 720) And (Y < 2055) Then i = 2 If (X >= 2400) And (X < 3375) And (Y > 720) And (Y < 2055) Then i = 1 If (X >= 4080) And (X < 5055) And (Y > 720) And (Y < 2055) Then i = 0 If i <> 4 Then If i = 2 And (Shape1(2).BackColor = RGB(255, 255, 255)) Then Shape1(2).BackColor = RGB(255, 0, 0) j = 1 End If If i = 2 And j = 0 And (Shape1(2).BackColor = RGB(255, 0, 0)) Then Shape1(2).BackColor = RGB(255, 255, 255) j = 1 End If If i = 1 And (Shape1(1).BackColor = RGB(255, 255, 255)) Then Shape1(1).BackColor = RGB(255, 255, 0) j = 1 End If If i = 1 And j = 0 And (Shape1(1).BackColor = RGB(255, 255, 0)) Then Shape1(1).BackColor = RGB(255, 255, 255) j = 1 End If If i = 0 And (Shape1(0).BackColor = RGB(255, 255, 255)) Then Shape1(0).BackColor = RGB(0, 255, 0) j = 1 End If If i = 0 And j = 0 And (Shape1(0).BackColor = RGB(0, 255, 0)) Then Shape1(0).BackColor = RGB(255, 255, 255) j = 1 End If End If Broj = 0 For i = 0 To 2 j = 0 If (Shape1(i).BackColor <> RGB(255, 255, 255)) Then j = 1 Broj = Broj + 2 ^ i * j Next i Call Out(LPTadresa, Broj) End Sub Private Sub Form_Load() 'unlock the dll Anjan LPTadresa = &H378 Call Out(LPTadresa, 0) End Sub Private Sub Option1_Click() If Option1 Then LPTadresa = &H378 End Sub Private Sub Option2_Click() If Option2 Then LPTadresa = &H278 End Sub Private Sub Option3_Click() If Option3 Then LPTadresa = &H3BC End Sub