Jump to content
Sign in to follow this  
Hybrixe

How to use the hotkey function in VB?

Recommended Posts

Hybrixe

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
Richard Robertson

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.