home *** CD-ROM | disk | FTP | other *** search
/ POWERdrive for you 1997 October / PDR_1097.ISO / share / win / spiele / bl_hole / form1.txt < prev    next >
Text File  |  1993-09-14  |  1KB  |  41 lines

  1.  
  2.  
  3. Sub Form_Load ()
  4.     Title = "╠▐╫»╕╬░┘é╔é┬éóé─é╠Æìê╙"
  5.     Msg = "╠▐╫»╕╬░┘é⌐éτö▓é»Åoé╖é╔é═üAMOUSEé≡└▐╠▐┘╕╪»╕é╡é─ë║é│éó."
  6.     DgDef = MB_OK + MB_ICONEXCLAMATION
  7.     Res = MsgBox(Msg, DgDef, Title)
  8. End Sub
  9.  
  10. Sub Form_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  11.     Image1.Enabled = True
  12. End Sub
  13.  
  14. Sub Image1_DblClick ()
  15.     Form2.Show
  16.     Image1.Enabled = False
  17.     Timer1.Enabled = False
  18.     M.pX = (Form2.Left + (Form2.Width / 2)) / Screen.TwipsPerPixelX
  19.     M.pY = (Form2.Top + (Form2.Height / 2)) / Screen.TwipsPerPixelY
  20.     Test = SetCursorPos(M.pX, M.pY)
  21.     For i = 0 To 200
  22.         M.pX = M.pX - 1
  23.         M.pY = M.pY - 1
  24.         Test = SetCursorPos(M.pX, M.pY)
  25.     Next i
  26. End Sub
  27.  
  28. Sub Image1_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  29.     Timer1.Enabled = True
  30.     M.pX = (Form1.Left + (Form1.Width / 2)) / Screen.TwipsPerPixelX
  31.     M.pY = (Form1.Top + (Form1.Height / 2)) / Screen.TwipsPerPixelY
  32.     Test = SetCursorPos(M.pX, M.pY)
  33. End Sub
  34.  
  35. Sub Timer1_Timer ()
  36.     M.pX = (Form1.Left + (Form1.Width / 2)) / Screen.TwipsPerPixelX
  37.     M.pY = (Form1.Top + (Form1.Height / 2)) / Screen.TwipsPerPixelY
  38.     Test = SetCursorPos(M.pX, M.pY)
  39. End Sub
  40.  
  41.