.signal_emit but the button is not "clicked"

Hi,

With:

@button.signal_emit(:clicked)

We can simulate a button is clicked.

But, is there a way to also simulate an on_hover event on that button?

With my mouse, when I hover over the button it changes the highlighted
colour.

I want to do and change the button highlighted colour for 2 seconds when
I do .signal_emit but I am not sure how …

Marc H. wrote in post #1020209:

Hi,

With:

@button.signal_emit(:clicked)

We can simulate a button is clicked.

But, is there a way to also simulate an on_hover event on that button?

With my mouse, when I hover over the button it changes the highlighted
colour.

I want to do and change the button highlighted colour for 2 seconds when
I do .signal_emit but I am not sure how …

I’m not sure what you want. If I understand well, you want to mimic the
on_hover visual from your code ?