[VB6]Video Game Button Configuration Form.-VBForums
Results 1 to 3 of 3

Thread: [VB6]Video Game Button Configuration Form.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Cool [VB6]Video Game Button Configuration Form.

    Want the people who play your game/program to be able to set what keys they can use? Use this Button Configuration form in your project, and module, for the set keys! You want to put in your main Form1_Load() what all the variables by default would equal, or at the beginning have them set them. In the code you would write, you would just the the variable in the (). Like if you want the a button to set off something, u would write:
    Code:
    If GetAsyncKeyState(A) <> 0 then
    ' do whatever
    End If
    its that easy! there is the possible of all the letter keys, number pad numbers, home row numbers, space bar, enter, shift, tab, and the up, down, left and right arrow keys. I wanted to leave the others open in case of someone wanted the keys for menu items. Well, here it is!

    Updated:
    Made it to where on load, it shows the ones that are default. Helps make it look nicer. =D
    Attached Files Attached Files
    Last edited by Gamemaster1494; Jul 9th, 2010 at 01:10 AM.
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  2. #2
    Super Moderator Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,335

    Re: Keyboard Keys Button Configuration form and moduel for the GetAsyncKeyState funct

    Moved To Games Programming Codebank
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: Keyboard Keys Button Configuration form and moduel for the GetAsyncKeyState funct

    Thank you for moving.
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.