home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2000 November
/
VPR0011A.BIN
/
HANDA
/
SANMA
/
sanma.frm
< prev
next >
Wrap
Text File
|
2000-09-04
|
9KB
|
315 lines
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
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 = 0
TabIndex = 3
Top = 2160
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 = 0
TabIndex = 2
Top = 1560
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 = 0
TabIndex = 1
Top = 360
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 = 0
TabIndex = 0
Top = 960
Width = 2415
End
Begin VB.Label Label4
Alignment = 2 '中央揃え
BackColor = &H8000000E&
Caption = "焼け具合センサー②"
BeginProperty Font
Name = "MS Pゴシック"
Size = 11.25
Charset = 128
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Index = 0
Left = 2520
TabIndex = 9
Top = 2040
Width = 2055
End
Begin VB.Label Label1
Caption = "Copyright(C)2000, by NOBU."
Height = 255
Index = 0
Left = 2280
TabIndex = 8
Top = 2880
Width = 3975
End
Begin VB.Label Label2
Alignment = 2 '中央揃え
BackColor = &H8000000E&
Caption = "ハンダでGo!究極のGPIO七輪"
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 = 7
Top = 0
Width = 4215
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 = 2520
TabIndex = 6
Top = 360
Width = 1935
End
Begin VB.Label Label3
Alignment = 2 '中央揃え
BackColor = &H8000000E&
Caption = "さんま検知センサー"
BeginProperty Font
Name = "MS Pゴシック"
Size = 11.25
Charset = 128
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Index = 0
Left = 2520
TabIndex = 5
Top = 600
Width = 2055
End
Begin VB.Label Label4
Alignment = 2 '中央揃え
BackColor = &H8000000E&
Caption = "焼け具合センサー①"
BeginProperty Font
Name = "MS Pゴシック"
Size = 11.25
Charset = 128
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Index = 1
Left = 2520
TabIndex = 4
Top = 1320
Width = 2055
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub うちわOFF_Click(Index As Integer)
X = Shell("gpio.exe 19 1", 6)
AppActivate "sanma"
End Sub
Private Sub うちわON_Click(Index As Integer)
X = Shell("gpio.exe 19 0", 6)
AppActivate "sanma"
End Sub
Private Sub 電熱器OFF_Click(Index As Integer)
X = Shell("gpio.exe 20 1", 6)
AppActivate "sanma"
End Sub
Private Sub 電熱器ON_Click(Index As Integer)
X = Shell("gpio.exe 20 0", 6)
AppActivate "sanma"
End Sub
Private Sub Form_Load()
KeyPreview = True
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Cls
If KeyCode = &H79 And Shift = 0 Then
CurrentX = 2900
CurrentY = 1000
FontName = "MS Pゴシック"
Print "さんま発見!!"
X = Shell("gpio.exe 19 0", 6)
AppActivate "sanma"
End If
If KeyCode = &H7A And Shift = 0 Then
CurrentX = 2900
CurrentY = 1750
FontName = "MS Pゴシック"
Print "焦げちゃうよ~!!"
X = Shell("gpio.exe 20 0", 6)
AppActivate "sanma"
End If
If KeyCode = &H7B And Shift = 0 Then
CurrentX = 2900
CurrentY = 2450
FontName = "MS Pゴシック"
Print "焦げちゃうよ~!!"
X = Shell("gpio.exe 20 0", 6)
AppActivate "sanma"
End If
End Sub
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
Cls
If KeyCode = &H79 And Shift = 0 Then
CurrentX = 2900
CurrentY = 1000
FontName = "MS Pゴシック"
Print "さんまを乗せてね!!"
X = Shell("gpio.exe 19 0", 6)
AppActivate "sanma"
End If
If KeyCode = &H7A And Shift = 0 Then
CurrentX = 2900
CurrentY = 1750
FontName = "MS Pゴシック"
Print "生焼けになるよ~!!"
X = Shell("gpio.exe 20 0", 6)
AppActivate "sanma"
End If
If KeyCode = &H7B And Shift = 0 Then
CurrentX = 2900
CurrentY = 2450
FontName = "MS Pゴシック"
Print "生焼けになるよ~!!"
X = Shell("gpio.exe 27 0", 6)
AppActivate "sanma"
End If
End Sub