|
-
Nov 21st, 2000, 03:32 PM
#1
Thread Starter
Fanatic Member
I'm trying to send the following keys from a command botton:
tab + alt in order to call all minimized APPs but it does not work.
What can be wrong in this simplest instruction?
sendkeys "%{tab}"
because it does nothing at all.
Do you know any other way?
-
Nov 21st, 2000, 06:31 PM
#2
Addicted Member
I think it works
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Const VK_TAB = &H9
Private Const VK_MENU = &H12
Private Const KEYEVENTF_KEYUP = &H2
Private Sub Command1_Click()
'Alt Down
keybd_event VK_MENU, 0, 0, 0
'Tab Pressed
keybd_event VK_TAB, 1, 0, 0
'Alt Up
keybd_event VK_MENU, 0, KEYEVENTF_KEYUP, 0
End Sub
-
Nov 21st, 2000, 11:37 PM
#3
Hyperactive Member
isn't the symbol for "alt" ^ ??
-
Nov 22nd, 2000, 10:25 AM
#4
Addicted Member
You may be right but I checked the code, it works fine.
you can omit the alt up to see what you want to choose.
-
Nov 22nd, 2000, 02:32 PM
#5
Thread Starter
Fanatic Member
ok
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|