Ask a Question

I need to get coordinates(X,Y) of the icon in the PC desktop dynamically. How can I do it?

SOLVED
ApplePen
Community Leader

I need to get coordinates(X,Y) of the icon in the PC desktop dynamically. How can I do it?

Hi,

 

The icon of the desktop is not a object. The method(object.ScreenLeft)  cannot be use.

I cannot calculate the coordinates of the icon in the desktop.How can I do ?

Actual problem has been attached in the file c.

 

Looking forward for your reply.
Thank you.
---Steven Wang
 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
baxatob
Community Hero

Re: I need to get coordinates(X,Y) of the icon in the PC desktop dynamically. How can I do it?

Hi,

 

What is the purpose of getting the desktop icon coordinates?

 

If you really need it, you can try to get wIconBounds property:

 

desktop.png

View solution in original post

3 REPLIES 3
baxatob
Community Hero

Re: I need to get coordinates(X,Y) of the icon in the PC desktop dynamically. How can I do it?

Hi,

 

What is the purpose of getting the desktop icon coordinates?

 

If you really need it, you can try to get wIconBounds property:

 

desktop.png

View solution in original post

ApplePen
Community Leader

Re: I need to get coordinates(X,Y) of the icon in the PC desktop dynamically. How can I do it?

@baxatob 

I have got the coordinates with this property.

Thank you very much.

SanderK
Occasional Contributor

Re: I need to get coordinates(X,Y) of the icon in the PC desktop dynamically. How can I do it?

Do you want to use the desktop shortcut to launch an application within your test? In that case I'd suggest adding the application to the Tested Apps so you can launch it from there.

cancel
Showing results for 
Search instead for 
Did you mean: