The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using user32.dll defined functions: GetScrollInfo
#1
Hello again,

I am attempting to receive the scrollbar range of a form, say in notepad.

This is what I came up with:


Macro Macro6
Code:
Copy      Help
int w=win(" - Notepad" "Notepad")
Acc a.Find(w "SCROLLBAR" "Vertical" "class=Edit[]id=15" 0x1035)
int hwndScrollbar=child(a) ;;Toolbar handle

def SB_CTL 2
def SIF_RANGE 0x1
def SIF_PAGE 0x2
dll user32 #GetScrollInfo hWnd nBar SCROLLINFO'lpsi 
SCROLLINFO tSI
tSI.cbSize=sizeof(SCROLLINFO)
tSI.fMask= SIF_RANGE | SIF_PAGE

GetScrollInfo(hwndScrollbar SB_CTL tSI)
out tSI.nMax


I get the following error:
Quote:Error (RT) in Macro6:  Exception 0xC0000005. Access violation. Cannot read memory at 0x1C. In USER32.dll at 0x7530A8EE (0x752D0000+0x3A8EE).    

Any advice will be much appreciated,
Cuitino


Messages In This Thread
using user32.dll defined functions: GetScrollInfo - by cuitino - 11-02-2019, 09:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)