VoxCommando

New Features and Feature Requests => Feature Requests => Topic started by: PegLegTV on December 29, 2015, 02:41:14 AM

Title: new action called goto
Post by: PegLegTV 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:

(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fi1296.photobucket.com%2Falbums%2Fag18%2Fpeglegtv%2FGOTO_zpscjz06cdi.png&hash=b266e1c7f9cba9a83e38a16902b8928546157f6f)
(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  ;)


Title: Re: new action called goto
Post by: Haddood 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
Title: Re: new action called goto
Post by: jitterjames 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.
Title: Re: new action called goto
Post by: jitterjames 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