someone Posted December 1, 2006 Posted December 1, 2006 (edited) DaleHohm said: You'd have to tell me what you were trying to attach to, what code you tried and what the output to the SciTe console is. Dale Sorry I should have done that to begin with... He wanted to attach to whatever the current IE window is, then navigate to hotmail and login. Using the handle worked fine but nothing else... If I used this code $title = WinGetTitle("") $oIE = _IEAttach($title, "Title") ; same result if I use _IEAttach($title) MsgBox(0,"",$title) _IENavigate($oIE, "http://www.hotmail.com") oÝ÷ Ù8^IÈz¦ëb³«·Yªçx®ºw-ÈmiÈtߢJÖºÃh1«ÈºÇ¡×ºÚ"µÍÌÍÝ^HÚ[Ù]^ ][ÝÉ][ÝÊBBÙÐÞ ][ÝÉ][ÝË ÌÍÝ^ BÌÍÛÒQHHÒQP]XÚ ÌÍÝ^ ][ÝÕ^ ][ÝÊBÒQS]YØ]J ÌÍÛÒQK ][ÝÚËÝÝÝËÝXZ[ÛÛI][ÝÊBoÝ÷ Ù8^IÈz¦ëb³«·Yªçx®ºw-ÈmiÈtߢJÖºÃh1«ò.±çmèZÙ^{-y§ZºÚ"µÍÌÍÚ[HHÚ[Ù][J ][ÝÉ][ÝÊBÙÐÞ ][ÝÉ][ÝË ÌÍÚ[JBÌÍÛÒQHHÒQP]XÚ ÌÍÚ[K ][ÝÒÓ ][ÝÊBÒQS]YØ]J ÌÍÛÒQK ][ÝÚËÝÝÝËÝXZ[ÛÛI][ÝÊB It works fine. Let me know if need something different, or whatever thanks EDIT: I didn't specifically say this but I obviously had #include <IE.au3> in all the examples I also made it a function with a hotkey so I could be browsing and call the function then. The Msgboxes were in there for testing the $title, $text, and $handle vars Edited December 1, 2006 by someone While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd
DaleHohm Posted December 1, 2006 Posted December 1, 2006 (edited) Yikes, this is a popular problem the last few days... The title used in _IEAttach is NOT NOT NOT the title you get with WinGetTitle() -- it is the <TITLE> used in the HTML of the html document. IE starts with the document title and then adds something like " - Microsoft Internet Explorer" to the end of it to construct the window title (this value is in a registry setting and can change with different releases of IE and with custom IE distributions or if someone simply changes the registry value). WinGetText() does NOT see the text inside the document in a webbrowser -- it will see only the text inside standard Win32 controls, so that will never work either. I've added a "windowtitle" mode for _IEAttach in the latest beta (T2.0-6 at this point - see my sig) to work along with "title" that should work in your first scenario. Dale Edit: added more clarification Edited December 1, 2006 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
not-me Posted December 2, 2006 Author Posted December 2, 2006 i will become sick from this script Plz send me the exe file for the wroking script and the au3 file too,may be i have a problem with the compiler. I used the IE.au3 and IET2.0.6, in both of them i get the same error
Light Posted January 11, 2007 Posted January 11, 2007 not-me said: someone, thank you for replying but i deleted my code. can u help me in the hotmail login form as example: This code to login to hotmail using IECreate #include <IE.au3> $oIE = _IECreate ("http://www.hotmail.com",1) $o_form = _IEFormGetObjByName ($oIE, "f1") $o_login = _IEFormElementGetObjByName ($o_form, "login") $o_password = _IEFormElementGetObjByName ($o_form, "passwd") $o_signin = _IEFormElementGetObjByName ($o_form, "SI") $username = "your username here" $password = "your password here" _IEFormElementSetValue ($o_login, $username) _IEFormElementSetValue ($o_password, $password) _IEAction ($o_signin, "click") i want to do the same but without open the hotmail page (the hotmail page is already opened and i want to fill the username and pass in the form direclty) i hope that u understand me . Thanks alot Thank you Works great ...!
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