Assign value to selected_text variable, and locate it again later / paste over

maybe this helps: How to use variable in "Find/Search Text on Screen & Move Mouse"?

Best select the „search in focused window option“ to prevent false matches