Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scrolling
#1
Could someone please tell me why this code works

Htm el=htm("HTML" "" "" win("MSN.com - Microsoft Internet Explorer" "IEFrame") 0 0 0x20)
el.Scroll("up")


And this code does not work?


Acc a=acc("Line up" "PUSHBUTTON" win("Local Disk (C:)" "CabinetWClass") "SysListView32" "" 0x1001)
a.DoDefaultAction


All I want to do is have complete control over the scroll bar!
#2
Accessible object functions are >50% implemented by Windows and programs that contains these objects. QM only finds the object and says it "please do default action" etc, ant the program (or Windows) decides what to do. Not all works as you expect. The same is with html elements, although more reliable.

Use some other method to scroll, for example send WM_VSCROLL message. Search the forum for "scroll" or "WM_VSCROLL".
#3
Thank you

That works like a charm!


Forum Jump:


Users browsing this thread: 1 Guest(s)