Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » API

Post new topic   Reply to topic
Press Enter!!
View previous topic :: View next topic  
Author Message
sprog90
Newbie


Joined: 21 Jul 2005
Posts: 20

PostPosted: Apr 21st, 2006 10:46 AM    Post subject: Press Enter!! Reply with quote

I need some way to click the Enter once but not me, one program, maybe, at a time, for an other application! Is there any way to do it? i need this for tommorow! Please help!!!!!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
smart
Newbie


Joined: 19 Apr 2006
Posts: 6

PostPosted: Apr 22nd, 2006 02:27 AM    Post subject: Reply with quote

You can use the timer.
_________________
Nothing To Lose!
Back to top
View user's profile Send private message
sprog90
Newbie


Joined: 21 Jul 2005
Posts: 20

PostPosted: Apr 22nd, 2006 08:57 AM    Post subject: Reply with quote

Thanx for your anser but i know about the timer. I finally find a APi that do that. The keyb_event.
I put here the code if anyone some time need it:
Code:
Const VK_ENTER = 13
Const KEYEVENTF_EXTENDEDKEY = &H1
Const KEYEVENTF_KEYUP = &H2
Private Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)

Private Sub Form_Load()
    Me.Hide
End Sub

Private Sub Timer1_Timer()
    If Time = "12:00:00 pm" Then
        keybd_event VK_ENTER, 0, 0, 0  ' press Enter
        keybd_event VK_ENTER, 0, KEYEVENTF_KEYUP, 0  ' release Enter
        Timer1.Enabled = False
    End If
End Sub
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » API All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic