Hi all members in Autoit Forum.
I try to set pos in internet explorer_sever. But it 's not working.
This is my code.
Who can fix it for me?
AutoIt
#include <GuiScrollBars.au3> #include <ScrollBarConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Example() Func Example() $IE = ObjCreate("Shell.Explorer.2") $GUI=GUICreate("Test", 640, 450, (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN)) $oIE=GUICtrlCreateObj($IE, 10, 40, 600, 360) $hand=GUICtrlGetHandle($oiE) CONSOLEWRITE($hand) 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') _GUIScrollBars_SETScrollInfoPos($GUI, $SB_VERT,5) While 1 IF GUIGetMsg() = $GUI_EVENT_CLOSE then Exit EndIf WEND EndFunc ;==>Example
Thanks!