There are several items on my desktop such as files and software, I want to know the coordinate of these items or just the coordinate of their centre only in the script so that I can use them later in my script. Is it possible to do that?
Asked
Active
Viewed 199 times
1
-
do you want to start scripts which have a shortcut on your desktop? – Xenobiologist Dec 30 '19 at 19:37
-
No, I want a script through which I can get the coordinates of desktop shortcuts – Himani Varshney Jan 01 '20 at 16:32
-
And what is next? Let's say, you got alle the infos from the desktop icons. – Xenobiologist Jan 01 '20 at 16:42
-
I just want to get the mouse position, so that insisted of using "program" command I can directly run the software or open the files if desktop shortcut is already there. – Himani Varshney Jan 01 '20 at 16:57
-
If you just want to run programs from your desktop, then you do not need the coordinates of those icons. That is why, I asked what you really want to do. – Xenobiologist Jan 02 '20 at 08:23
-
Actually, it's my curiosity too, whether it is possible or not? – Himani Varshney Jan 03 '20 at 15:22
-
1See here : https://superuser.com/questions/625854/where-does-windows-store-icon-positions – Xenobiologist Jan 03 '20 at 15:49
-
https://www.codeproject.com/Articles/639486/Save-and-Restore-Icon-Positions-on-Desktop – Xenobiologist Jan 04 '20 at 06:14
-
@HimaniVarshney possible? Yes, it always was. Useful? No - you don't need the shortcut to know if a program is installed, to execute it, to send context menu verbs to it. If you want to check whether a shortcut exists, you can check that through code or by checking the registry. – Panagiotis Kanavos Jan 09 '20 at 13:32