User Tag List

Results 1 to 6 of 6

Thread: Listen for keystrokes even when no focus?

  1. #1
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Listen for keystrokes even when no focus?

    2 threads in a short space of time, sorry ^^;

    I'm making a kind of pedometer app that tracks the number of keyboard button presses made rather than steps. But, is it possible to get MMF2 to continue to apply the "Upon Pressing Any Key" condition when the application doesn't have focus? Or is there any kind of work-around for it?

    Regards
    ~Raylax

  2. #2
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Listen for keystrokes even when no focus?

    The Key Object should work.

  3. #3
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Listen for keystrokes even when no focus?

    Oh, cool

    Is it possible with that extension to listen for any key press, rather than specific ones? I don't fancy having to make a 226-condition event to replicate "Presses Any Key" x)

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Listen for keystrokes even when no focus?

    There isn't an option to get "any" keypress. You will most likely have to make an event for the most common buttons on a keyboard. The Control X extention can do this, but will not work when the window is out of focus.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  5. #5
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Listen for keystrokes even when no focus?

    Just enter GetLastKeyVal( "Key Object" ) as the key value and it should respond to any key.

  6. #6
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Listen for keystrokes even when no focus?

    Oh, thanks guys. It works now

Similar Threads

  1. Listen for OnPause events?
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 16th November 2012, 11:14 PM
  2. Listen to music while playing
    By K1kk0z90 in forum iOS Export Module Version 2.0
    Replies: 10
    Last Post: 21st February 2012, 06:23 PM
  3. Is there a way for MMF to automate keystrokes?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 22nd May 2010, 03:38 AM
  4. Sub-Application transfer of keystrokes
    By wizkidweb in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 4th August 2009, 09:07 PM
  5. generate fake keystrokes?
    By Chokito in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th January 2009, 08:26 PM

Posting Permissions

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