Sign in to follow this  
Followers 0
Hybrixe

How to use the hotkey function in VB?

2 posts in this topic

I want to know how you can use the hotkeyset() function in VB. I don't want to know it using AutoITX but just normal VB. I use VB 2010. Thanks!

Share this post


Link to post
Share on other sites



Declare Auto Function RegisterHotKey Lib "user32.dll" (Byval handle As IntPtr, ByVal id As Integer, ByVal fsModifier As UInt32, ByVal vk As UInt32) As Boolean

You will also need a window. You watch the window messages for the hotkey message and that lets you know it was pressed.

Keep in mind this is not as simple as AutoIt makes it out to be.

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