 |
| View previous topic :: View next topic |
| Author |
Message |
sprog90 Newbie

Joined: 21 Jul 2005 Posts: 20
|
Posted: Apr 21st, 2006 10:46 AM Post subject: Press Enter!! |
|
|
| 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 |
|
smart Newbie
Joined: 19 Apr 2006 Posts: 6
|
Posted: Apr 22nd, 2006 02:27 AM Post subject: |
|
|
You can use the timer. _________________ Nothing To Lose! |
|
| Back to top |
|
sprog90 Newbie

Joined: 21 Jul 2005 Posts: 20
|
Posted: Apr 22nd, 2006 08:57 AM Post subject: |
|
|
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 |
|
|
|
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
|
|