Jump to content


Photo

Keycodedll: Keycodes For Anything On Any Keyboard!


  • This topic is locked This topic is locked
23 replies to this topic

#1 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 03 March 2007 - 07:50 PM

<span style='font-size:14pt;line-height:100%'>KeyCodeDLL And GEX</span>

Hello,

Why should you use this?
You can use this to get keycodes that GameMaker can't. Such as "!@#$%^&*()_{}[]:;'"<>,.?/~`". These character's keycodes vary on every keyboard, so this DLL works on every computer, no matter what keyboard they are using.

I made this DLL for my RPG and I figured some other people might find a use for it. You do not have to credit me in your game, but it would be great if you replied saying that you are using it.

Basically the DLL takes a character, and returns the keycode for it. I have included all necessary scripts, including scripts for finding out if a key is down, pressed, or released that take into account whether shift, alt, or control needs to be pressed.

-KeyCodeDLL Includes DLL, Scripts, Library, And README
-KeyCodeGEX Includes GEX with DLL, Scripts, Library, and Help

Download

Thanks,
HomebrewPC

Link is broken, contact me to reopen ~ paul23

Mirror links provided byRazor - Not the original owner of the project:
dll version
GEX version



Edited by paul23, 02 July 2011 - 10:58 AM.
link

  • 1

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#2 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 03 March 2007 - 10:38 PM

Hey, nice. Could you make a DLL for the other way around? I give an ASCII decimal and it returns the correct character. Wasn't it that the constants were precoded and didn't match all keys/keyboard in GM?
  • 0

#3 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 04 March 2007 - 05:35 PM

Hey, nice. Could you make a DLL for the other way around? I give an ASCII decimal and it returns the correct character. Wasn't it that the constants were precoded and didn't match all keys/keyboard in GM?

<{POST_SNAPBACK}>


The keys that GM has precoded work on all keyboards, anything that they don't have precoded is different for every keyboard.

I was trying to do the ASCII to character, but I failed. Ill do some more research and add that.

Thanks,
HomebrewPC
  • 0

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#4 fire_soul453

fire_soul453

    aarons video games

  • GMC Member
  • 542 posts

Posted 10 April 2007 - 02:55 PM

I have no use for it but i tested it and it worked.
Your good at DLLs so keep making them
  • 0
Game maker Top sites
I'm sick of paypal. From now on I'm not buying indie games unless I can use something else...

#5 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 10 April 2007 - 04:55 PM

I have no use for it but i tested it and it worked.
Your good at DLLs so keep making them

<{POST_SNAPBACK}>


Thank you, did you test AStarDLL?

Thanks,
HomebrewPC
  • 0

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#6 Ansgar

Ansgar

    OM Studios

  • New Member
  • 333 posts

Posted 10 April 2007 - 07:12 PM

Great DLL, could you just for convenience please add a help file to the extension? It doesn't have to be an actual help file, you could just use the ReadMe file from the other version. It's just easier and more comfortable to have access to the help file from within GM.
  • 0

#7 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 10 April 2007 - 07:27 PM

Sure, I'll add that in a couple of minutes. In the process of uploading new AStarDLL.

HomebrewPC

EDIT: Uploaded new GEX with Readme included as Help file.

Edited by homebrewpc, 10 April 2007 - 07:53 PM.

  • 0

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#8 Chris Neilson

Chris Neilson

    GMC Member

  • GMC Member
  • 726 posts
  • Version:GM8.1

Posted 12 April 2007 - 09:38 PM

link is too long, can't download.
  • 0

#9 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 12 April 2007 - 09:39 PM

Which one? And by too long, you mean its taking to long?

HomebrewPC
  • 0

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#10 Chris Neilson

Chris Neilson

    GMC Member

  • GMC Member
  • 726 posts
  • Version:GM8.1

Posted 12 April 2007 - 09:42 PM

too slow.
  • 0

#11 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 12 April 2007 - 09:43 PM

If you're talking about KeyCodeDLL (not GEX) then I just reuploaded it to WikiUpload. Is WikiUpload the one that is taking to long for you?

HomebrewPC
  • 0

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#12 Chris Neilson

Chris Neilson

    GMC Member

  • GMC Member
  • 726 posts
  • Version:GM8.1

Posted 12 April 2007 - 09:44 PM

yes
  • 0

#13 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 12 April 2007 - 09:48 PM

Re-uploaded to a different site for you.

HomebrewPC

Edited by homebrewpc, 12 April 2007 - 09:51 PM.

  • 0

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#14 Obiki_San

Obiki_San

    GMC Member

  • New Member
  • 136 posts

Posted 18 April 2007 - 07:24 AM

This is pretty uncommon, but it's exactly what I needed! I haven't been at the forum for a while and I've been working on a tedious task of converting ord() strings into Key Codes using a chart I found. Little did I know this was here :).

EDIT:
aww i just realize this doesn't quite return the value I'm looking for. Thanks anyway.

Edited by Obiki_San, 18 April 2007 - 03:49 PM.

  • 0

#15 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 18 April 2007 - 08:23 PM

What values do you need it to return? It does return different values depending on if ctrl, alt, or shift needs to be pressed. But you can just use my pressed/released/down functions and they automatically decipher and check those.

Thanks,
HomebrewPC
  • 0

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#16 Obiki_San

Obiki_San

    GMC Member

  • New Member
  • 136 posts

Posted 22 April 2007 - 05:57 AM

Ack! Sorry it takes me a while to reply. Work is a pain in the you-know-what.

Anywayz, i decided to link you to the URL with the values I were trying get.
Keycode Table
My project consist of using GM to configure M.U.G.E.N's controls and possibly use the same controls in GM. These are the current values that I needed GM to read (Copied from M.U.G.E.N's config file)
; P1 Key config (configurable from M.U.G.E.N)
[P1 Keys]
Jump   = 18;e  key
Crouch = 32;d
Left   = 31;s
Right  = 33;f
A      = 36;j
B      = 37;k
C      = 38;l
X      = 22;u
Y      = 23;i
Z      = 24;o
Start  = 43;enter

MUGEN is a Fighting Game engine btw and I've succeeded in merging both GM and MUGEN in a way. This configuration is the only thing that ruins the project. This is why I thought this dll is what I was looking for. Hopefully there is still a way :)
  • 0

#17 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 22 April 2007 - 05:36 PM

You don't need this DLL dude, for enter just use vk_enter and for the letter keys just use ord("letter").

HomebrewPC
  • 0

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#18 Obiki_San

Obiki_San

    GMC Member

  • New Member
  • 136 posts

Posted 23 April 2007 - 04:56 AM

As I've stated ord() doesn't return the value I'm looking for. As a matter of fact, it returns an ASCII value. This is my mistake because I failed mention I wanted Scan Codes. But it's still quite obvious that vk_enter and ord("letter") doesn't match the same value that is in the MUGEN config file I've copied.

There is a better example at this site to be more clear of what I mean. The first link wasn't the right chart. Though this is a bit similar, but the Scan codes are different.
Key Codes and Scan Codes Table

Just to sum up my dilemma - M.U.G.E.N reads Scan codes and GM reads ASCII. I'm using GM to run MUGEN in my project which both has different control configurations. I can't edit the MUGEN engine of course so I want GM to be able to read MUGEN's configurations instead. So when I have GM be able to edit the controls, it'll also be usable in MUGEN and vise versa.

But let me stop rambling because this now has nothing to do with your DLL. Just wanted to clear up and answer your question of what value I needed it to return.

Edited by Obiki_San, 23 April 2007 - 05:02 AM.

  • 0

#19 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 04 May 2007 - 10:11 PM

Woah, sorry, totally just noticed that you replied back. Yeah, I don't know if my DLL can help you with that. Good luck though. What exactly is MUGEN...because I still don't get exactly what you are doing.

HomebrewPC
  • 0

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#20 sticksfirmly

sticksfirmly

    GMC Member

  • New Member
  • 34 posts

Posted 18 July 2007 - 12:40 AM

Can anyone download the Keycode DLL?

Everytime I try, I get to Homebrew's page and there's nothing there.
  • 0

#21 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 18 July 2007 - 01:38 AM

If you scroll down there is nothing with a link?

Try www.angelfire.com/indie/homebrewpc ... I think its still there.

HomebrewPC
  • 0

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#22 A.R.T.games

A.R.T.games

    GMC Member

  • GMC Member
  • 396 posts
  • Version:GM:Studio

Posted 04 October 2010 - 11:15 PM

Can you fix the link?
  • 0
I don't see the glass as half full or empty. Just equal.

#23 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2478 posts
  • Version:GM7

Posted 05 October 2010 - 05:13 AM

http://www.angelfire...die/homebrewpc/
  • 0

Posted Image
Game Widgets
- Your pure-GML solution to API DLLs. Featured in Markup Magazine!

My Portfolio - All my good games and resources
Moved away from the forum - e-mail me if you need quick contact (hi_146@hotmail.com).


#24 Orswen

Orswen

    GMC Member

  • New Member
  • 103 posts

Posted 19 June 2011 - 06:19 AM

please fix the link, thank you
  • 0
I want to learn advance GML!!!

Currently making a Tales-series like RPG game...(A big project)
Currently progress: 1%
The storyline has come to Chapter 3.