winstan
Эксплотатор)
- Сообщения
- 406
- Репутация
- 79
Вот за основу взял код из справки может подскажите как очистить страницу от меню , шапки и д.т. чтобы упростить разработку бота
Код:
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
$oIE = ObjCreate("Shell.Explorer.2")
; Create a simple GUI for our output
GUICreate("Embedded Web control Test", 800, 680,-1,-1)
GUICtrlCreateObj($oIE, 10, 10, 780, 600)
$GUI_Button_Back = GUICtrlCreateButton("Back", 10, 640, 100, 30)
$GUI_Button_Forward = GUICtrlCreateButton("Forward", 120, 640, 100, 30)
$GUI_Button_Home = GUICtrlCreateButton("Home", 230, 640, 100, 30)
$GUI_Button_Stop = GUICtrlCreateButton("Stop", 330, 640, 100, 30)
GUISetState() ;Show GUI
$oIE.navigate("http://vk.com/app3069891")
; Waiting for user to close the window
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $GUI_Button_Home
;$oIE.navigate("http://vk.com/app1979194_11647078?ref=1")
Case $msg = $GUI_Button_Back
$oIE.GoBack
Case $msg = $GUI_Button_Forward
$oIE.GoForward
Case $msg = $GUI_Button_Stop
$oIE.Stop
EndSelect
WEnd
GUIDelete()