Sign in to follow this  
Followers 0
fatih

Visual Basic 6.0 App Crach Using Sleep Command [HELP]

1 post in this topic

Hello,

I made an app with visual basic 6.0 but i have a problem.

Source Code:

Dim Komut As New AutoItX3Lib.AutoItX3

Private Sub Form_Load()
Komut.Send ("{UP}")
Komut.Sleep (1000)
Komut.Send ("{UP}")
Komut.Sleep (7000) ' THE BUG IS HERE  :o 
Komut.Send ("{LEFT}")
Komut.Sleep (1000)
Komut.Send ("2")
Komut.Sleep (300)
Komut.Send ("1")
Komut.Sleep (2000)
Komut.Send ("{RIGHT}")
Komut.Sleep (6000)
Komut.Send ("2")
Komut.Sleep (300)
Komut.Send ("2")
Komut.Sleep (300)
Komut.Send ("{DOWN}")
Komut.Sleep (1000)
Komut.Send ("{DOWN}")
Komut.Sleep (9000)
End Sub

If use "Komut.Sleep (7000)" function then app will crash.

Please Help.

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0