The Daily Click ::. Forums ::. Klik Coding Help ::. Displaying Please Wait during Fastloop
 

Post Reply  Post Oekaki 
 

Posted By Message

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
27th September, 2010 at 16:12:22 -

I have a fastloop which is creating and editing a bunch of Files and i need to display something which lets the user know that work is being done and the app hasn't actually crashed.

I have tried to add a Display string command before the loop is started but this doesn't appear to work as it only displays after the loop is complete.

Anyone got any tips?

 
n/a

nim



Registered
  17/05/2002
Points
  7233
27th September, 2010 at 16:31:24 -

Have you checked the event order to make sure that displaying the message definitely comes before calling the fast loop? Remember that your "on loop [whatever]" event's placement is irrelevant; it's where the fast loop is called that matters.

If it's all in the right place then I can only imagine that it's some dodgy MMF logic wizardry that's messing it up. Try just putting them in separate events if all else fails.

 
//

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
27th September, 2010 at 16:49:45 -

Cheers Nim. Just checked and for some reason moving it up one place (it was already set to display before the loop triggered) seemed to work.

 
n/a

Rick Shaw



Registered
  30/04/2008
Points
  158
28th September, 2010 at 00:01:46 -


Originally Posted by nim
MMF logic wizardry





 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
11th October, 2010 at 11:58:18 -

Well i have just realised that this does not work STILL.

Here is the example code:

https://sites.google.com/site/mmf2projectstuff/importr.mfa

and here is the xml file you need to import into it:

https://sites.google.com/site/mmf2projectstuff/Exporting.xml

If anyone can get the following text to display whilst the Fastloop is running i will be VERY grateful.

Generating Classes.
Please Wait.

Thank You all very very very very much

why don't the links display as links??

Edited by lembi2001

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
11th October, 2010 at 12:31:54 -

Dude first of all u r loop in the example is too fast too see anything so i added *5000 so you can see the string during the loop.

http://www.mediafire.com/?gvae6md943a6cq7

 
Code me a sausage!

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
11th October, 2010 at 12:45:33 -

Can't download the file at the moment, but couldn't you just display the string on the first loop step?

Also, the files aren't links because of the https://

Edited by OMC

 

  		
  		

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
11th October, 2010 at 13:49:55 -

The fast loop is set to run based on half the number of lines in the list object. It is set like this as the contents of the list are variable.

@OMC i have tried to make the string reappear at various times before the loop actually starts with no joy.

I hope someone can help me with this

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
11th October, 2010 at 17:08:50 -

Dude: http://www.mediafire.com/?gvae6md943a6cq7
didnt u see the post?...

 
Code me a sausage!

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
11th October, 2010 at 17:15:25 -

I saw the post but you completely missed my response to you. You have made the loop run a static number of times instead of the number i chose. The reason for this number is that the list object can contain a varying number of lines based upon the contents of the xml file. if for some reason the xml file contained over 10000 items then the loop you have specified would not iterate through all the items in the list.

The loop does the following:

On Loop add line (counter value(number)) to File (Loop Index+1) add 2 to counter.

this achieves the following:

Line1
Line2
Line3
Line4
Line5
Line6
Line7
Line1
Line8
Line1
Line9
Line4

Line1 is added to File Line2
Line3 is added to File Line4
etc...

due to the number of lines in the line object i don't want the user to think the application has crashed so the the text needs to be dissplayed whilst the loop is running.

I think it is because i am using so many window controls that the string is not displayed but i don't know.


 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
11th October, 2010 at 17:17:28 -

I didn't say before the loop started. Have you tried displaying the string on the first loop step?

For example: on loop "cakeisyummy" + loopindex("cakeisyummy") = 0, display string. (Not sure of the syntax, I'm on my phone.)

 

  		
  		

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
11th October, 2010 at 17:21:18 -

okay, not tried that method will try it now though

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
11th October, 2010 at 17:37:16 -

Dude i have set up the loop to *5000 just so it takes a bit longer, cause it would finish the loop too fast to see it, it was just for demonstration purpose so you can actually see that it is working. You can have the loop set up at whatever custom number you want. I don't get your point... did u actually looked what i have posted!

LOOK! : http://www.mediafire.com/?gvae6md943a6cq7

Edited by Don Luciano

 
Code me a sausage!

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
11th October, 2010 at 18:05:32 -

Use the static Text object, it can be updated in the middle of a loop.

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
11th October, 2010 at 20:41:02 -

Hi Sorry Don,

I think i misunderstood what you did. I have edited your code to match my requirements and it still works yet i don't know what i have done different. Ieven copied your events one by one with no joy!!

Oh well. it's working now.

Thanks and Sorry again.

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
12th October, 2010 at 14:21:06 -

No problem, my first post might have been a little misleading.

The point is to keep the event (pre start loop event)with reaper the string below the start loop event, otherwise it don't refresh the screen before it starts the loop.

 
Code me a sausage!
   

Post Reply



 



Advertisement

Worth A Click