home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2000 November
/
VPR0011A.BIN
/
HANDA
/
CAMP
/
camp.frm
< prev
next >
Wrap
Text File
|
2000-09-04
|
8KB
|
275 lines
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3330
ClientLeft = 60
ClientTop = 345
ClientWidth = 4845
FillColor = &H00808080&
LinkTopic = "Form1"
ScaleHeight = 3330
ScaleWidth = 4845
StartUpPosition = 3 'Windows の既定値
Begin VB.CommandButton まつむしOFF
Caption = "手動まつむしOFF!"
BeginProperty Font
Name = "MS Pゴシック"
Size = 14.25
Charset = 128
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Index = 3
Left = 120
TabIndex = 3
Top = 2400
Width = 2415
End
Begin VB.CommandButton まつむしON
Caption = "手動まつむしON!"
BeginProperty Font
Name = "MS Pゴシック"
Size = 14.25
Charset = 128
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Index = 2
Left = 120
TabIndex = 2
Top = 1800
Width = 2415
End
Begin VB.CommandButton すずむしON
Caption = "手動すずむしON!"
BeginProperty Font
Name = "MS Pゴシック"
Size = 14.25
Charset = 128
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Index = 0
Left = 120
TabIndex = 1
Top = 600
Width = 2415
End
Begin VB.CommandButton すずむしOFF
Caption = "手動すずむしOFF!"
BeginProperty Font
Name = "MS Pゴシック"
Size = 14.25
Charset = 128
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Index = 1
Left = 120
TabIndex = 0
Top = 1200
Width = 2415
End
Begin VB.Label Label2
Alignment = 2 '中央揃え
BackColor = &H8000000A&
Caption = "の、サンプルプログラム"
BeginProperty Font
Name = "MS Pゴシック"
Size = 8.25
Charset = 128
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Index = 0
Left = 2760
TabIndex = 8
Top = 360
Width = 1935
End
Begin VB.Label Label1
Caption = "Copyright(C)2000, by NOBU."
Height = 255
Index = 0
Left = 2520
TabIndex = 7
Top = 3000
Width = 3975
End
Begin VB.Label Label4
Alignment = 2 '中央揃え
BackColor = &H8000000E&
Caption = "雨センサー"
BeginProperty Font
Name = "MS Pゴシック"
Size = 12
Charset = 128
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Index = 1
Left = 2880
TabIndex = 6
Top = 1800
Width = 1695
End
Begin VB.Label Label3
Alignment = 2 '中央揃え
BackColor = &H8000000E&
Caption = "光センサー"
BeginProperty Font
Name = "MS Pゴシック"
Size = 12
Charset = 128
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Index = 0
Left = 2880
TabIndex = 5
Top = 720
Width = 1695
End
Begin VB.Label Label2
Alignment = 2 '中央揃え
BackColor = &H8000000E&
Caption = "ハンダでGo!安全キャンプマシーン"
BeginProperty Font
Name = "MS Pゴシック"
Size = 12
Charset = 128
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Index = 1
Left = 120
TabIndex = 4
Top = 120
Width = 4575
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
KeyPreview = True
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Cls
If KeyCode = &H7A And Shift = 0 Then
CurrentX = 3200
CurrentY = 1300
FontName = "MS Pゴシック"
Print "夜になったよ!!"
X = Shell("gpio.exe 19 0", 6)
AppActivate "camp"
End If
If KeyCode = &H7B And Shift = 0 Then
CurrentX = 3050
CurrentY = 2300
FontName = "MS Pゴシック"
Print "雨が降ってきた~!!"
X = Shell("gpio.exe 20 0", 6)
AppActivate "camp"
End If
End Sub
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
Cls
If KeyCode = &H7A And Shift = 0 Then
CurrentX = 3200
CurrentY = 1300
FontName = "MS Pゴシック"
Print "明るくなったよ!!"
X = Shell("gpio.exe 19 1", 6)
AppActivate "camp"
End If
If KeyCode = &H7B And Shift = 0 Then
CurrentX = 3050
CurrentY = 2300
FontName = "MS Pゴシック"
Print "晴れてるよ~!!"
X = Shell("gpio.exe 20 0", 6)
AppActivate "camp"
End If
End Sub
Private Sub すずむしOFF_Click(Index As Integer)
X = Shell("gpio.exe 19 1", 6)
AppActivate "camp"
End Sub
Private Sub すずむしON_Click(Index As Integer)
X = Shell("gpio.exe 19 0", 6)
AppActivate "camp"
End Sub
Private Sub まつむしOFF_Click(Index As Integer)
X = Shell("gpio.exe 20 1", 6)
AppActivate "camp"
End Sub
Private Sub まつむしON_Click(Index As Integer)
X = Shell("gpio.exe 20 0", 6)
AppActivate "camp"
End Sub