assigned plugin shortcuts bug?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 12/02/2008 at 14:51, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   10.111 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hi.

    I have a command plugin with several shortcuts assigned.
    The principle behind that is the shortcuts are assigned in cinema's command manager so the plugin is triggered by
    the '<' key and combinations like shift+<, ctrl+<, shift+ctrl+<, alt+<, shift+alt+< and shift+ctrl+alt+<. Then the plugin code decides what to do by checking the qualifiers.
    I am checking the qualifiers like this:

    > BaseContainer res; \>     GetInputEvent(BFM_INPUT_KEYBOARD, res);      \>      int qualifier= res.GetLong(BFM_INPUT_QUALIFIER, 0); \>      add_mode= qualifier & QSHIFT; \>      render_mode= qualifier & QCTRL; \>      deform_mode= qualifier & QALT; \>      if(deform_mode && !render_mode) editor_mode = FALSE; \>      if(add_mode && render_mode && deform_mode) { fix_mode = TRUE; add_mode = FALSE; editor_mode = FALSE; render_mode = FALSE; deform_mode = FALSE; } \>

    This works fine, all 7 shortcuts are assigned and working - at least in the beginning.
    SOMETIMES the following bug appears:
    When pressing shift+alt+< the plugin won't get triggered anymore, but only sometimes. It still works with the button and the qualifiers then. After using it with button and qualifiers several times the hotkey works again. I'm quite sure, this is not a problem of my code but maybe i'm missing something simple here...
    Any opinions on this? Thank you very much!

    Yakuza



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/02/2008 at 03:48, xxxxxxxx wrote:

    sorry I can not confirm this.

    cheers,
    Matthias



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 14/02/2008 at 21:39, xxxxxxxx wrote:

    Hello,

    i found out what the error is. It's neither Cinema, nor my code, SHIFT+ALT is just the WINDOW$-Shortcut to switch keyboard layout between ENGLISH and GERMAN :D
    Now this is really buggin me...

    cheers

    Yakuza


Log in to reply