亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? form1.frm

?? 用于遠程視頻監控的源碼
?? FRM
?? 第 1 頁 / 共 2 頁
字號:
      End
      Begin VB.Menu mnudash 
         Caption         =   "-"
      End
      Begin VB.Menu mnuexittag 
         Caption         =   "E&xit TAG"
      End
   End
   Begin VB.Menu mnutophelp 
      Caption         =   "Help"
      Visible         =   0   'False
      Begin VB.Menu mnuAbout 
         Caption         =   "&About..."
      End
      Begin VB.Menu mnuhelp 
         Caption         =   "&Help..."
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
 '#########################################################
'### NOTE TO VIEWERS...                                  ###
'### If your looking for the WINSOCK part                ###
'###  of this code, it in the WS object                  ###
'### with the Connect, DataArival, and ConnectionRequest ###
'### Declarations.                                       ###
'###                                                     ###
'### KNOWN BUGS...                                       ###
'###  First of all, the game gets thrown out of sync     ###
'###  really easily because the speed of calculations    ###
'###  wich the computer does.  Other bugs with incomming ###
'###  data HAVE been noted adn hopefully fixed.          ###
'### SEE THE README FILE for information on how it works ###
'###    please also note that it will not let you move   ###
'###   unless you are connected to an opponent
'###     http://www.yarinteractive.com                   ###
 '#########################################################
Public Flag1 As Boolean
Public lastkey As Integer

Public Sub CmdSend_Click()
Dim b
If ConnectedtoRemote = False Then
TypeMatrix "Message not sent, not connected to remote computer..."
ElseIf ConnectedtoRemote = True And Len(txtTransmit.Text) > 0 Then
ws.SendData "%YTT%" & txtTransmit.Text 'send a transmission... (chat)
TypeMatrix MyTagName & ": " & txtTransmit.Text
txtTransmit.Text = ""
End If
End Sub

Private Sub Form_Load()
'Some more stuff that could be improved upon..
mmStop
mmClose
mmOpen (App.Path + "\sounds\mission.mid")
'MsgBox "It should be playing music!!!"
mmPlay

Paused = False
Timer1.Enabled = True
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
resmenus 'reset the menus
End Sub

Private Sub Form_Terminate()
mmStop
  mmClose
End Sub

Private Sub Form_Unload(Cancel As Integer)
mmStop 'stop all of the multimedia stuff
  mmClose
End Sub

Private Sub lblX_Click()
WEndGame
End Sub

Private Sub lblX_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
shpdd.Visible = False 'get rid of the box thing
lblX.BackStyle = 1 'show the background
lblX.ForeColor = 0
End Sub

Private Sub MatrixTextTimer_Timer()
If mlength = Len(MatrixText) Then MatrixTextTimer.Enabled = False
mlength = mlength + 1
lblTr.Caption = Mid(MatrixText, 1, mlength)
End Sub

Private Sub mnupause_Click()
If Paused = False Then
Paused = True
  Call WPauseGame 'if we're not paused, pause it...
 ElseIf Paused = True Then
 Paused = False
  Call WUnPauseGame 'if we're paused, unpause it...
End If
End Sub

Private Sub PArena_KeyDown(KeyCode As Integer, Shift As Integer)
'CircDirection
'1 = left   Chr(37)
'2 = up     Chr(38)
'3 = right  Chr(39)
'4 = down   Chr(40)
If ConnectedtoRemote = True Then
 Select Case KeyCode
     Case 37 'if they press left
     If lastkey = 37 Then Exit Sub
     ' ws.Close
      ws.SendData "YTDIR1"
        CircDirection = 1
     Case 38 'if they pressed up
     If lastkey = 38 Then Exit Sub
        ws.SendData "YTDIR2"
        CircDirection = 2
       'lblTr.Caption = "poop!!!"
     Case 39 'if they pressed right
     If lastkey = 39 Then Exit Sub
        ws.SendData "YTDIR3"
        CircDirection = 3
     Case 40 'if they pressed down
     If lastkey = 40 Then Exit Sub
       ws.SendData "YTDIR4"
        CircDirection = 4
     Case 80
      If Paused = False Then
         WPauseGame
        ElseIf Paused = True Then
         WUnPauseGame
      End If
    End Select
lastkey = KeyCode
End If
End Sub

Private Sub picMoveF_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim MX
m = X
resmenus 'reset the menus
If Button = 1 Then
 Form1.Left = (Form1.Left + (X))
 Form1.Top = (Form1.Top + (Y))
End If
End Sub

Private Sub PArena_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
resmenus 'reset the menus...
End Sub

Private Sub pmnugame_Click()
PopupMenu mnugame 'show the popup menu
End Sub

Private Sub pmnugame_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
pMnuHelp.BackStyle = 0 'set the other menu object's background to transparent
  pMnuHelp.ForeColor = &HFFFFFF 'set the other menu's forecolor to white again

  pmnugame.BackStyle = 1
pmnugame.ForeColor = 0
End Sub

Private Sub pMnuHelp_Click()
PopupMenu mnutophelp 'show the HELP popup...
End Sub

Private Sub pMnuHelp_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
pmnugame.BackStyle = 0 'set the other menu object's background to transparent
  pmnugame.ForeColor = &HFFFFFF 'set the other menu's forecolor to white again

  pMnuHelp.BackStyle = 1
pMnuHelp.ForeColor = 0
End Sub

Public Sub resmenus() 'procedure to reset the menus...
pmnugame.BackStyle = 0 'set the other menu object's background to transparent
  pmnugame.ForeColor = &HFFFFFF 'set the other menu's forecolor to white again

  pMnuHelp.BackStyle = 0 'set the other menu object's background to transparent
  pMnuHelp.ForeColor = &HFFFFFF 'set the other menu's forecolor to white again
  
  lblX.BackStyle = 0
  shpdd.Visible = True
  lblX.ForeColor = &HFFFFFF
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
  Case 13 'if they pressed enter then...
   Call CmdSend_Click
  End Select
End Sub

Private Sub Timer1_Timer()
'if anyone could figure out a quicker way of calculating this
'let me know, cuz right now the slow calculations run the game
'out of sync, on any computer from a 100Mhz to a PIII 800Mhz!!!
On Error Resume Next
If Paused = True Then Exit Sub

If CircDirection = 1 And CircX > LeftBound Then
CircX = CircX - CircSpeed
Circle1.Left = CircX
ElseIf CircDirection = 3 And CircX < (RightBound - CircSize) Then
CircX = CircX + CircSpeed
Circle1.Left = CircX
ElseIf CircDirection = 4 And CircY < (BottomBound - CircSize) Then
CircY = CircY + CircSpeed
Circle1.Top = CircY
ElseIf CircDirection = 2 And CircY > TopBound Then
CircY = CircY - CircSpeed
Circle1.Top = CircY
Else
CircDirection = RevDir(CircDirection)
ws.SendData "YTDIR" & CircDirection
End If

If OpCircDir = 1 And OpCircX > LeftBound Then
OpCircX = OpCircX - OpCircSpeed
Circle2.Left = OpCircX

ElseIf OpCircDir = 3 And OpCircX < (RightBound - CircSize) Then
OpCircX = OpCircX + OpCircSpeed
Circle2.Left = OpCircX

ElseIf OpCircDir = 4 And OpCircY < (BottomBound - CircSize) Then
OpCircY = OpCircY + OpCircSpeed
Circle2.Top = OpCircY

ElseIf OpCircDir = 2 And OpCircY > TopBound Then
OpCircY = OpCircY - OpCircSpeed
Circle2.Top = OpCircY
End If
If YourIt = True Then DoCalcs
End Sub


Private Sub txtTransmit_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then Call CmdSend_Click
End Sub

Private Sub ws_Connect()
TypeMatrix "Conneting... Vairifying connection..."
ws.SendData "%YTCON?%" 'send varification request string...
TypeMatrix "Varification Request sent, waiting for reply..."
'send the name...
lblTr.Caption = "Sending Name..."
ws.SendData "YTPNAM" & MyTagName & "%"

'send our color
lblTr.Caption = "Sending Color..."
ws.SendData "%YTPCO" & MyColorNum & "%"

lblTr.Caption = "Sending Player Color..."

'varify once more..
lblTr.Caption = "Game Started..."

'Enable Chat...
txtTransmit.Enabled = True
Paused = False
Timer1.Enabled = True
ConnectedtoRemote = True

'Set up stuff for being the host...
CircX = 525
CircY = 1806
Circle1.Left = CircX
Circle1.Top = CircY
OpCircX = 4155
OpCircY = 1620
Circle2.Left = OpCircX
Circle2.Top = OpCircY
MsgBox "Set up default shit!"
End Sub

Private Sub ws_ConnectionRequest(ByVal requestID As Long)
Dim m
m = MsgBox("Player found...  Do you wish to accept the connection?", vbYesNo, "Accept Connection?")
If m = vbYes Then
'MsgBox "Connection Accepted"
'Label1.Caption = Label1.Caption + Chr(13) + "Connection Accepted..."
Form1.Show
Form2.Hide
ws.Close
lblTr.Caption = "Closing Socket... Connecting to client."
'Label1.Caption = Label1.Caption + Chr(13) + "Closing Socket... Connecting to client."
ws.Accept requestID 'Accept the conection
'you've accepted the connection, let them know.
lblTr.Caption = "Establishing connection to remote players" & Chr(13) & "Varifying connection..."
ws.SendData ("YTAGSGAMEXOSC")
TypeMatrix "Extablishing connection..."

lblTr.Caption = "Sending Name..."
'send the name...
ws.SendData "YTPNAM" & MyTagName & "%"

lblTr.Caption = "Sending Player Color..."

'send our color
ws.SendData "%YTPCO" & MyColorNum & "%"
'varify once more..
ws.SendData "%YTCON?%"
TypeMatrix "Game Started..."

'Enable Chat and the rest of the game...
txtTransmit.Enabled = True
Paused = False
Timer1.Enabled = True
'We ARE connected now...
ConnectedtoRemote = True
Unload Form2
  CircX = 4155
  CircY = 1620
  Form1.Circle1.Left = CircX
  Form1.Circle1.Top = CircY
  OpCircX = 525
  OpCircY = 1806
  Form1.Circle2.Left = OpCircX
  Form1.Circle2.Top = OpCircY
  
Else
'we dont connect...
'if this next line makes any sort of error, comment it out
ws.SendData ("YTAGSGAMEXONC")
End If
End Sub

Private Sub ws_DataArrival(ByVal bytesTotal As Long)
Dim IData As String
Dim transi
Dim a, b, c, d, e, f, g, h, i
ws.GetData IData

'This part needs more improvement so they dont keep running out of sync...
If IData = "YTDIR1" Then 'the opponent is goin left
 OpCircDir = 1
 ElseIf IData = "YTDIR2" Then 'the opponent is goin up
 OpCircDir = 2
 ElseIf IData = "YTDIR3" Then 'the opponent is goin right
 OpCircDir = 3
 ElseIf IData = "YTDIR4" Then 'the opponent is goin down
 OpCircDir = 4
   
   ElseIf Left(IData, 5) = "%YTT%" Then
     lblTr.Caption = "Incomming Transmission..."
     transi = Right(IData, Len(IData) - 5)
     TypeMatrix OpTagName & ": " & transi
 If InStr(1, IData, "YTAGSGAMEXONC") > 0 Then MsgBox "The Host has declined your connection request... :("
 
 If InStr(1, IData, "YTAGSGAMEXOSC") > 0 Then Call HAccC 'They've Accepted our connection request
 
 If InStr(1, IData, "YTCONN") > 0 Then Call VarConD
 If InStr(1, IData, "%YTCON?%") > 0 Then Call VarCon

 If InStr(1, IData, "YTPASG") > 0 Then Call OPauseGame 'they paused the game
 If InStr(1, IData, "YTUNPS") > 0 Then Call OUnPausedGame 'they unpaused the game
 If InStr(1, IData, "YTSPNT") > 0 Then Call OpScoreP 'they scored a point
 If InStr(1, IData, "YTENDG") > 1 Then Call OEndGame 'they ended the game...
 If InStr(1, IData, "YTPNAM") > 0 Then 'we recieveed their name...
' On Error Resume Next
 a = InStr(1, IData, "YTPNAM")
 b = InStr(a, IData, "%")
 c = b - a 'calculate the length of their name...
 OpTagName = Mid(IData, (a + 6), c)
 MsgBox "Name Recieved - testinfo... name:" & OpTagName
 'they sent their color...
 End If
If InStr(1, IData, "%YTPCO1%") > 0 Then 'they're red
    OpColor = TAGColor1
    Circle2.BackColor = OpColor
End If
If InStr(1, IData, "%YTPCO2%") > 0 Then 'they're orange
    OpColor = TAGColor2
    Circle2.BackColor = OpColor
End If
If InStr(1, IData, "%YTPCO3%") > 0 Then 'they're yellow
    OpColor = TAGColor3
    Circle2.BackColor = OpColor
End If
If InStr(1, IData, "%YTPCO4%") > 0 Then 'they're green
    OpColor = TAGColor4
    Circle2.BackColor = OpColor
End If
If InStr(1, IData, "%YTPCO5%") > 0 Then 'they're red
    OpColor = TAGColor5
    Circle2.BackColor = OpColor
End If
If InStr(1, IData, "%YTPCO6%") > 0 Then 'they're blue
    OpColor = TAGColor6
    Circle2.BackColor = OpColor
End If
'shows unknown data (errors)
' lblTr.Caption = "unrecognized command: " & IData
 End If
'lblTr.Caption = IData
End Sub

Public Function RevDir(Direction As Byte) As Byte
If Direction = 1 Then RevDir = 3 'a sub to reverse the direction (when they hit a wall)
If Direction = 2 Then RevDir = 4
If Direction = 3 Then RevDir = 1
If Direction = 4 Then RevDir = 2
End Function

Public Sub TypeMatrix(Expression As String)
MatrixTextTimer.Enabled = False 'this just makes that typing effect for chat etc.
MatrixText = Expression
mlength = 0
MatrixTextTimer.Enabled = True
End Sub

Public Sub VarCon() 'connection being varified
 lblTr.Caption = ""
 TypeMatrix "Connection Varification Requested... Checking Connection..."
  ws.SendData "YTCONN"
  ConnectedtoRemote = True
  Paused = False
  Timer1.Enabled = True
End Sub

Public Sub VarConD() 'connection varified
lblTr.Caption = "Connection Varified..."
  ConnectedtoRemote = True
End Sub

Public Sub HAccC()
 Form1.MatrixTextTimer.Enabled = False
 lblTr.Caption = ""
  lblTr.Caption = "The host has ACCEPTED your connection =)"
   ws.SendData "%YTPCO" & MyColorNum & "%"
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆.com| 6080午夜不卡| 欧美一区二区网站| 国产精品人人做人人爽人人添| 一区二区久久久| 国产成人精品免费一区二区| 欧美日韩视频一区二区| 国产精品网站在线| 免费不卡在线视频| 色94色欧美sute亚洲线路二| 精品国产污污免费网站入口| 亚洲bt欧美bt精品777| 91热门视频在线观看| 欧美精品一区二区三区蜜桃视频| 亚洲图片欧美一区| 色哟哟一区二区| 国产亚洲人成网站| 韩国欧美一区二区| 日韩西西人体444www| 亚洲高清在线精品| 在线日韩国产精品| 亚洲人成网站影音先锋播放| 大桥未久av一区二区三区中文| 欧美α欧美αv大片| 日本欧美一区二区三区| 欧美另类变人与禽xxxxx| 亚洲最新在线观看| 欧美艳星brazzers| 亚洲免费色视频| 91天堂素人约啪| 亚洲蜜臀av乱码久久精品蜜桃| 成人免费高清在线| 国产欧美日韩视频在线观看| 国产乱码字幕精品高清av| 久久色在线观看| 国产精品1区二区.| 国产女同互慰高潮91漫画| 国产很黄免费观看久久| 国产午夜亚洲精品不卡| 国产成人av福利| 欧美韩国日本不卡| 成人av一区二区三区| 亚洲色图制服丝袜| 欧美三级三级三级| 日韩激情视频在线观看| 日韩欧美一区二区三区在线| 久久精品理论片| 久久久精品一品道一区| 高清国产午夜精品久久久久久| 中文字幕二三区不卡| 91丝袜呻吟高潮美腿白嫩在线观看| 亚洲区小说区图片区qvod| 欧美自拍偷拍一区| 免费一级欧美片在线观看| 久久夜色精品国产噜噜av | 欧美丝袜丝交足nylons| 午夜电影一区二区三区| 精品成人一区二区三区| 成人教育av在线| 亚洲综合网站在线观看| 69堂精品视频| 成人永久免费视频| 亚洲线精品一区二区三区| 欧美成人一级视频| 波多野结衣在线aⅴ中文字幕不卡| 亚洲精品中文在线| 日韩亚洲欧美高清| 99亚偷拍自图区亚洲| 天天操天天色综合| 日本一区二区三区在线观看| 在线欧美小视频| 精品一区精品二区高清| 亚洲欧美偷拍另类a∨色屁股| 制服丝袜国产精品| 99久久综合精品| 免费观看日韩电影| 亚洲女同一区二区| 精品福利在线导航| 精品视频在线免费观看| 大陆成人av片| 另类小说色综合网站| 亚洲激情自拍偷拍| 久久久久久亚洲综合| 欧美挠脚心视频网站| 成人免费av在线| 久久草av在线| 亚洲电影视频在线| 亚洲丝袜美腿综合| 久久久久久久久久久久电影 | 成人福利在线看| 美美哒免费高清在线观看视频一区二区| 国产精品区一区二区三区| 91精品国产欧美日韩| 色网站国产精品| 成人精品国产福利| 国产精品一区二区黑丝| 秋霞午夜鲁丝一区二区老狼| 亚洲精品欧美专区| 18欧美亚洲精品| 中文字幕av免费专区久久| 日韩精品最新网址| 欧美狂野另类xxxxoooo| 欧美在线不卡一区| 色哟哟一区二区在线观看 | 91免费在线视频观看| 国产成人免费9x9x人网站视频| 蜜臀va亚洲va欧美va天堂 | 8x8x8国产精品| 精品视频一区二区不卡| 色婷婷精品久久二区二区蜜臂av| 国产高清精品网站| 国产在线精品免费| 激情综合色播激情啊| 韩日精品视频一区| 国产精品综合久久| 国产精品亚洲午夜一区二区三区| 精品一区二区国语对白| 极品销魂美女一区二区三区| 久久精品国产一区二区| 精品一区二区三区在线观看国产| 美女视频黄久久| 国内精品在线播放| 国产九九视频一区二区三区| 国产麻豆精品一区二区| 高清av一区二区| 99视频国产精品| 色素色在线综合| 欧美日韩三级在线| 这里只有精品99re| 精品福利在线导航| 国产欧美日韩亚州综合| 国产精品久久久久国产精品日日| 国产精品国产三级国产三级人妇| 亚洲人快播电影网| 亚洲成av人片在www色猫咪| 琪琪一区二区三区| 国内精品久久久久影院色| 国产成a人无v码亚洲福利| 91免费观看在线| 这里只有精品视频在线观看| 欧美精品一区二| 亚洲欧美视频在线观看视频| 亚洲国产欧美另类丝袜| 久久99精品网久久| 99免费精品在线观看| 欧美日韩精品系列| 久久精品视频在线看| 亚洲蜜臀av乱码久久精品蜜桃| 图片区日韩欧美亚洲| 国产精品羞羞答答xxdd| 在线亚洲人成电影网站色www| 欧美一区二区三区免费在线看| 久久综合色天天久久综合图片| 亚洲欧洲性图库| 日韩va亚洲va欧美va久久| 成人国产精品免费观看视频| 欧美性做爰猛烈叫床潮| www激情久久| 亚洲乱码国产乱码精品精98午夜| 麻豆精品一二三| 91丨九色丨国产丨porny| 日韩欧美一区二区久久婷婷| 中文字幕亚洲在| 精品一区二区三区不卡| 欧美视频精品在线观看| 久久精品一区四区| 首页国产欧美久久| 91免费版pro下载短视频| 精品久久国产老人久久综合| 亚洲精品伦理在线| 国产一区二区在线电影| 欧美久久久久久蜜桃| 自拍偷拍亚洲激情| 国产呦萝稀缺另类资源| 在线电影欧美成精品| 日韩一区欧美小说| 国产成人亚洲综合a∨婷婷| 欧美一区三区二区| 亚洲电影在线免费观看| 波多野结衣精品在线| 亚洲精品一区二区三区四区高清| 亚洲一区二区三区免费视频| 国产iv一区二区三区| 精品卡一卡二卡三卡四在线| 亚洲成a天堂v人片| 欧美性猛交xxxx乱大交退制版| 最近日韩中文字幕| 成人免费看的视频| 日本一区二区视频在线观看| 国产伦精品一区二区三区免费迷| 欧美精品乱码久久久久久| 亚洲国产毛片aaaaa无费看| 99久久er热在这里只有精品15 | 97精品久久久久中文字幕| 久久久久久久精| 国产精品一区二区免费不卡 | 久久se这里有精品| 欧美一区二区免费视频| 蜜乳av一区二区三区| 日韩亚洲欧美在线观看|