VERSION 5.00
Begin VB.Form DialogYesNo 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Virtual Hypnotist"
   ClientHeight    =   1380
   ClientLeft      =   5070
   ClientTop       =   4065
   ClientWidth     =   4440
   ControlBox      =   0   'False
   Icon            =   "DialogYesNo.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1380
   ScaleWidth      =   4440
   ShowInTaskbar   =   0   'False
   Visible         =   0   'False
   Begin VB.CommandButton CancelButton 
      Caption         =   "No"
      Height          =   375
      Left            =   2400
      TabIndex        =   1
      Top             =   840
      Width           =   1215
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "Yes"
      Height          =   375
      Left            =   840
      TabIndex        =   0
      Top             =   840
      Width           =   1215
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   120
      TabIndex        =   2
      Top             =   120
      Width           =   4215
   End
End
Attribute VB_Name = "DialogYesNo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Virtual Hypnotist
'©2003-2008 FollowTheWatch Software
'http://vhypno.sourceforge.net
'http://sourceforge.net/projects/vhypno
'Contact - followthewatch55@yahoo.com

'This program is free software; you can redistribute it and/or
'modify it under the terms of the GNU General Public License
'as published by the Free Software Foundation; either version 2
'of the License, or (at your option) any later version.

'This program is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'GNU General Public License for more details.

'You should have received a copy of the GNU General Public License
'along with this program; if not, write to the Free Software
'Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

Option Explicit

Private Sub CancelButton_Click()
YesNoResult = "No"
DialogYesNo.Visible = False
End Sub

Private Sub CancelButton_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 27 Then Quit = True: DialogYesNo.Hide
If KeyCode = vbKeyF10 Then Call ConsoleShow
If LCase$(KeyCheck) = LCase$(GetKeyName(KeyCode)) Then KeyPressed = True
End Sub

Private Sub CancelButton_KeyUp(KeyCode As Integer, Shift As Integer)
If LCase$(KeyCheck) = LCase$(GetKeyName(KeyCode)) Then KeyPressed = False
End Sub

Private Sub Form_Activate()
Call SetWindowPos(Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, flags)
DialogYesNo.Left = (ScreenX / 2) - (DialogYesNo.Width / 2)
DialogYesNo.top = (ScreenY / 2) - (DialogYesNo.Height / 2)
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 27 Then Quit = True: DialogYesNo.Hide
If KeyCode = vbKeyF10 Then Call ConsoleShow
If LCase$(KeyCheck) = LCase$(GetKeyName(KeyCode)) Then KeyPressed = True
End Sub

Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If LCase$(KeyCheck) = LCase$(GetKeyName(KeyCode)) Then KeyPressed = False
End Sub

Private Sub OKButton_Click()
YesNoResult = "Yes"
DialogYesNo.Visible = False
End Sub

Private Sub OKButton_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 27 Then Quit = True: DialogYesNo.Hide
If KeyCode = vbKeyF10 Then Call ConsoleShow
If LCase$(KeyCheck) = LCase$(GetKeyName(KeyCode)) Then KeyPressed = True
End Sub

Private Sub OKButton_KeyUp(KeyCode As Integer, Shift As Integer)
If LCase$(KeyCheck) = LCase$(GetKeyName(KeyCode)) Then KeyPressed = False
End Sub
