User Tag List

Results 1 to 4 of 4

Thread: Sense Capslock press doesn't seem to work if Rich Edit has focus. Any workaround?

  1. #1
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Sense Capslock press doesn't seem to work if Rich Edit has focus. Any workaround?

    I've come to find out that using the Control X to determine the Capslock keypress doesn't work a Rich Edit has the current focus. Can anyone think of a workaround to this? I'm in a pickle!

  2. #2
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    I've been trying all the input-based extensions I'm aware of and nothing seems to work. This is a total bummer! I've also been exploring a way to test if caps lock is active or inactive, rather than the button being pressed, but have come short. Any help is GREATLY appreciated. This is a tricky issue in my program.

  3. #3
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Using the Control X I created a workaround but I'm trying to figure something out. As it stands, this is what I have:

    -Control X Caps Lock is on: Turn on Control X Flag 1

    -Control X Caps Lock is off: Turn off Control X Flag 1

    -Control X Flag 1 is on
    +Only one action when event loops
    =ACTION A

    -Control X Flag 1 is off
    +Only one action when event loops
    =ACTION B

    As it stands, ACTION B is triggered instantly at the start of the frame, since caps lock is off. After that, whenever caps lock is toggled the actions play out accordingly. I'd like the first action to only trigger when the key is pressed but that isn't possible due to the way Rich Edit objects are programmed. If I could find a work around to not initiate, or hide, that initial triggering of the event at the start of the frame, things would be perfect. Putting time limits and things dont work either because once the time limit is reached, the action then triggers anyway, not needing the button to actually be pressed.

    If anyone has a trick to get this working, I'd be in your debt!

  4. #4
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    A solution has been found! Thought I'd post it in case anyone else needs this info in the future.

    To have an action trigger upon press of the Caps Lock key while the Rich Edit object has the focus, without the action triggering at the start of the frame, create the following two events using Control X and a List object:

    -( Control X ): Caps Lock is on
    +Only one action when event loops
    =(List Object) Add line "Caps On"
    =[OTHER ACTION YOU NEED WHEN CAPS IS ON]

    -( Control X ): Caps Lock is off
    +List Line Text$( "List", List Nb Lines( "List" ))
    +Only one action when event loops
    =(List Object) Add line "Caps Off"
    =[OTHER ACTION YOU NEED WHEN CAPS LOCK IS OFF]

Similar Threads

  1. [Bug]Edit Box doesn't work correctly in SubApp
    By Jacob in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th October 2009, 01:40 AM
  2. Edit Object vs. Rich Edit
    By Jaffob in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 4th June 2008, 01:42 PM
  3. Extracting a line from Rich Edit Object or Edit Ob
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 8th March 2008, 05:16 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
  •