Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get file data on middle click
#1
i try to get the file selected in windows explorer without
using right click (context menu).

with Accessible objects i can get the selected file when x and y are
activated.

but it doesn't work when i use Cursor coordinates relative to window.

when i change int l to 392 instead of 393 i get an object not found error.

Code:
Copy      Help
int hwnd=win("" "ExploreWClass")
POINT p
xm p hwnd
int l = 393
Acc a=acc("" "LISTITEM" "PowerPro_web" "SysListView32" "" 0x1100 l 407)
str name=a.Name
str value=a.Value
out name

out "Cursor coordinates relative to window ''Quick'' are:[]x=%i y=%i" p.x p.y

how can i use mouse position there ?
pi


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)