LOULOU Posted October 9, 2006 Share Posted October 9, 2006 In Function _IEAttach line n° 502 If StringInStr($o_window.document.title, $s_string) > 0 Then $o_window.document.title generate an error and the interent object won't want to be attach If i put this instruction If StringInStr($o_window.locationName, left($s_string,StringLen($o_window.locationName) )> 0 Then The attach works well Dale, Can you confirm while tere is a problem with Windows XP SP2 French and with Windoiws 2000 Pack 4 French version ? Link to comment Share on other sites More sharing options...
jvanegmond Posted October 9, 2006 Share Posted October 9, 2006 (edited) You might also want to take a look at this: Posting and you!Send a PM next time, or post in the scripts original topic. Edited October 9, 2006 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
DaleHohm Posted October 9, 2006 Share Posted October 9, 2006 In Function _IEAttach line n° 502If StringInStr($o_window.document.title, $s_string) > 0 Then$o_window.document.title generate an error and the interent object won't want to be attachIf i put this instruction If StringInStr($o_window.locationName, left($s_string,StringLen($o_window.locationName) )> 0 ThenThe attach works wellDale,Can you confirm while tere is a problem with Windows XP SP2 French and with Windoiws 2000 Pack 4 French version ?I don't understand the problem or why you would want to use the locationName property. For HTML pages locationName should return the same value as .title.Please post the code and the error message you receive as well as a reproducer if possible.Thanks,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...
Moderators big_daddy Posted October 10, 2006 Moderators Share Posted October 10, 2006 Send a PM next time, or post in the scripts original topic.I hate to call you out again, but this is incorrect information to be giving out.Here are some basic rules of thumb (strictly my opinions of course).Sending PM'sGenerally not a good idea for requesting support (They are usually asked to post the question in the support forum anyway)Usually okay if needed for security reasonsPosting in the scripts original topicScript - For the most part yesLibrary - Only for enhancement requests and bug reports (support requests seem to get lost very quickly) Link to comment Share on other sites More sharing options...
Paulie Posted October 10, 2006 Share Posted October 10, 2006 I hate to call you out again, but this is incorrect information to be giving out.Here are some basic rules of thumb (strictly my opinions of course).Sending PM'sGenerally not a good idea for requesting support (They are usually asked to post the question in the support forum anyway)Usually okay if needed for security reasonsPosting in the scripts original topicScript - For the most part yesLibrary - Only for enhancement requests and bug reports (support requests seem to get lost very quickly)I think it would be more appropriate to next time just not address support posts to specific membersJust ask the question next time, leave out the 'To DaleHohm' part Link to comment Share on other sites More sharing options...
LOULOU Posted October 10, 2006 Author Share Posted October 10, 2006 I found the solution of My problemIn Fact when you use _IEattach with title the title used is the title between <Title> and </title> TAGS . In french version after the title ie add "- Microsoft Internet Explorer" so in IE.au3 $owindows.document.title doesn't recognize the title of the windowsIn fact because the probleme doesn't come from DaleHom's programation before sending _Ieattach Ex window title "Autoit Forums - Microsoft Internet Explorer"$toto = StringLeft( WinGetTitle("Autoit","") , StringInstr(WinGetTitle("Autoit",""),"-")-1 )oÝ÷ Ù©Ý")ï¢G«miÈeG«ZºÚ"µÍ^ZYHHÒYX]XÚ ÌÍÝÝË ][ÝÕ]I][ÝÊH That's work perfectly Link to comment Share on other sites More sharing options...
DaleHohm Posted October 10, 2006 Share Posted October 10, 2006 Ah, I see the confusion. Correct, the value returned from WinGetTitle is different than the HTML document title (because Microsoft adds their advertisement to the end - Microsoft Internet Explorer). That's probably worth mentioning in the helpfile -- I've noted it. 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