Hybrixe Posted February 10, 2011 Share Posted February 10, 2011 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! Link to comment Share on other sites More sharing options...
Richard Robertson Posted February 10, 2011 Share Posted February 10, 2011 Declare Auto Function RegisterHotKey Lib "user32.dll" (Byval handle As IntPtr, ByVal id As Integer, ByVal fsModifier As UInt32, ByVal vk As UInt32) As BooleanYou 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now