Hi.
--- In [email protected], "dleidinger" <[EMAIL PROTECTED]> wrote:
> it would be possible (if not to difficult) to add clipboard-
> functionality to the debug-window ?
Actuallly you _should_ be able to get the listbox contents with the
dialog-plugin. But:
local lbHan = win.handleFromIndex("PowerPro Debug", 1)
dialog.get_value(lbHan, 1)
removes the listbox. Strange. Maybe Alan knows why...
Anyway, something like this should do as well:
local LB_GETTEXT = 0x189
local LB_GETTEXTLEN = 0x18A
local LB_GETCOUNT = 0x18B
local lbHan, count, cont, i, str
win.debug("test1")
win.debug("test2")
win.debug("test3")
cont = ""
lbHan = win.handleFromIndex("PowerPro Debug", 1)
count = lbHan.sendMessage(LB_GETCOUNT, 0, 0)
for (i = 0; i < count; i++)
str = " ".repeat(lbHan.sendMessage(LB_GETTEXTLEN, i, 0))
lbHan.sendMessage(LB_GETTEXT, i, dll.get_pointer("str"))
cont ++= str ++ esc(?"\r\n", ?"\")
endfor
messagebox("OK", cont, "debug-listbox content")
Mockey