hiepxuan2008 Posted May 27, 2013 Author Share Posted May 27, 2013 TRY CODE #include <GuiScrollBars.au3> #include <ScrollBarConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Example() Func Example() $IE = ObjCreate("Shell.Explorer.2") $GUI=GUICreate("My test", 640, 450, (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN)) $oIE=GUICtrlCreateObj($IE, 10, 40, 600, 360) GUISetState() ;Show GUI $SPAM='Auto it <br>' FOR $I=1 to 6 $SPAM &= $SPAM NEXT $F=FILEOPEN(@desktopdir & '/ie.html',2+128) FILEWRITE($F,$SPAM) FILECLOSE($F) $IE.navigate(@desktopdir & '/ie.html') $hand=ControlGetHandle('My test','','Internet Explorer_Server1') CONSOLEWRITE($hand) _GUIScrollBars_Init($hand) _GUIScrollBars_SETScrollInfoPos($hand, $SB_VERT,5) While 1 IF GUIGetMsg() = $GUI_EVENT_CLOSE then Exit EndIf WEND EndFunc ;==>Example It can get handle through controlgethand, but it can't set pos Link to comment Share on other sites More sharing options...
jdelaney Posted May 27, 2013 Share Posted May 27, 2013 Why even use the scroll bars...performing focus actions (_IEAction) on your object will set focus, and visibility on that object. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
hiepxuan2008 Posted May 27, 2013 Author Share Posted May 27, 2013 Why even use the scroll bars...performing focus actions (_IEAction) on your object will set focus, and visibility on that object. i can't understand your mean. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now