Blinking Button - Forum

Forum Navigation
You need to log in to create posts and topics.

Blinking Button

I need a blinking button. I can use a GIF in a button but it's not animated. I can add an action to an AnimatedGif but then I don't have the full features of a button. Any suggestions? And while I'm on the subject, blinking text?

Hi @pauljonestindall,
You can use a Timer object and add this code:

GetObjectInfo "PushButton1" "Visible" "[visible]"
If "[visible]" "=" "TRUE"
  HideObject "PushButton1" "None" "0"
Else
  ShowObject "PushButton1" "None" "0"
EndIf

Adjust the speed of blinking with the Timer Interval value.
Let me know if this works for you.
Regards.

proforma.guyot has reacted to this post.
proforma.guyot

Hello @luishp,
I think with some modifications I can certainly use this.

My intention is, after a particular event occurs, to have a red flashing button as a reminder to the user before they continue with other tasks. So, I can have two of the same button on top of each other, one regular and the other red that "flashes" so the button merely appears to flash.

Thanks,
Paul

luishp and proforma.guyot have reacted to this post.
luishpproforma.guyot

Or you can like this

While "This condition" "=" "This condition"
SetObjectFill "PushButton1" "Red" "Solid" "False"
Delay "200"
SetObjectFill "PushButton1" "Maroon" "Solid" "False"
Delay "200"
EndWhile

proforma.guyot has reacted to this post.
proforma.guyot

mishem,
That works very well. Thanks.