Blame | Last modification | View Log | Download
VERSION 5.00Begin VB.Form inpout32Caption = "Form1"ClientHeight = 4710ClientLeft = 915ClientTop = 1410ClientWidth = 4770LinkTopic = "Form1"PaletteMode = 1 'UseZOrderScaleHeight = 4710ScaleWidth = 4770Begin VB.Timer TimerYLeft = 1680Top = 600EndBegin VB.TextBox TextYHeight = 375Left = 960TabIndex = 1Text = "Y"Top = 600Width = 615EndBegin VB.Timer TimerXLeft = 1680Top = 120EndBegin VB.TextBox TextXHeight = 372Left = 960TabIndex = 0Text = "X"Top = 120Width = 615EndEndAttribute VB_Name = "inpout32"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseDim pocitadloPrivate Sub Form_Load()TimerX.Interval = 500TimerX.Enabled = TrueTimerY.Interval = 500TimerY.Enabled = TrueEnd SubPrivate Sub TimerX_Timer()Dim vstupOutput &H201, &HFFFor n = 1 To 1000pocitadlo = nvstup = Input32(&H201) And 1If vstup = 0 ThenGoTo venEnd IfNext nven:TextX.Text = pocitadloEnd SubPrivate Sub TimerY_Timer()Dim vstupOutput &H201, &HFFFor n = 1 To 1000pocitadlo = nvstup = Input32(&H201) And 2If vstup = 0 ThenGoTo venEnd IfNext nven:TextY.Text = pocitadloEnd Sub