Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Loop later in script delays TextColor (...)

Featured Replies

I am using:

TextColor ( blah::woof ; RGB ( 0 ; 500 ; 0 ) )

Refresh Window []

... which works, but when I add a loop later in the script -- setting a global variable to the CurrentTime, loop, exit loop if the variable + 1 < Get (CurrentTime) -- the formatting doesn't show up except for a flash, as if the loop is executing before the color is drawn to screen from the earlier step.

I have a TextFormatRemove ( blah::woof ) as the last script step, which works.

Ken

Edited by Guest
I edited out the (pure) RGB (...) reference, which was incorrect.

Set Field [ blah::woof; RGB ( 500 ; 0 ; 0 ) ]

Shouldn't this be

Set Field [ blah::woof; textcolor( blah::woof ; RGB ( 500 ; 0 ; 0 ) ) ]

Didn't

Pause [ duration: 1 sec ]

work ?

  • Author

Vaughan, you are correct. I edited my post, but not fast enough. Thanks.

  • Author

Daniele, 'pause' works perfectly, thank you for pointing out what should have been obvious to me.

OTOH, I'm still curious why the screen wasn't painted before the loop executed. I'm familiar with this phenomenon, going back to the HyperTalk and Lingo days.

Thanks, Ken

I've seen cases where even a Pause(0 sec) did the trick.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.