HISE Logo Forum
    • Categories
    • Register
    • Login

    BackgroundTask.setFinishedCallback() || How to get status....

    Scheduled Pinned Locked Moved Unsolved Scripting
    1 Posts 1 Posters 15 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ChazroxC
      Chazrox
      last edited by Chazrox

      How do I get the isFinished or wasCancelled state for scripting?
      You can see what I did. Although my function seems to complete (do what I expect), I dont see either of the first two Console.print()'s or the one inside my isFinished() check.

      obviously I stole this little part from docs. Everything else seems to be working fine, I just get no action out of this part for some reason....

      // We can use the finish callback to show / hide some elements
      bgFindTokens.setFinishCallback(function(isFinished, wasCancelled) ////////////////////////
      {
      	bgFindTokens.setProgress(0.0);
      
      	Console.print("Finished: " + isFinished);
      	Console.print("Cancelled: " + wasCancelled);
      	
         /// if (isFinished)//  <-----I tried this too...
      	if (bgFindTokens.isFinished)
      	{
      		Console.print("We FINISHED");		
      	}
      });
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      20

      Online

      2.0k

      Users

      12.8k

      Topics

      111.1k

      Posts