Jump to content

Recommended Posts

Posted

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

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...