strate Posted February 4, 2006 Share Posted February 4, 2006 #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... Link to comment Share on other sites More sharing options...
BigDod Posted February 4, 2006 Share Posted February 4, 2006 #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) 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted February 4, 2006 Developers Share Posted February 4, 2006 Works fine here.... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
BigDod Posted February 4, 2006 Share Posted February 4, 2006 Is your firewall blocking AutoIt from getting out to the internet? 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 Link to comment Share on other sites More sharing options...
strate Posted February 4, 2006 Author Share Posted February 4, 2006 (edited) Try it like this #include <INet.au3> $var=_INetGetSource('http://sports.yahoo.com/ncaab/boxscore?gid=200602040271') MsgBox(0,'Source:',$var) Nothing again EDIT: Would it have something to do with being on our works connection, firewalls? Edited February 4, 2006 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... Link to comment Share on other sites More sharing options...
strate Posted February 4, 2006 Author Share Posted February 4, 2006 (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 February 4, 2006 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... Link to comment Share on other sites More sharing options...
Valuater Posted February 4, 2006 Share Posted February 4, 2006 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) Link to comment Share on other sites More sharing options...
strate Posted February 4, 2006 Author Share Posted February 4, 2006 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... Link to comment Share on other sites More sharing options...
Valuater Posted February 4, 2006 Share Posted February 4, 2006 (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 February 4, 2006 by Valuater Link to comment Share on other sites More sharing options...
strate Posted February 4, 2006 Author Share Posted February 4, 2006 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 timeI 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... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now