Ic3c0ld Posted October 14, 2005 Share Posted October 14, 2005 But can anyone point me in the right direction for the syntax on sending a HTML Post Request. That usually orignates fro ma form. it has a couple input boxes and am not sure how to accomplish this directly from AutoIT. Any help would be greatly appreciated Link to comment Share on other sites More sharing options...
DaleHohm Posted October 14, 2005 Share Posted October 14, 2005 The Navigate and Navigate2 methods of the InternetExplorer.Application opject allow you to pass this data (documentation at msdn.microsoft.com).Another common way to do it is to write out your own HTML on the fly, fill the form and submit it. This can be done with IE.au3 and can even be done with an invisible window.DaleBut can anyone point me in the right direction for the syntax on sending a HTML Post Request. That usually orignates fro ma form. it has a couple input boxes and am not sure how to accomplish this directly from AutoIT. Any help would be greatly appreciated Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Ic3c0ld Posted October 15, 2005 Author Share Posted October 15, 2005 The Navigate and Navigate2 methods of the InternetExplorer.Application opject allow you to pass this data (documentation at msdn.microsoft.com).Another common way to do it is to write out your own HTML on the fly, fill the form and submit it. This can be done with IE.au3 and can even be done with an invisible window.DaleWhich In your opinion will be more efficient? Link to comment Share on other sites More sharing options...
DaleHohm Posted October 15, 2005 Share Posted October 15, 2005 (edited) That depends on what you mean by "efficient". For me, that means how could I get results the quickest -- and for me that would be the later option. If you mean what would take the fewest CPU cycles to accomplish, then that would probably be the former (and perhaps some other options we haven't discussed).To use the later, you can use IE.au3 -- here's a sketch of the code required...#include <IE.au3> $oIE = _IECreate() $sHTML = "<form name=foo method=post action=http://bar.com/bar.htm>" $sHTML = $sHTML & "...text fields... ...buttons...</form>" _IEBodyWriteHTML($oIE, $sHTML) $oForm = _IEFormGetObjByName($oIE, "foo")then get object references to the form elements(_IEFormElementGetObjByName), then set the values(_IEFormElementSetValue), then submit the form (_IEFormSubmit).DaleWhich In your opinion will be more efficient? Edited October 15, 2005 by DaleHohm Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Ic3c0ld Posted October 15, 2005 Author Share Posted October 15, 2005 Thanks for the input but I went with just going to the site and doing everything. Its really slow diong that but it has a lot shit to mess with. Now just need to figure out how to block images in iexplore. Link to comment Share on other sites More sharing options...
Valuater Posted October 15, 2005 Share Posted October 15, 2005 can you tell us the name of the site you want to send info to?? 8) Link to comment Share on other sites More sharing options...
Ic3c0ld Posted October 15, 2005 Author Share Posted October 15, 2005 (edited) Its a myspace script i am recoding. Ya it will definatley have to have the images blocked and javascript and java. I am not sure how to do this though in IExplore. Javascript gone would disable soem of their adds because they are insterted with javascript or java. Any suggestions? Edited October 15, 2005 by Ic3c0ld Link to comment Share on other sites More sharing options...
Valuater Posted October 15, 2005 Share Posted October 15, 2005 try to explain a little... is this the idea you have already created the replacement html and you want to post it with autoit to your myspace webpage.... or ? 8) Link to comment Share on other sites More sharing options...
Ic3c0ld Posted October 15, 2005 Author Share Posted October 15, 2005 Oh no its a friend adder. It goes and adds massive amounts of friends to your list. Right now myspace well who am I kidding myspace has always been a bandwidth whore and the javascript ads and tons of images and poorly designed layout are getting in the way of my dial up load times to actually send the post request. I have the sleep time perfect for if their wree no images if i add more time it will be to long to wait for one page. Anything else? Link to comment Share on other sites More sharing options...
DaleHohm Posted October 15, 2005 Share Posted October 15, 2005 If the images comes from a predictable source, you could use a trick of editing your host file (c:\windows\system32\drivers\etc\hosts) and redefine the host to point to localhost with entries like this:127.0.0.1 ad.doubleclick.net Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
ChrisL Posted October 15, 2005 Share Posted October 15, 2005 Seconded on the host file trick [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Ic3c0ld Posted October 15, 2005 Author Share Posted October 15, 2005 Seconded on the host file trickI got it i just used Internet Explorers Built in Custom Style Sheet Formatting and i loaded a style sheet like this IMG { display: none !important;}And ie removed all the pictuers . Link to comment Share on other sites More sharing options...
TerarinK Posted April 4, 2008 Share Posted April 4, 2008 I got it i just used Internet Explorers Built in Custom Style Sheet Formatting and i loaded a style sheet like this IMG { display: none !important;}And ie removed all the pictuers .Do correct me if I am wrong on this but aren't images deleted after the page is complete so therefore your not doing anything except for deleting the picture for easier viewing. Using CSS isn't the right way for accomplishing this task if you want speed by reducing the downloading of images (all same goes for Audio and Flash). I am unsure how to accomplish this task directly with IE.au3 but you can use INet.au3 and download the page and edit the file by taking out the given things. Else you could use HTTP.au3 and edit your own head to give you it in Accept: *.html *.htm with withdrawal from .img or any other flag you want banned.However the host file option does work but then it carries it over to any site (don't know if you want this or not) 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E Link to comment Share on other sites More sharing options...
TerarinK Posted April 4, 2008 Share Posted April 4, 2008 Do correct me if I am wrong on this but aren't images deleted after the page is complete so therefore your not doing anything except for deleting the picture for easier viewing. Using CSS isn't the right way for accomplishing this task if you want speed by reducing the downloading of images (all same goes for Audio and Flash). I am unsure how to accomplish this task directly with IE.au3 but you can use INet.au3 and download the page and edit the file by taking out the given things. Else you could use HTTP.au3 and edit your own head to give you it in Accept: *.html *.htm with withdrawal from .img or any other flag you want banned.However the host file option does work but then it carries it over to any site (don't know if you want this or not)I found a good starter for you one per page or site or anything you would want to block on images it can be found at http://www.autoitscript.com/forum/index.ph...19370&st=30 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E 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