PDA

View Full Version : Keystroke



Teqskater
02-23-2010, 10:40 AM
Hello people,

Im currently working in a bar and im a DJ there. I want to create an application that responds to keypresses even when the program itself isnt in focus. So that when i am in the music computer and search for a song it will be displayed in my application. To show people wich music is playing at the moment.

Any ideas on how to achieve this. Don't worry im an advanced user in AMS.

mystica
02-23-2010, 12:21 PM
Try this example by Scriptonite:
http://www.indigorose.com/forums/attachment.php?attachmentid=9292&d=1266519220

It use the WinApi plugin to capture mouse-clicks outside of the application area, and returns the variable to ams.
You can see the original thread here:
http://www.indigorose.com/forums/showthread.php?p=150875#post150875

Teqskater
02-25-2010, 05:04 PM
That may come in handy too but what i realy meant was keyboard buttons and not mouse buttons. Thanks anyway

Scriptonite
02-25-2010, 05:23 PM
Are you using two monitors, one for you and one for them to see?

Worm
02-26-2010, 08:00 AM
Use: System.IsKeyDown

mystica
02-26-2010, 09:44 AM
Use: System.IsKeyDown

Huh! After all this time, I never even knew that function was there. :wow
Now, if only I can get myself to remember that I now know it's there.

Imagine Programming
02-26-2010, 11:19 AM
Huh! After all this time, I never even knew that function was there. :wow
Now, if only I can get myself to remember that I now know it's there.

Write it down, maybe on your girlfriend's/wife's forehead! 0.o

RizlaUK
02-26-2010, 11:54 AM
iv got a memory like a elephant, or is that a fish, i dunno, cant remember! :p

Teqskater
02-26-2010, 04:55 PM
Hahaha Funny people :yes

@Scriptonite:
Yes i use 2 monitors.
One is where the DJ software runs on and the other one is just for ads and that stuff...

Oh darn.....why....always when you think..Yup...i know everything about AMS there is some actions that you never new existed.....maybe because there is an on_key event.... and guys...why did my girlfriend slapped me in the face when i wanted to write a note about this action on her head :wow. Thanks for ruining a relationship Imagine Programming! Man she's crazy XD.

Now THANK YOU VERY MUCH for your time everyone...now i can go further..:cool