Free Games Forum
Free Games Games Forums Music Forums TV Forums

  Free Games Forum Home FORUM
HOME
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN
Rules & FAQ RULES / FAQ
REPORT SPAM

Free Games Forum: Game Technology: Visual Basic / VB:
VB Sendkeys

 

 


clan-aimx
Newbie

May 28, 2006, 3:50 AM

Post #1 of 3 (366 views)
Shortcut
VB Sendkeys Can't Post

Can someone please show me all the keys name in the sendkey command {key} And belive me i have search on google. But hasnt find what i wanted.
I have found much on http://www.developerfusion.co.uk/show/57/ but i i didnt find what i needed.

I need the windows key.



BillyBoB6969
Newbie

May 28, 2006, 6:13 AM

Post #2 of 3 (359 views)
Shortcut
Re: [clan-aimx] VB Sendkeys [In reply to] Can't Post

SendKeys works like this

Code
SendKeys "Whatever you want" 
SendKeys "{Enter}"

Maybe that helps some prob not tho
i dont really get whats confusing about that


brownhead
Member

May 30, 2006, 5:35 PM

Post #3 of 3 (348 views)
Shortcut
Re: [clan-aimx] VB Sendkeys [In reply to] Can't Post

Its confusing because hitting the windows key with sendkeys is impossible (I think...). You have to actually simulate a keystroke to do that. Which SendKeys does not do... buuutt.. with a certain API everything can be solved :)

Code
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 Command1_Click()
keybd_event &H5B, 0, 0, 0 'Press down the left windows key
keybd_event &H5B, 0, &H2, 0 'Release it
End Sub



-------------------------------------


[img]http://i25.photobucket.com/albums/c51/70k0/BHU.png[/img]

 
 
 


Search for (options) Web Design by Web Ideas - Page loaded in: 0.10 s on (CGI/1.1)