Jump to content


Photo

Led Dll


  • Please log in to reply
32 replies to this topic

#1 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 07 December 2005 - 09:47 PM

LED DLL

Information
This DLL can simulate pushing the caps, num, and scroll lock buttons. It can also get which are pressed or not.

Download
http://www.64digits....eath/LEDDLL.zip
  • 0
Posted ImagePosted Image

#2 coolsmile

coolsmile

    Programmer

  • New Member
  • 1346 posts

Posted 07 December 2005 - 10:19 PM

These are always fun to play with <_<
  • 0

#3 kakemot

kakemot

    GMC Member

  • New Member
  • 461 posts

Posted 07 December 2005 - 10:23 PM

I can create a light show! Thanks!
  • 0

#4 IsmAvatar

IsmAvatar

    Good Samaritan

  • GMC Member
  • 2411 posts
  • Version:GM8

Posted 07 December 2005 - 10:59 PM

you forgot a return value for led_get.

What language did you make this in?
  • 0
Posted Image LateralGM is an IDE for editing GM files on Linux, Mac, and Windows.
We also house the GM File Format Documentation and other projects of that nature.
IsmAvatar.com | Examples | Scripts | Particles | DLLs | Credit Me
Email | Registered

#5 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 07 December 2005 - 11:24 PM

C++, ma'am.
  • 0
Posted ImagePosted Image

#6 JJProductions

JJProductions

    Agamma Corpus

  • New Member
  • 2211 posts

Posted 07 December 2005 - 11:26 PM

I do believe you made this before, or is this a remake in C++?
  • 0

#7 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 07 December 2005 - 11:27 PM

This would be a remake.
  • 0
Posted ImagePosted Image

#8 aldre

aldre

    GMC Member

  • New Member
  • 85 posts

Posted 07 December 2005 - 11:31 PM

He He... I can make a dancing keyboard.
  • 0

#9 coolsmile

coolsmile

    Programmer

  • New Member
  • 1346 posts

Posted 08 December 2005 - 12:30 AM

just add it, it not hard to write
  • 0

#10 ChIkEn AtE mY dOnUtS

ChIkEn AtE mY dOnUtS

    Pwner of barcodes

  • GMC Member
  • 2410 posts

Posted 08 December 2005 - 01:02 AM

I am bored!!!

now i made it even easier >.<
  • 0
I've moved away from GM. If you want to contact me, feel free to email ryanwebdev@gmail.com.

Thanks,
Ryan.

#11 IsmAvatar

IsmAvatar

    Good Samaritan

  • GMC Member
  • 2411 posts
  • Version:GM8

Posted 08 December 2005 - 01:05 AM

You made another one in another language?

I'm trying to figure out how to achieve it in pascal, but the example(s) I found add(s) a bit of asm and my compiler can't handle asm.
  • 0
Posted Image LateralGM is an IDE for editing GM files on Linux, Mac, and Windows.
We also house the GM File Format Documentation and other projects of that nature.
IsmAvatar.com | Examples | Scripts | Particles | DLLs | Credit Me
Email | Registered

#12 aldre

aldre

    GMC Member

  • New Member
  • 85 posts

Posted 08 December 2005 - 01:57 PM

With the lib do I still need the dll?
  • 0

#13 ChIkEn AtE mY dOnUtS

ChIkEn AtE mY dOnUtS

    Pwner of barcodes

  • GMC Member
  • 2410 posts

Posted 08 December 2005 - 02:43 PM

yes, DLL required
  • 0
I've moved away from GM. If you want to contact me, feel free to email ryanwebdev@gmail.com.

Thanks,
Ryan.

#14 P-entertainment

P-entertainment

    GMC Member

  • GMC Member
  • 1429 posts

Posted 08 December 2005 - 05:47 PM

this was very cool
  • 0

#15 Eletron

Eletron

    789 Programmer

  • New Member
  • 282 posts

Posted 08 December 2005 - 08:28 PM

Where do you get these scripts, Roach?

On Topic:
Not bad. Can't say the simulation lights are that useful, but who doesn't need a little fun sometimes? Keep it up! :D
  • 0

#16 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 08 December 2005 - 09:21 PM

Where do you get these scripts, Roach?

<{POST_SNAPBACK}>

I write them myself.
  • 0
Posted ImagePosted Image

#17 gamehawk

gamehawk

    Creative Thinking

  • New Member
  • 339 posts

Posted 08 December 2005 - 09:50 PM

Yeah he's a SUUUPPPERR B) and good coder!

Edited by gamehawk, 08 December 2005 - 09:50 PM.

  • 0

#18 IsmAvatar

IsmAvatar

    Good Samaritan

  • GMC Member
  • 2411 posts
  • Version:GM8

Posted 10 December 2005 - 05:03 AM

It's not simulation - it really toggles each of the locks. So if you need to, for example, turn Scroll Lock on/off for your game, you can do that. Or, you can have a dependancy in your game based on whether the Num Lock is on or off. Like say you use the keypad for movement, and numlock for running.

Thanks @ Roach for clueing me in on the source. My dll is smaller than yours now :skull:

btw, I'm a Led Head too.
  • 0
Posted Image LateralGM is an IDE for editing GM files on Linux, Mac, and Windows.
We also house the GM File Format Documentation and other projects of that nature.
IsmAvatar.com | Examples | Scripts | Particles | DLLs | Credit Me
Email | Registered

#19 bugeye999

bugeye999

    GMC Member

  • New Member
  • 260 posts

Posted 11 December 2005 - 02:10 AM

This is fun to play with, but I can't really think of a use. Here is a funny piece of code I made to go with this. It goes in a step event, or a keyboard down event:

var cur;
cur=ceil(random(3))
led_push(cur)

VERY simple but still fun to watch your keyboard blink.
  • 0

#20 IsmAvatar

IsmAvatar

    Good Samaritan

  • GMC Member
  • 2411 posts
  • Version:GM8

Posted 12 December 2005 - 02:44 AM

Like I said before...
Ok, The game Morrowind is a great example.
You use WASD for movement. You use Shift to run. But holding down the shift key can get annoying after a while, so they added the Caps Lock key, which basically makes it so you're running all the time without having to hold down the shift key.

You can do the same thing with the numpad too. 8456 or 8426 can be your movement keys, and NumLock can be your movement-lock key, so you're always walking.


Start out with Caps Lock and Scroll Lock off. NumLock doesn't matter.
Create event:
cur = 2
alarm = 5

Alarm0 event:
led_push(cur)
cur -= 1
if cur = 0 { cur = 3 }
led_push(cur)

Edited by IsmAvatar, 12 December 2005 - 02:48 AM.

  • 0
Posted Image LateralGM is an IDE for editing GM files on Linux, Mac, and Windows.
We also house the GM File Format Documentation and other projects of that nature.
IsmAvatar.com | Examples | Scripts | Particles | DLLs | Credit Me
Email | Registered

#21 Tahnok

Tahnok

    Friendly Madman

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

Posted 12 December 2005 - 08:17 AM

I know of a use for it, though rather specialty. If someone ever wanted to make an arcade game for use in a MAME cab it could be of great use. You see, many of the old games (mainly from atari) would flash the player 1 and player 2 start buttons once coins had been inserted. This has been reproduced in emulators by flashing num and caps lock (which are normally wired to lights inside player start buttons). You could take advantage of this function using this DLL.
  • 0

gmc_signature.png


#22 coolboy222

coolboy222

    GMC Member

  • New Member
  • 8 posts

Posted 12 December 2005 - 12:33 PM

Nice! I can see the use of it. ::lmao::

and to IsmAvatar:

Like I said before...
Ok, The game Morrowind is a great example.
You use WASD for movement. You use Shift to run. But holding down the shift key can get annoying after a while, so they added the Caps Lock key, which basically makes it so you're running all the time without having to hold down the shift key.

You can do the same thing with the numpad too. 8456 or 8426 can be your movement keys, and NumLock can be your movement-lock key, so you're always walking.


Your'e right! I'm going to use it in my own game! :)

look at coolboy222.nl.tt
And for the Dutch people: Brainquest. Learn English quickly! (Dutch game) B)
  • 0

#23 killer991011

killer991011

    GMC Member

  • GMC Member
  • 597 posts
  • Version:Unknown

Posted 08 April 2007 - 11:27 AM

Ah this is awesome ::lmao:: I used it as a prank program to always have all the led's off :D
  • 0

#24 clam_is_good_29

clam_is_good_29

    GMC Member

  • New Member
  • 44 posts

Posted 13 April 2007 - 02:50 AM

I'm guessing this just wraps API functions, anyway it's handy, though you can toggle numlock with GML: keyboard_get_numlock(), keyboard_set_numlock(on). Fun for everyone!
  • 0

#25 royboyjoytoy2

royboyjoytoy2

    GMC Member

  • New Member
  • 308 posts

Posted 13 April 2007 - 05:32 AM

This is fun to play with, but I can't really think of a use. Here is a funny piece of code I made to go with this. It goes in a step event, or a keyboard down event:

var cur;
cur=ceil(random(3))
led_push(cur)

VERY simple but still fun to watch your keyboard blink.

<{POST_SNAPBACK}>

I made a code that does a different light show depending on your mouse_x!
  • 0
"The world will soon see the most successful game ever."

#26 theleaningcandle

theleaningcandle

    Dancing Apple Games

  • New Member
  • 373 posts

Posted 14 April 2007 - 06:31 PM

Toggling the status of num lock, caps lock and scroll lock is possible without a DLL. Just use keyboard_key_press(keycode goes here) followed by keyboard_key_release(keycode goes here). The keycodes should be as follows:
Num Lock = 144
Caps Lock = 20
Scroll Lock = 145

EDIT: Checking if they are on or off is a different story though...

Edited by theleaningcandle, 14 April 2007 - 06:31 PM.

  • 0

#27 Newly Discovered

Newly Discovered

    Harmonious Genius

  • GMC Member
  • 2475 posts
  • Version:GM8

Posted 16 April 2007 - 12:21 AM

PRETtY FuN WHEn yOu sET THE rEleasE enTER TO JUSt entEr TheN rUn THe Game...
You HOLd EnteR anD Click OutSIDe oF tHe winDoW. yOuR lOcKS wiLl ContInUE to Flash, tuRniNg oN and oFF.

*reSuLt Of mY TYpiNg*

niCE Dll
  • 0

poof_sig.png


#28 a2h

a2h

    GMC Member

  • New Member
  • 382 posts

Posted 16 April 2007 - 10:48 PM

Toggling the status of num lock, caps lock and scroll lock is possible without a DLL. Just use keyboard_key_press(keycode goes here) followed by keyboard_key_release(keycode goes here). The keycodes should be as follows:
Num Lock = 144
Caps Lock = 20
Scroll Lock = 145

EDIT: Checking if they are on or off is a different story though...


I made an app that used keyboard_key_press and keyboard_key_release but I quickly dumped it.

The only good thing the DLL adds to the mix is detecting if the lights are on or off...

Edited by rctxtreme, 16 April 2007 - 10:48 PM.

  • 0

ion.developments does not exist, ignore my user title

#29 sp-games

sp-games

    GMC Member

  • New Member
  • 17 posts

Posted 05 June 2007 - 12:53 PM

It's a very great dll, I'll use it in a 'lock-capslock' program
(so you dont press it by accident)
  • 0
Director of Lunarsoft.

#30 Kanelbullen

Kanelbullen

    GMC Member

  • New Member
  • 147 posts

Posted 06 August 2007 - 08:57 AM

BUMP

But i need this the links are not working...
  • 0

#31 DarkFlame

DarkFlame

    GMB Member...wtf?

  • GMC Member
  • 2167 posts

Posted 06 August 2007 - 09:12 AM

i just mentioned my macro on another topic...but to exit it i found it best (since the game loses focus) to use the num-lock function and so even though out of focus it will still exit at the press of a key

so im sure (not completely) this is possible without a .dll
  • 0

#32 Recreate

Recreate

    Furry

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

Posted 04 June 2009 - 08:50 PM

Thanks!
I was looking for this for a project of mine which involved an large scale remote control car and a psp, Its a pretty long story.
  • 0

If the post that you are reading was created prior to 2011. For the safety of the general public, It is not to be regarded under any circumstances.
Please don't ask me to join your group at anything.


#33 Yambam

Yambam

    GMC Member

  • GMC Member
  • 647 posts
  • Version:GM8

Posted 06 June 2009 - 03:42 PM

Hey thIs IS a GrEAT Dll MaYbE YOu WoulD thinK tHis iS RaRe TexT BUt ItS My lIGHtSHOW
  • 0