Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

need method for getting a macro that is running and stopping it

EricClark's profile on WallpaperFusion.com
In the macro editor or the gui editor it would be adviseable to have a method that will support the stopping of a macro that is already running.

Example, you have a timer set for 15 minutes, and with the name "Timer 15 1" if the timer is no longer needed it would be nice to stop it by getting a script or function of

BFS.voicebot.getrunningMacros("Timer 15 1").stop();

or BFS.voicebot.stopMacro("Timer 15 1");

this should not be that hard to implement.
Jan 21, 2018  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
There's a global stop command, though it seems it's missing from the docs:

BFS.VoiceBot.StopMacros()

However! There's also a bug with it, and it seems that the macros try to stop but don't fully stop, so I've added that to our list to fix up for the next version :)
Jan 23, 2018  • #2
EricClark's profile on WallpaperFusion.com
It would be better to get the macro by name,
or better yet to make the macro function class, or the method have a name matching the macro so that you have an insertion point

I understand how classes and methods are laid out, however the run() methods commonly found would better be served with a reference point of some kind and have the ability to be accessed from another macro script.

the purpose of this is if you have a loop function or a long delay function such as a timer or reminder if you will then the ability to stop that timer would be handy

I supposed the workaround for the delay could be the time functions built into c# and using an example of this is found here https://www.dotnetperls.com/timer

for implementation into the current software and for simplicitys sake it could be wise to better add the stop macro ("macro name") for sake of argument in case someone else wants to run this.

Voicebot is supposed to be automation software and it works great and I have been recommending it to people all of the time in my gaming communities and they are using it and also downloading my custom scripts.

I am also interested in the BFS.System.getCurrentTime() function that would be nice to have in order to work with that for setting timers, or reading back to the user trough STT the current system time.
Jan 23, 2018  • #3
EricClark's profile on WallpaperFusion.com
Quote:
There's a global stop command, though it seems it's missing from the docs:

BFS.VoiceBot.StopMacros()

However! There's also a bug with it, and it seems that the macros try to stop but don't fully stop, so I've added that to our list to fix up for the next version :)


And there is no function built into or recognized by the editor for this method
Jan 23, 2018  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
It doesn't show up in the auto-complete because it's currently an undocumented function. It will be added to the auto-complete for the next version.

I've added a feature request to our list for a BFS.VoiceBot.StopMacro("Name") function as well.

Regarding getting the date and time, you can use the C# .NET function "DateTime.Now" for that, like so:

Code

Jan 23, 2018 (modified Jan 23, 2018)  • #5
EricClark's profile on WallpaperFusion.com
Keith could you PM me some info for discord or skype?

as a fellow developer I think that we could communicate pretty well together
Jan 23, 2018 (modified Jan 23, 2018)  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I'm actually not a developer, just a support rep with some very minor experience in C# coding. Customer interactions need to be documented, so I need to keep my communications to email or forums posts. If you'd prefer email over the forums, you can get me at support@binaryfortress.com :)
Jan 23, 2018  • #7
Was this helpful?  Login to Vote(-)  Login to Vote(-)