Generator Posted August 13, 2007 Author Share Posted August 13, 2007 What method did you use to retrieve the names from the obj, i am still very new to _IE. Would you mind sharing the method as well i can learn from it? Thanks. I am replying with your fixed version, works nicely. Link to comment Share on other sites More sharing options...
DaleHohm Posted August 13, 2007 Share Posted August 13, 2007 Short answer is that I examined the HTML source... this was made much easier using the DebugBar tool you see in my sig... With DebugBar, I just dragged the bullseye tool on top of the Reply button and it showed me the HTML tag that contained an id= or name=. I did the same with the submit button. 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...
Generator Posted August 13, 2007 Author Share Posted August 13, 2007 Short answer is that I examined the HTML source... this was made much easier using the DebugBar tool you see in my sig...With DebugBar, I just dragged the bullseye tool on top of the Reply button and it showed me the HTML tag that contained an id= or name=. I did the same with the submit button.DaleNice, i am sure it will be useful in most of the time. Thanks a bunch Link to comment Share on other sites More sharing options...
AzKay Posted August 13, 2007 Share Posted August 13, 2007 And if you prefer to use FireFox, Theres a very helpful plugin I like to use, FireBug. :3 # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
NELyon Posted August 13, 2007 Share Posted August 13, 2007 And if you prefer to use FireFox, Theres a very helpful plugin I like to use, FireBug. :3And DOM Inspector which comes with firefox Link to comment Share on other sites More sharing options...
AzKay Posted August 13, 2007 Share Posted August 13, 2007 And DOM Inspector which comes with firefox It does? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
DaleHohm Posted August 13, 2007 Share Posted August 13, 2007 It does?Yep. It is an optional component during the install however. It will be in yout tools menu if you installed it.There are a lot of DOM inspectors available, some better than others... some MUCH better than others... some free, some not. I've included the ones I use and like with IE in my sig.The DOM inspectors available for FireFox are typically free and are very useful.Generator asked my how I figured out the information in the DOM for my reply earlier. I told him what I did and what I used to get it. I happen to like DebugBar because it integrates with IE, is free for personal use and has the features I need and more.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...
AzKay Posted August 13, 2007 Share Posted August 13, 2007 (edited) I see. I personally use FireBug, And Live HTTP Headers for my work with these types of things, But thats only because I prefer FF. Edited August 13, 2007 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Generator Posted August 13, 2007 Author Share Posted August 13, 2007 Updated. Link to comment Share on other sites More sharing options...
AzKay Posted August 13, 2007 Share Posted August 13, 2007 Mind if I make an alternate thread? The same things as these, But using httprequests? x3 # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Generator Posted August 13, 2007 Author Share Posted August 13, 2007 Mind if I make an alternate thread?The same things as these, But using httprequests? x3Np xD, since i just "discovered" Debug toolbar, such a great tool, i am gonna play around with it for a while Link to comment Share on other sites More sharing options...
AzKay Posted August 13, 2007 Share Posted August 13, 2007 Yay, I have permissions. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Generator Posted August 14, 2007 Author Share Posted August 14, 2007 Updated. Changed topic interest. Link to comment Share on other sites More sharing options...
Generator Posted August 16, 2007 Author Share Posted August 16, 2007 Updated. If anyone have any request you can post here as well. Link to comment Share on other sites More sharing options...
SleepyXtreme Posted August 16, 2007 Share Posted August 16, 2007 (edited) fyi i fricken love this script, very nice work. edit: so i have a few suggestions the facebook funcs 1. well i already adapted a "login" func from ur first post but maybe you wanna make it a seperate one in ur first post. 2. logout 3. maybe a go to Events? 4. It would be very cool if there was a way to maybe detect your aim away msg then change ur status to be the same . edit2: how do you get all the names of the boxes where you enter the information, i'm not quite sure how you do it, can you tell me how? Edited August 16, 2007 by SleepyXtreme Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted August 16, 2007 Moderators Share Posted August 16, 2007 You should add these to the snippet database. Link to comment Share on other sites More sharing options...
DaleHohm Posted August 16, 2007 Share Posted August 16, 2007 You should add these to the snippet database.Yes, please do. There is a lot of useful, categorized stuff out there.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...
OldDog Posted August 16, 2007 Share Posted August 16, 2007 Hi, I am looking for a script that will log on to a site via IE7 and then install the Certificate for that site. I was trying a keyboard macro, but the little widget that pops up only accepts input from a mouse. Any help would be appriciated. OldDog Link to comment Share on other sites More sharing options...
SleepyXtreme Posted August 16, 2007 Share Posted August 16, 2007 ok so since i really loved these scripts so much i made a facebook stalker program that lets you do all the functions from a tray icon and it also lets you do login with a hotkey Link to comment Share on other sites More sharing options...
Generator Posted August 16, 2007 Author Share Posted August 16, 2007 fyi i fricken love this script, very nice work. edit: so i have a few suggestions the facebook funcs 1. well i already adapted a "login" func from ur first post but maybe you wanna make it a seperate one in ur first post. 2. logout 3. maybe a go to Events? 4. It would be very cool if there was a way to maybe detect your aim away msg then change ur status to be the same . edit2: how do you get all the names of the boxes where you enter the information, i'm not quite sure how you do it, can you tell me how?Basically you examine the source, or use one of the DOM obj tool out there. Like FireBug for Firefox. Also i created a nest loop for myself, comes in handly most of the time. Fill in the website and the timeout, and change the text in the if statement if you want, it's for matching the form and the element. How to use: Use it go in a website Wait for Msgbox to show up( which pauses the script ) Enter replying or the desire text And then hit ok It should show the # of collection of that form and the element. #include<IE.au3> $thread="http://www.facebook.com/" $Time=5000 _ForumReply($thread,$Time) Func _ForumReply($ThreadLink,$oTimeout) Local $oIE,$oForm,$oQuery,$o_Query _IEErrorHandlerRegister() _IELoadWaitTimeout($oTimeout) $oIE=_IECreate($ThreadLink,0,1,1) MsgBox(64,"Warning","Input text into element and click ok to continue") $oForm = _IEFormGetCollection ($oIE) $iNumForm=@extended For $i=0 to $iNumForm-1 $oForm = _IEFormGetCollection ($oIE, $i) $oQuery = _IEFormElementGetCollection ($oForm) $iNumElement=@extended For $n=0 to $iNumElement-1 $o_Query=_IEFormElementGetCollection($oForm,$n) If String(_IEFormElementGetValue($o_Query))="Replying" Then MsgBox(64,"Form: "&$i,"Element: "&$n) EndIf Next Next EndFunc 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