> 
> Actuallly you _should_ be able to get the listbox contents with the 
> dialog-plugin. 

----------------------------------

Funny, I had the same idea and wrote the following script which works 
in tests with several listboxes, including debug window.  You do it 
with an undocumented win.sendmessagestr (which treats the last 
variable as a buffer which better be big enough, else PowerPro will 
likely die; this script makes sure).

  Attach the script to hot key and activate with mouse over list box 
of interest.

local LB_GETCOUNT = 0x18B
local LB_GETTEXT = 0x189
local LB_GETTEXTLEN = 0xF18A

local hwnd=win.handlefrompoint(xmouse, ymouse)
if (Not hwnd)
quit

local nItems=win.sendmessage(hwnd, LB_GETCOUNT,0,0)  // count 
clip.clear
for (local i=0; i<nItems; i++)
   local len = win.sendmessage(hwnd, LB_GETTEXTLEN,i,0) //size of ith 
   local line = repeat(" ", len)  // make a buffer of len chars
   win.sendmessagestr(hwnd, LB_GETTEXT, i, line)        
   clip.append(line)
   clip.append("\r\n")
endfor






Reply via email to