Information générale
Titre:
VB 5.0 Keyboard Output Command
I am writing a VB app. to log a user into a database.
With this app. I can simulate all of the keystrokes that are needed to login.
While doing this I am running into 2 problems.
FIRST:
Whenever I use the " {enter} " or " ~ " command with this program the output
comes up with another symbol that I did not enter. This symbol looks like a
" : U " (put the : on top of the U and rotate the : 90*) This is messing up my app.
Does anyone know how to get rid of it? Or what is is?
Second:
In the same app I am having a problem with timeing. I need this program to wait
after a line for 1 sec. Does anyone know how to do that. This is 1 way communication
so I can not send data back to the VB app. Here is the code in this app.
___________________________________________
Option Explicit
___________________________________________
Private Sub cmdClear_Click()
txtUserArea.Text = ""
End Sub
___________________________________________
Private Sub cmdExit_Click()
End
End Sub
___________________________________________
Private Sub cmdSend_Click()
AppActivate "UNIX"
SendKeys txtUserArea.Text, True
End Sub
___________________________________________
Private Sub Form_Load()
Dim ID
ID = Shell("dejawint.exe", 1)
End Sub
__________________________________________
In the Text box called txtUserArea.txt I input my keystrokes.
Between keystrokes I need a pause line or something.
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement