Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Community
Technology
Technology Q&A
Visual Basic Help (Hotkeys)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Heaplink" data-source="post: 229451" data-attributes="member: 8966"><p>Yes, this exactly what it does.</p><p></p><p>The first line of code declares a function using the user32 lib and alias' the GetAsyncKeyState (which is the method, where the magic happens).</p><p></p><p>The other lines just checks if those key states is TRUE and if they are, they run the code. This is a very simple example, and could be improved further - but just so you got an idea of it.</p><p></p><p>Note: I am a (very) old VB/C# programmer about 4-5 years ago and have since moved on to other things.</p></blockquote><p></p>
[QUOTE="Heaplink, post: 229451, member: 8966"] Yes, this exactly what it does. The first line of code declares a function using the user32 lib and alias' the GetAsyncKeyState (which is the method, where the magic happens). The other lines just checks if those key states is TRUE and if they are, they run the code. This is a very simple example, and could be improved further - but just so you got an idea of it. Note: I am a (very) old VB/C# programmer about 4-5 years ago and have since moved on to other things. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Community
Technology
Technology Q&A
Visual Basic Help (Hotkeys)
Top