DaleHohm Posted May 24, 2006 Author Share Posted May 24, 2006 @DaleHohmI was interested in making a Embedded IE object that needs to run a Java Applet in it.I know you created this function to add a eventscript to the HEAD. _IEHeadInsertEventScript()But is there a way (or better an example) on how to add it to the BODY. The script needs to run when opening the AutoIT Gui.In my signature you can find the MailEncoder Gui. Something like that but the content should run a Java Applet.Thanks in advance@ptrexRemember the addage that the only similarity between Java and Javascript is the first 4 letters (and not even that when you know that Javascript is really ECMAScript). You can embed your Java applet in the body of your HTML page by 1) reading the HTML with _IEBodyReadHTML() 2) inject your <applet> or <object> tags into the source and 3) write the HTML back out with _IEBodyWriteHTML()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...
DaleHohm Posted May 24, 2006 Author Share Posted May 24, 2006 (edited) @darkfriendIf you saw the workaround then you also saw the reason it is what it is... after a _IEFormSubmit() you'll need to manage calls to _IELoadWait yourself... you'll want to wait for the browser, then the frame. E.g._IEFormSubmit($oForm, 0)_IELoadWait($oIE)_IELoadWait($oFrame)You should then be ok without having to modify the UDF.DaleUpdate: ugh. the frame presents itself as a window object - window objects don't have a readyState... there is still a window for error. I need to look deeper.Hi,i had the same error with the FormSubmit function...which calls a _IELoadWait,i tryed the work aroundin removing the Do...until (func: IELoadWait)where it crashesC:\Program Files\AutoIt3\beta\Include\IE.au3 (709) : ==> The requested action with this object has failed.: Until ($oTemp.document.readyState = "complete" Or $oTemp.document.readyState = 4) Until ($oTemp.document.readyState ^ ERRORit worked not to bad...after i saa the work around here in the forum_IEFormSubmit($o_form, 0)_IELoadWait($oIE)but it failed often and went forward to a parsing step in my programm even if the site wasen't loaded.im now at the Point where i implementet again the IELoadwait without the Do until where it crashed and added a Sleep(2000) ... _IEFormSubmit($o_form)_IELoadWait($oIE)Sleep(2000)this works normally but it makes access really slow, is there a way to fix the IELoadWait to get optimal performance of waiting on the loaded frameset...?Thank you for ur Help...sry bad english ... Edited May 24, 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 Link to comment Share on other sites More sharing options...
ptrex Posted May 25, 2006 Share Posted May 25, 2006 @DaleHohmYou can embed your Java applet in the body of your HTML page by 1) reading the HTML with _IEBodyReadHTML() 2) inject your <applet> or <object> tags into the source and 3) write the HTML back out with _IEBodyWriteHTML()Thanks for the feedback. But I was hoping to make an on the fly HTML page with an applet. This is more complicated I know, but that's why I am asking some advise.I thuoght of using these functions. _IECreateEmbedded() = to creade the Objects_IEEmbed = To show in AutoIT_IENavigate ( $oIE, "about:blank" ) = to create the blank page in the object_IEDocWriteHTML ( $oIE, "<body> = The on the fly creation of the HTML pageSo far so good.But If I include the <Applet> in the <Body> how does it show ? Because the Applet need to get to the internet to get it's data.So once I have loaded the HTML page in the IE Object including the Applet, what' s next ?regardsptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
DaleHohm Posted May 25, 2006 Author Share Posted May 25, 2006 @ptrex I had expected the following to work:#include <IE.au3> $sHTML = _ '<APPLET CODEBASE="http://java.sun.com/applets/other/Bubbles/classes"' & _ 'CODE="Bubbles.class" WIDTH=500 HEIGHT=500 ALIGN=MIDDLE>' & _ '<P><IMG SRC="bubbles.gif" ALT="[GIF image (2k)]"><BR>' & _ 'An extract from a snapshot of <CITE>Bubbles</CITE> animation' & _ 'by <A HREF="http://java.sun.com/">java.sun.com</A>.</P>' & _ '</APPLET>' $oIE = _IECreate() _IEBodyWriteHTML($oIE,$sHTML) Everything looks correct, but the applet doesn't start. Right now I cannot explain 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...
Valuater Posted May 25, 2006 Share Posted May 25, 2006 I got a it little further maybe... ??? #include <IE.au3> $sHTML = _ '<APPLET CODEBASE="http://java.sun.com/applets/other/Bubbles/classes"' & _ 'CODE="Bubbles.class" WIDTH=500 HEIGHT=500 ALIGN=MIDDLE>' & _ '<P><IMG SRC="bubbles.gif" ALT="[GIF image (2k)]"><BR>' & _ 'An extract from a snapshot of <CITE>Bubbles</CITE> animation' & _ 'by <A HREF="http://java.sun.com/">java.sun.com</A>.</P>' & _ '</APPLET>' $oIE = _IECreate() _IEnavigate($oIE, "about:blank") _IEBodyWriteHTML($oIE,$sHTML) 8) Link to comment Share on other sites More sharing options...
DaleHohm Posted May 25, 2006 Author Share Posted May 25, 2006 Hmmm... I don't think so... _IECreate() actually navigates to "about:blank" it you don't pass a URL and also does an _IELoadWait() to insure it completes. I tried your addition just insure I wan't missing anything, but the result is identical. _IEDocReadHTML() shows that everything is there and loaded properly... the same code saved to an .htm file and opened serperately works as expected. You can tell that the applet is actually rendered (righ-click in the upper-left region of the page where the applet would be and you get no context menu... move down and right and you get the menu). The appllet simply doesn't start running... Dale I got a it little further maybe... ??? #include <IE.au3> $sHTML = _ '<APPLET CODEBASE="http://java.sun.com/applets/other/Bubbles/classes"' & _ 'CODE="Bubbles.class" WIDTH=500 HEIGHT=500 ALIGN=MIDDLE>' & _ '<P><IMG SRC="bubbles.gif" ALT="[GIF image (2k)]"><BR>' & _ 'An extract from a snapshot of <CITE>Bubbles</CITE> animation' & _ 'by <A HREF="http://java.sun.com/">java.sun.com</A>.</P>' & _ '</APPLET>' $oIE = _IECreate() _IEnavigate($oIE, "about:blank") _IEBodyWriteHTML($oIE,$sHTML) 8) 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...
DaleHohm Posted May 26, 2006 Author Share Posted May 26, 2006 Anyone do a lot of work in Java that might know how to troubleshoot this? I changed the test a little... now looks like this:#include <IE.au3> $sHTML = _ '<HTML><HEAD><TITLE>Bubbles</TITLE></HEAD><BODY>' & _ '<APPLET ' & _ 'CODEBASE="http://java.sun.com/applets/other/Bubbles/classes" ' & _ 'CODE="Bubbles.class" WIDTH=500 HEIGHT=500 ALIGN=MIDDLE>' & _ '</APPLET>' & _ '</BODY></HTML>' $oIE = _IECreate() _IEDocWriteHTML($oIE,$sHTML) In the Java console I see this:basic: Registered modality listener liveconnect: Invoking JS method: document liveconnect: Invoking JS method: URL basic: unknown protocol: aboutWhen I run it in a stand-alone browser from disk it works and I see this in the console:basic: Registered modality listener liveconnect: Invoking JS method: document liveconnect: Invoking JS method: URL basic: Referencing classloader: sun.plugin.ClassLoaderInfo@dfcb47, refcount=1 basic: Added progress listener: sun.plugin.util.GrayBoxPainter@1342545 basic: Loading applet ... basic: Initializing applet ... basic: Starting applet ... Any guesses about the "unknown protocol: about" ?? 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...
DaleHohm Posted May 26, 2006 Author Share Posted May 26, 2006 Any guesses about the "unknown protocol: about" ??A-Ha! the page we are on is navigated to "about:blank". It is somehow reading that URL and interpreting the about: as a protocol (like http:). At least it is a starting point...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...
DaleHohm Posted May 26, 2006 Author Share Posted May 26, 2006 @DaleHohmThanks for the feedback. But I was hoping to make an on the fly HTML page with an applet. This is more complicated I know, but that's why I am asking some advise.I thuoght of using these functions. _IECreateEmbedded() = to creade the Objects_IEEmbed = To show in AutoIT_IENavigate ( $oIE, "about:blank" ) = to create the blank page in the object_IEDocWriteHTML ( $oIE, "<body> = The on the fly creation of the HTML pageSo far so good.But If I include the <Applet> in the <Body> how does it show ? Because the Applet need to get to the internet to get it's data.So once I have loaded the HTML page in the IE Object including the Applet, what' s next ?regardsptrex 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...
DaleHohm Posted May 26, 2006 Author Share Posted May 26, 2006 Ok ptrex, this works. The about:blank issue appears to be a JAVA plugin bug. This workaround requires a blank file on disk, but you can actually attach to any valid URL. What a waste of time, but I feel vindicated. #include <IE.au3> $sHTML = _ '<HTML><HEAD><TITLE>Bubbles</TITLE></HEAD><BODY>' & _ '<APPLET ' & _ 'CODEBASE="http://java.sun.com/applets/other/Bubbles/classes" ' & _ 'CODE="Bubbles.class" WIDTH=500 HEIGHT=500 ALIGN=MIDDLE>' & _ '</APPLET>' & _ '</BODY></HTML>' $oIE = _IECreate("c:\blank.htm") _IEBodyWriteHTML($oIE,$sHTML) 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...
ptrex Posted May 26, 2006 Share Posted May 26, 2006 @DaleHohm Thanks very, very much. Your the man You can imagine if you as an expert, didn't quite know how to get it to work. Imagine how much time I would have needed to get it rolling. If I ever would have got it rolling ? Anyhow if it works out I will give you something (an Embedded Customizable World Clock) in return. regards, ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
ptrex Posted May 26, 2006 Share Posted May 26, 2006 @DaleHohmThanks very, very much. Your the man You can imagine if you as an expert, didn't quite know how to get it to work. Imagine how much time I would have needed to get it rolling. If I ever would have got it rolling ? Anyhow if it works out I will give you something (an Embedded Customizable World Clock) in return.regards,ptrexSorry DaleHohm I ran your example and all I get to see is a blank page after ActiveX warnings, in an IE browser.No applet thereDoes the blank.htm page need any contents ? I just opened Notepad and save it as a Blank.htm ?ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
DaleHohm Posted May 26, 2006 Author Share Posted May 26, 2006 (edited) Sorry DaleHohm I ran your example and all I get to see is a blank page after ActiveX warnings, in an IE browser. No applet there Does the blank.htm page need any contents ? I just opened Notepad and save it as a Blank.htm ? ptrexI see I left some extra baggage in the string, so you may want to try again. I don't expect it to be a different result however. You should also try placing just the HTML in a file and open it. I suspect you'll find issues with JAVA configuration. Also, using a local class file would be less complex than the CODEBASE I used. #include <IE.au3> $sHTML = _ '<APPLET ' & _ 'CODEBASE="http://java.sun.com/applets/other/Bubbles/classes" ' & _ 'CODE="Bubbles.class" WIDTH=500 HEIGHT=500 ALIGN=MIDDLE>' & _ '</APPLET>' $oIE = _IECreate("c:\blank.htm") _IEBodyWriteHTML($oIE,$sHTML) Dale Edit: and yes, blank.htm was simply an empty file. Edited May 26, 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 Link to comment Share on other sites More sharing options...
ptrex Posted May 26, 2006 Share Posted May 26, 2006 @DaleHohm No success yet. But I'll fiddle around some and see how far I get. Thanks !! Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
DaleHohm Posted May 26, 2006 Author Share Posted May 26, 2006 @DaleHohmNo success yet. But I'll fiddle around some and see how far I get.Thanks !!Using the workaround, anything that you can get to work in a logcal HTM file you open with the browser should work.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...
DaleHohm Posted June 1, 2006 Author Share Posted June 1, 2006 Updated to T2.0-2 (see basenote). I expect this to be very stable. Please beat this up -- we are trying to get it into the production UDF release! Dale P.S. I did NOT have to remove the _IELoadWait from _IEFormSubmit as I had threatened. 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...
DarkAngelBGE Posted June 1, 2006 Share Posted June 1, 2006 getting strange errors with this code: expandcollapse popup#include <GUIConstants.au3> #include <IE.au3> GUICreate("freeSMS v1.0 by Tim Koschützki", 250, 150) GUICtrlCreateLabel("An:", 10, 10) $an = GUICtrlCreateInput("", 40, 10, 100) $message = GUICtrlCreateInput("", 40, 40, 170,70) $send = GUICtrlCreateButton("Versenden!",80,120,70,17) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $send smsSend(GUICtrlRead($an),GUICtrlRead($message)) ExitLoop EndSelect WEnd Func smsSend($to,$message) $oIE = _IECreate() _IENavigate($oIE, "http://www.5vor12.de/cgi-perl/freesms.cgi") _IELoadWait($oIE) $o_form = _IEFormGetObjByName($oIE, "sms") $o_to = _IEFormElementGetObjByName($o_form, "nummer") _IEFormElementSetValue($o_to, $to) _IEFormSubmit($o_form) _IELoadWait($oIE) _IELoadWait($oIE) Sleep(2000) _IEQuit($oIE) EndFunc Desktop\IE.au3 (1168) : ==> The requested action with this object has failed.: If IsObj($o_col) Then $i_length = $o_col.length If IsObj($o_col) Then $i_length = $o_col.length^ ERROR ;/ Anyone can help please? Link to comment Share on other sites More sharing options...
Zaxon Posted June 1, 2006 Share Posted June 1, 2006 getting strange errors with this code:;/ Anyone can help please?Sure. The error is probably in the _IEFormElementGetObjByName statement as it's implemented (not your fault).I had this problem with IE_T2.0_2.au3 and downgraded to IE_T2.0_1.au3 and it instantly went away. No other code or version changes necessary.So drop down a version and see how you go. Link to comment Share on other sites More sharing options...
Developers Jos Posted June 1, 2006 Developers Share Posted June 1, 2006 Sure. The error is probably in the _IEFormElementGetObjByName statement as it's implemented (not your fault).I had this problem with IE_T2.0_2.au3 and downgraded to IE_T2.0_1.au3 and it instantly went away. No other code or version changes necessary.So drop down a version and see how you go.Wouldn't it just be a matter of using the ComErrorHandler function to capure these errors ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Zaxon Posted June 1, 2006 Share Posted June 1, 2006 Wouldn't it just be a matter of using the ComErrorHandler function to capure these errors ?No. The error is in the IE.au3 library, not in the users code.If you can replace the version of the IE.au3, make zero changes to the user's code but suddenly your code works, then there's a problem with the libary (I'm not aware that the _IEFormElementGetObjByName function is deliberately behaving differently). There shouldn't be an error to be trapping in the first place. 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