@newuserkantu is correct. Technically it works (UI Vision does not block it), but it is not recommend as the XClick/XType control the global mouse cursor and the keyboard.
See also Solution for "can only run macros when its not recording or playing" - #2 by TechSupport