Win32Lib Update

new topic     » goto parent     » topic index » view thread      » older message » newer message

A small bugling is showing up in getText. You add 1 to iLength to allocat=
e
buffer space. But iLength is used again thereafter. As it stands now, it
doesn't return the last text character. IMO the best solution is to add 1=

directly in the line where iLength is calculated for the first time. Then=

you don't have to bother about string sizes in the lines that follow it.

So, change the line that reads:
    iLength =3D c_func(xGetWindowTextLength, {hWnd}) + 1 -- directly addi=
ng
1!

BTW, your header says it's version 0.14b

Ad

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu