Is there a way to check if user is on computer/active?

Is a mouse click the only way to accomplish whatever it is you're trying to do? Again, it would help me and anyone else interested in helping you if you followed the advice described in Tip: How Do I Get The Best Answer in the Shortest Time? and shared your entire workflow/current macro with us.