UI Co-ordinates issue : Citrix remote desktop to RDP

We are trying to automate a scenario which requires opening up citrix remote desktop and then opening up a remote desktop and perform actions. Since this involves multiple remote desktops, the UI co-ordinates keep changing and the script fails. Did anyone face this and solve it?