Vindicator209 Posted October 16, 2008 Share Posted October 16, 2008 How would I change the html of a header of a webpage? _IEwritehtml or whatever only writes between the body tags... [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 16, 2008 Share Posted October 16, 2008 I think the HTTP.au3 UDF should work for you. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 16, 2008 Author Share Posted October 16, 2008 Where might I find that? [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 16, 2008 Share Posted October 16, 2008 Search and google are your friends. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 16, 2008 Author Share Posted October 16, 2008 uhh.... well I see alot of socket and server stuff, but what I need is editing the html of a webpage.... mind pointing me to where in this UDF that does that for me? thanks. [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 16, 2008 Share Posted October 16, 2008 Quick question: Why would you need to edit the header? Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 16, 2008 Author Share Posted October 16, 2008 I'm making a little chat program to run IE objects with a chat website, and everyone's name is colored red using css styles. I want to make them blue. <style type=text/css> a {color: blue; text-decoration: none;} a.admin { color: red; text-decoration: none;}</style> <body starts here> [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 16, 2008 Author Share Posted October 16, 2008 WOW This is the most stupid overlook I have EVER HAD. _IEDocReadHTML does what I need. As opposed to _IEBodyReadHTML Thanks for your help anyway [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 16, 2008 Author Share Posted October 16, 2008 I lied. rewriting the html doesn't allow it to still be read as if it were loaded on the website (ex. "smile.gif" won't show up anymore, since it doesn't have the full address) [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 16, 2008 Share Posted October 16, 2008 Why not rewrite the full address then or just only change the html using StringReplace()? How exactly are you doing it? Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
Gibbo Posted October 16, 2008 Share Posted October 16, 2008 I'm making a little chat program to run IE objects with a chat website, and everyone's name is colored red using css styles. I want to make them blue. <style type=text/css> a {color: blue; text-decoration: none;} a.admin { color: red; text-decoration: none;}</style> <body starts here> I've just been messing about with something similar to hide scrollbars: $oIE.document.body.style.overflow = 'hidden' $oHTMLs = _IETagNameGetCollection($oIE, "html") For $oHTML In $oHTMLs $oHTML.style.overflow = 'hidden' Next so perhaps for your example: $oIE.document.body.a.admin.style.color = 'blue' or similar... (my css is a little rusty, so I could be completely out) Link to comment Share on other sites More sharing options...
DaleHohm Posted October 17, 2008 Share Posted October 17, 2008 _IEDocWriteHTML should still work with your graphics and such. Another way to attack it would be $oStyle = _IETagnameGetCollection($oIE, "style", 0) ; assuming this is the first style tag $sStyle = _IEPropertyGet($oStyle, "innerhtml") _IEPropertySet($oStyle, "innerhtml", StringReplace($sStyle, "red", "blue") 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...
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