Sign in to follow this  
Followers 0
strate

_INetGetSource Problem

10 posts in this topic

#include <INet.au3>
MsgBox(0,'Source:',_INetGetSource('http://sports.yahoo.com/ncaab/boxscore?gid=200602040271'))

Returns nothing, yet I can view the source with notepad. What am I doing wrong?


INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station...

Share this post


Link to post
Share on other sites



#include <INet.au3>
MsgBox(0,'Source:',_INetGetSource('http://sports.yahoo.com/ncaab/boxscore?gid=200602040271'))

Returns nothing, yet I can view the source with notepad. What am I doing wrong?

Try it like this

#include <INet.au3>
$var=_INetGetSource('http://sports.yahoo.com/ncaab/boxscore?gid=200602040271')
MsgBox(0,'Source:',$var)


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Is your firewall blocking AutoIt from getting out to the internet?



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Try it like this

#include <INet.au3>
$var=_INetGetSource('http://sports.yahoo.com/ncaab/boxscore?gid=200602040271')
MsgBox(0,'Source:',$var)
Nothing again :lmao:

EDIT: Would it have something to do with being on our works connection, firewalls?

Edited by strate

INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station...

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

I can view the page just fine. I wanna make a small GUI with some of the stuff on the page that wouldn't look like I was on the net. My boss doesn't care I'm doing it for a coworker.

Edited by strate

INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station...

Share this post


Link to post
Share on other sites

I can view the page just fine. I wanna make a small GUI with some of the stuff on the page that wouldn't look like I was on the net. My boss doesn't care I'm doing it for a coworker.

From lesson #2 in Welcome to AutoIt 1-2-3

http://www.autoitscript.com/forum/index.ph...opic=21048&hl=#

; This is a demonstration for Object Create.

#include <GuiConstants.au3>; include GUI constants when using a GUI.

GUICreate("Object Test", 614, 370); Create the GUI with a title of, Object Test.

GUISetFont(9, 400, -1, "MS Sans Serif"); set the font size to number 9, the weight, and the style.

$B_oIE1 = ObjCreate("Shell.Explorer.2"); create the, explorer object.

$Breaktime = GUICtrlCreateObj($B_oIE1, -1, -1, 500, 370); create the, embeded, object control.

; set the text in a variable called html.
$html = "about:Welcome to AutoIt 1-2-3, by Valuater"

$B_oIE1.navigate ( $html); navigate the explorer object to the html variable, ( known as about ).

; create the two buttons.
$BrkStart = GUICtrlCreateButton("&Enter", 515, 300, 80, 25)
$BrkEnd = GUICtrlCreateButton("&Exit", 515, 330, 80, 25)

GUISetState(); set the GUI as Visible.

While 1; start loop, so the script continues and does not exit.
    
    $msg = GUIGetMsg(); listen for a message.
    
    If $msg = $GUI_EVENT_CLOSE Or $msg = $BrkEnd Then; if exit is pressed, then exit the script.
        Exit
    EndIf
    
    If $msg = $BrkStart Then; if this button is pushed, we navigate the object to the site.
        $B_oIE1.navigate ("http://www.autoit3.com")
    EndIf
    
WEnd; end loop.

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

From lesson #2 in Welcome to AutoIt 1-2-3

http://www.autoitscript.com/forum/index.ph...opic=21048&hl=#

; This is a demonstration for Object Create.

#include <GuiConstants.au3>; include GUI constants when using a GUI.

GUICreate("Object Test", 614, 370); Create the GUI with a title of, Object Test.

GUISetFont(9, 400, -1, "MS Sans Serif"); set the font size to number 9, the weight, and the style.

$B_oIE1 = ObjCreate("Shell.Explorer.2"); create the, explorer object.

$Breaktime = GUICtrlCreateObj($B_oIE1, -1, -1, 500, 370); create the, embeded, object control.

; set the text in a variable called html.
$html = "about:Welcome to AutoIt 1-2-3, by Valuater"

$B_oIE1.navigate ( $html); navigate the explorer object to the html variable, ( known as about ).

; create the two buttons.
$BrkStart = GUICtrlCreateButton("&Enter", 515, 300, 80, 25)
$BrkEnd = GUICtrlCreateButton("&Exit", 515, 330, 80, 25)

GUISetState(); set the GUI as Visible.

While 1; start loop, so the script continues and does not exit.
    
    $msg = GUIGetMsg(); listen for a message.
    
    If $msg = $GUI_EVENT_CLOSE Or $msg = $BrkEnd Then; if exit is pressed, then exit the script.
        Exit
    EndIf
    
    If $msg = $BrkStart Then; if this button is pushed, we navigate the object to the site.
        $B_oIE1.navigate ("http://www.autoit3.com")
    EndIf
    
WEnd; end loop.

8)

After submitting lesson 1 it wouldn't allow me to continue "Next" stayed disabled.

INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station...

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

there seems to be a small problem with the internet connecting "Sometimes"...

You should be able to close the program and open it again... and you will pass that exam questions portion... if you got 100 percent the last time

I just tested it this morning.. there was no problem on winXP ( for me )

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

there seems to be a small problem with the internet connecting "Sometimes"...

You should be able to close the program and open it again... and you will pass that exam questions portion... if you got 100 percent the last time

I just tested it this morning.. there was no problem on winXP ( for me )

8)

I keep getting 80 looks like I have some studying to do, lol.

INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station...

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  
Followers 0