Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: only run a command after 2 commands?

  1. #1
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    330

    only run a command after 2 commands?

    Hello

    I'm using RideRunner with iGOBMW2009 Skin, but with IBuscommunicatoRR Plugin.

    Is it possible to run a command after 2 commands?

    example:
    HOLD = STARTFFWD
    IF HOLD and RELEASE = STOPFFWD
    IF PRES and RELEASE = NEXT

    regards

  2. #2
    Low Bitrate
    Join Date
    Feb 2011
    Posts
    94
    if HOLD is a var that copy the original command in my opinion you could add a check-var on it (because if i understand you whant if a button pressed then do NEXT else do STOPFFWD )
    anyway this if i remember correctly can be done in a premade way (if i remember right)

  3. #3
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    330
    at the moment i have these commands in exectbl.ini. the "BUT_NEXT_..." come from IBuscommunicatoRR

    "BUT_NEXT_PRES","STARTFFWD"
    "BUT_NEXT_HOLD","FFWD"
    "BUT_NEXT_REL","STOPFFWD"
    /"BUT_NEXT_REL","NEXT"

    Now if i get the Commands behind after: "BUT_NEXT_PRES" "BUT_NEXT_REL" it should do "NEXT"
    When the "FFWD" starts, it must cancel the NEXT Command, if i do "NEXT" with "BUT_NEXT_REL"

    How can i work with check-var?
    I know its very difficult to realise.

  4. #4
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    330
    Now, i have added these lines to EXECTBL.ini

    "BUT_NEXT_PRES","STARTFFWD"
    "BUT_NEXT_HOLD","FFWD"

    "STARTFFWD","SETVAR;FASTR;NEXT"
    "FFWD","SETVAR;FASTR;STOPFFWD"

    "BUT_NEXT_REL","$FASTL$"

    But RR does not seek.

    PS. Why must every Post of me check by admin?

  5. #5
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,282
    Quote Originally Posted by harryberlin View Post
    Now, i have added these lines to EXECTBL.ini

    "BUT_NEXT_PRES","STARTFFWD"
    "BUT_NEXT_HOLD","FFWD"

    "STARTFFWD","SETVAR;FASTR;NEXT"
    "FFWD","SETVAR;FASTR;STOPFFWD"

    "BUT_NEXT_REL","$FASTL$"

    But RR does not seek.

    PS. Why must every Post of me check by admin?

    Skin:
    Code:
    Bxx,xxx,xxx,xxx,xxx,"STOPFFWD",@SETVAR;GOFFWD;1||FASTFFWD@
    ExecTBL:
    Code:
    "FASTFFWD","IFVAR;GOFFWD=1;FFWD||FASTFFWD<<"
    "STOPFFWD","IFVAR;GOFFWD=1;SETVAR;GOFFWD;0<<NEXT"
    this is taken from skincommads. code not tested but will give ou some ideas.
    another way is to use a timer. using IFVAR or BYVAR commands.
    i havent used RR code in some time but i think is a starting point for you.
    Last edited by EL CAMINO; 09-24-2012 at 01:43 PM.

  6. #6
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    330
    THX. I try it at home on wednessday.

    there is a small misstake in the commandline "BUT_NEXT_REL","$FASTL$". "BUT_NEXT_REL","$FASTR$"

    For Example, i have one button, wich send following codes:

    by short push: PRESS -> RELEASE
    on hold: PRESS -> HOLD -> HOLD -> HOLD -> ... (every Hold after one second)-> RELEASE
    Because the Hold starts after one second, i'd like to start FFWD jet on PRESS.
    If i get PRESS and RELEASE fast enough behind after -> do NEXT.

    my commands in the last post are working, but RR irgnore the STARTFFWD and FFWD. is this effect normal? only my commands run.
    Last edited by harryberlin; 09-24-2012 at 05:28 PM.

  7. #7
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    330
    Hello

    It's not working
    because FASTFFWD loops and CPU-Usage over 100% -> RR freeze.

  8. #8
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    330
    this workaround is now in use. i don't know an other method.

    /SEEKING
    "ONSKINSTART","SETVAR;GOFFWD;0||SETVAR;GOFRWD; 0"
    "BUT_NEXT_PRES",""
    "BUT_NEXT_HOLD","IFVAR;GOFFWD=1;FFWD<<SETVAR;GOFFW D;1||STARTFFWD"
    "BUT_NEXT_REL","IFVAR;GOFFWD=1;SETVAR;GOFFWD;0||ST OPFFWD<<NEXT"

    "BUT_PREV_PRES",""
    "BUT_PREV_HOLD","IFVAR;GOFRWD=1;FRWD<<SETVAR;GOFRW D;1||STARTFRWD"
    "BUT_PREV_REL","IFVAR;GOFRWD=1;SETVAR;GOFRWD;0||ST OPFRWD<<PREV2"

  9. #9
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,581
    Ok, I see what you are doing now.


    I would have thought the IBuscommunicatoRR Plugin would handle that internally, I know at least one of the other iBus ones does

  10. #10
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    330
    OK, it's very difficult. i know there is an option, that ibuscomm wait of a telegram before resume his work.

    the problem is, RR should set an var by running ffwd. if i do "FFWD","SETVAR;GOFFWD;1", RR cancel his own FFWD-command -> no sseking.

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 11-07-2011, 04:24 AM
  2. LIST Command: Riderunner or skin command?
    By blazinlow in forum Road Runner
    Replies: 1
    Last Post: 10-23-2011, 01:28 PM
  3. Replies: 15
    Last Post: 10-21-2009, 08:09 PM
  4. Replies: 4
    Last Post: 12-14-2008, 06:55 PM
  5. 2 commands at once....
    By TheUni in forum Road Runner
    Replies: 10
    Last Post: 09-07-2005, 10:37 AM

Bookmarks

Posting Permissions

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