Author Topic: new action called goto  (Read 1569 times)

0 Members and 1 Guest are viewing this topic.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
new action called goto
« on: December 29, 2015, 02:41:14 AM »
I'm working on a new command that could really use a logic block inside a loop block, but according to the wiki it doesn't look like that can work at this time :(

so I was thinking a "Goto" action might work

so that way we could use the Goto action in (or after) a Logic Block and have it either go back to the top of that logic block or to an action above that Logic block ( may have to use a blank action before the logic block depending on the command)

Example:


(only one of the two VC.Goto actions would be used)


in the picture I numbered the Actions and the one logic block to show where the VC.Goto would  go to,

paramater break down of  VC.Goto

1st = logic or action number in the current command

2nd = minimum amounts to Goto (may not be needed)

3rd = maximum times before continuing on to the next action

if further explanation is needed let me know  ;)



Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: new action called goto
« Reply #1 on: December 29, 2015, 04:11:35 AM »
I like that ... Few months ago I thought of something similar but was for a different reason... Building subroutines... So it would require goto or gosub and return 8)...
I was even thinking how sexy it would be to hack google blocky to edit VC XML ... But heals, too many dreams and so little time to hunt them  :o :o
When Voice command gets tough, use hand gestures

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: new action called goto
« Reply #2 on: December 29, 2015, 06:02:54 PM »
Thanks for the suggestions.  I will keep this in mind for the future.  I'm not sure what I will do or when but may implement something similar to this at some point.

In the meantime Pegleg, if you want to let me know what you are trying to do maybe I can help find a clean solution using the current VC toolbox.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: new action called goto
« Reply #3 on: December 30, 2015, 01:33:56 PM »
Here is a split thread discussing a problem and solution that can hopefully be found without using a Goto action.

http://voxcommando.com/forum/index.php?topic=2438.new#new