Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 9 of 9

Thread: Keystroke

  1. #1
    Join Date
    Apr 2007
    Posts
    165

    Keystroke

    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.

  2. #2
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546
    Try this example by Scriptonite:
    http://www.indigorose.com/forums/att...2&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/sho...875#post150875

  3. #3
    Join Date
    Apr 2007
    Posts
    165
    That may come in handy too but what i realy meant was keyboard buttons and not mouse buttons. Thanks anyway

  4. #4
    Join Date
    Oct 2009
    Location
    127.0.0.1
    Posts
    279
    Are you using two monitors, one for you and one for them to see?
    There are 10 types of people in the world: those who understand binary, and those who don't.

  5. #5
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Use: System.IsKeyDown

  6. #6
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546
    Quote Originally Posted by Worm View Post
    Use: System.IsKeyDown
    Huh! After all this time, I never even knew that function was there.
    Now, if only I can get myself to remember that I now know it's there.

  7. #7
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by mystica View Post
    Huh! After all this time, I never even knew that function was there.
    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
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  8. #8
    Join Date
    May 2006
    Posts
    5,380
    iv got a memory like a elephant, or is that a fish, i dunno, cant remember!
    Open your eyes to Narcissism, Don't let her destroy your life!!

  9. #9
    Join Date
    Apr 2007
    Posts
    165
    Hahaha Funny people

    @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 . 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..
    Last edited by Teqskater; 02-26-2010 at 03:57 PM. Reason: added a litle joke....please don't tell...shhhh

Posting Permissions

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