Jump to content

Recommended Posts

Posted

Hi,

tried to embed a site in my gui but Im having a problem with javascript error..

some page works fine but some page keeps on loading forever although its fine when opening on normal browser...

also is there a way to embed firefox instead of ie...

found some links here, tried to follow but can't make it work.

please help..

thanks

Sorry for being noob but... thanks to you im learned something new.
Posted (edited)

#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

#include <IE.au3>

_IEErrorHandlerRegister()

Local $oIE = _IECreateEmbedded()

Example()

Func Example()

Local $mylist, $msg,$link,$add

GUICreate("My GUI",800,500)

GUICtrlCreateObj($oIE, 240, 20, 540,440)

_IENavigate($oIE,"adf.ly/9vdzK")

$mylist = GUICtrlCreateList("adf.ly/9wnni", 20, 20, 200, 400)

$link= GUICtrlCreateInput("animepeek.blogspot.com",20,420,200,20)

$add = GUICtrlCreateButton("Add to list", 20, 440, 200, 20);any url

$start = GUICtrlCreateButton("Play List", 240, 460, 200, 20); open url on list to ie embed window

GUISetState()

$msg = 0

While $msg <> $GUI_EVENT_CLOSE

$msg = GUIGetMsg()

Select

Case $msg = $add

$read=GUICtrlRead($link)

if $read="" then MsgBox(0,"Error","Please enter a link")

GUICtrlSetData($mylist, $read & "|")

Case $msg = $start

$read=GUICtrlRead($mylist)

_IENavigate($oIE, $read)

EndSelect

WEnd

EndFunc

for some reason the javascript error is gone but you can see that when i visit a link with adfly it will stop working, at least i know its not working since the timer is stuck to "1 second", same thing happened when i visit similar sites like that.

Edited by Xtian
Sorry for being noob but... thanks to you im learned something new.

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
×
×
  • Create New...