Problem getting the cursor coordinates in the format of two variables x,y or [x, y]

Hello.

I am currently learning uipath. I have a problem getting the cursor coordinates in the format of two variables x,y or [x, y].
This should be done either

  1. in the “Assign” action-assign a value to a variable, x=…, y=…
  2. in the “Embed code.NET”, but then explain how to run it.
  3. in the “Invoke code” action, it executes the code VB.NET or C#, but then you need to explain how to run it.

I’m tired of searching the Internet.
Sections:
Programming / Application programming

Hi,

You can do that using following commands

System.Windows.Forms.Cursor.Position.X
System.Windows.Forms.Cursor.Position.Y

1 Like

))) Thank you very much! It’s so simple! Wonderful! You are a cyber wizard!!!

1 Like