How to trigger a button click from script

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By WilliamD47

Hello I want to make a button for mobile use and I would like it to press a UI key inside the script. Is there a way to do this as it would be annoying to have to recode the movement. Thanks

:bust_in_silhouette: Reply From: larrxi
button.emit_signal("pressed")