Jump to content
Sign in to follow this  
Golbez

Web page element wont load?

Recommended Posts

Golbez

just trying to make a simple script to view a graph that is on a web server i use alot. 

works fine if i use chrome. just not sure why it doesnt load for me 

#cs ----------------------------------------------------------------------------
 Author:         Golbez

 Script Function:
    to veiw a graph i use alot :P

#ce ----------------------------------------------------------------------------
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt('MustDeclareVars', 1)

Global $site = "http://69.116.59.224:5446/"

Viewgraph($site)

Func Viewgraph($site)
    Local $oIE, $GUIActiveX, $msg
    $oIE = ObjCreate("Shell.Explorer.2")

    GUICreate("Veiw Graph", 600, 420, (@DesktopWidth - 615) / 2, (@DesktopHeight - 430) / 2)
    $GUIActiveX = GUICtrlCreateObj ($oIE, 0, 0, 620, 435)

    GUISetState()       ;Show GUI

    $oIE.navigate($site)

    ; Waiting for user to close the window
    While 1
        $msg = GUIGetMsg()
        Select
            Case $msg = $GUI_EVENT_CLOSE
                ExitLoop
        EndSelect
    WEnd

    GUIDelete()
EndFunc
Edited by Golbez

Share this post


Link to post
Share on other sites
Edano

i can confirm that ie does not load the graph, but firefox does.


[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites
Golbez

i wonder if there is firefox or chrome functions i could use to open it instead of ie :P

cant seem to find any in the search but i really thought here was some.

 

edit:  little more digging and i found this: '?do=embed' frameborder='0' data-embedContent>>

but i cant seem to get this to work...

 

#Include <FF.au3>



_FFOpenURL("http://www.google.com")


exit
_FFConnect()

If _FFIsConnected() Then
    _FFOpenURL("google.com")

    If _FFObjNew("google", "window.content.document") Then
        MsgBox(64, "Cookie", _FFObj("google","cookie"))
        ; OR
        MsgBox(64, "Domain", _FFObj("google.domain"))
        _FFObjDelete("google")
    EndIf
EndIf

Exit

i have the needed plugin also

Edited by Golbez

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×