Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can I get coordinates of desktop icon currently selected?
How do I figure out the coordinates of the currently selected icon on the desktop? I know how to get the coordinates of my mouse, but if my mouse has moved to an unrelated location, then I am unable use those coordinates as a proxy...

Copy      Help
int desktop=win("Program Manager" "Progman")
if(desktop!=win) ret ;;not active
Acc a=acc("Desktop" "LIST" desktop "SysListView32" "" 0x1001)
a.Focus(1) ;;finds focused icon. To find selected icons, use Selection instead.
;out a.Name

int x y w h
a.Location(x y w h)
x+w/2; y+h/2
mou x y

Forum Jump:

Users browsing this thread: 1 Guest(s)