VERSION 5.00
Begin VB.Form DialogText 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Enter Text"
   ClientHeight    =   1410
   ClientLeft      =   5085
   ClientTop       =   4050
   ClientWidth     =   4425
   ControlBox      =   0   'False
   Icon            =   "DialogText.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1410
   ScaleWidth      =   4425
   ShowInTaskbar   =   0   'False
   Visible         =   0   'False
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   4095
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "OK"
      Default         =   -1  'True
      Height          =   375
      Left            =   1680
      TabIndex        =   1
      Top             =   960
      Width           =   1215
   End
End
Attribute VB_Name = "DialogText"
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 3 30, Boston, MA  02111-1307, USA.

Option Explicit

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

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 27 Then Quit = True: DialogText.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()
TextResult = Text1.Text
DialogText.Visible = False
End Sub

Private Sub OKButton_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 27 Then Quit = True: DialogText.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

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

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