Developers Jos Posted May 16, 2006 Developers Share Posted May 16, 2006 (edited) check this. i hope this helps.http://www.chronos-gaming.com/imagehost/images/4vX10246.jpgSure... did you see the release number behind the aut2exe program ?It is running the production in stead of the Beta version.The parameters look good... so can you check the exact directory for Beta aut2exe ?Should be: C:\program files\AutoIt3\Beta\Aut2exeEdit: or does an "Chrono tools.au3.INI" file exist that explicitly states to use the production version ? Edited May 16, 2006 by JdeB 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...
vikingnor Posted May 16, 2006 Share Posted May 16, 2006 i am not sure what u mean, but here is a picturehttp://www.chronos-gaming.com/imagehost/images/KHG10767.jpg Link to comment Share on other sites More sharing options...
Developers Jos Posted May 16, 2006 Developers Share Posted May 16, 2006 i am not sure what u mean, but here is a picturehttp://www.chronos-gaming.com/imagehost/images/KHG10767.jpgNope, I mean the directory where the Beta version of AutoIt3 is installed to.Also have a look at my edit of the previous message... 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...
vikingnor Posted May 16, 2006 Share Posted May 16, 2006 C:\Program Files\AutoIt3 Link to comment Share on other sites More sharing options...
Developers Jos Posted May 16, 2006 Developers Share Posted May 16, 2006 C:\Program Files\AutoIt3Ok how about the other question ???Edit: or does an "Chrono tools.au3.INI" file exist that explicitly states to use the production version ? 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...
vikingnor Posted May 16, 2006 Share Posted May 16, 2006 well i noticed that ini file did create it selfs after compile Oo [Autoit] aut2exe=C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe icon=D:\WorkBoard\Autoit\restarter\favicon.ico outfile=D:\WorkBoard\Autoit\Chronos Tool v3\Chronos tool.exe Compression=2 PassPhrase= Allow_Decompile=1 [Res] UpdateInformation=4 Comment=http://www.hiddensoft.com/autoit3/compiled.html Description=AutoIt v3 Compiled Script Fileversion= Fileversion_AutoIncrement=n LegalCopyright= Field1Name= Field1Value= Field2Name= Field2Value= [Other] Run_AU3Check=4 AU3Check_Parameter= Run_Before= Run_After= Link to comment Share on other sites More sharing options...
Developers Jos Posted May 16, 2006 Developers Share Posted May 16, 2006 (edited) well i noticed that ini file did create it selfs after compile OoJust remove it and try again using Alt+F7 The INI stuff is still in AutoIt3Wrapper because lots of people use it ...I use Compiler directives in all my scripts. Edited May 16, 2006 by JdeB 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...
vikingnor Posted May 16, 2006 Share Posted May 16, 2006 nope same error... btw i think its this new release that have bugs not the autoit. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 16, 2006 Developers Share Posted May 16, 2006 nope same error...btw i think its this new release that have bugs not the autoit.The error you get comes from using the production AUT2EXE as clearly shown in the screen capture you uploaded.So either the Script.AU3.INI is wrong or your registry entry for "BetaInstallDir" is wrong.The SciTE output pane should show:>Running:(3.1.1.122):C:\Program Files\AutoIt3\beta\aut2exe\aut2exe.exe 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...
vikingnor Posted May 16, 2006 Share Posted May 16, 2006 (edited) seems like i got a old version then Oo well my mistake and i learned it this time and btw thx! Edited May 16, 2006 by vikingnor Link to comment Share on other sites More sharing options...
DaleHohm Posted May 16, 2006 Author Share Posted May 16, 2006 nope same error...btw i think its this new release that have bugs not the autoit.Just to be clear for others, the error message you were getting was caused by your version of AutoIt not recognizing the "Switch...Case...EndSwitch" statement used in the new IE.au3 version (the interpreter sees the "Case" statement and assumes it should be a "Select" construct and cannot find "EndSelect"). "Switch" is available only in more recent beta versions of AutoIt.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...
vikingnor Posted May 16, 2006 Share Posted May 16, 2006 yes i noticed! also could you make the same thing just for firefox? Link to comment Share on other sites More sharing options...
DaleHohm Posted May 16, 2006 Author Share Posted May 16, 2006 also could you make the same thing just for firefox?No 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...
vikingnor Posted May 16, 2006 Share Posted May 16, 2006 really obivous answer ^^ Link to comment Share on other sites More sharing options...
DaleHohm Posted May 16, 2006 Author Share Posted May 16, 2006 The documentation has now been updated to reflect IE T2.0-1 -- see basenote. 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...
Khelmar Posted May 22, 2006 Share Posted May 22, 2006 (edited) I'm having a problem with a script I've written. I'm trying to automate access to this website. Basically, I've got a large text file with about 900 different items in it. The script reads the file and splits it into separate items. Then, it sends items one at a time to the website, and stores the output in a variable. Once done, it writes the variable out to a file. When I run the script, things seem to work fine until some point, where it crashes with the error: C:\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 ^ ERROR This has happened in various places, from the 2nd to the 60th item in the data set. Nothing I've done, including keeping the IE window in the foreground, seems to make any difference. Is there some bug in my code I'm not seeing? expandcollapse popup#include <IE.au3> $filename_open = FileOpenDialog("Open File", "P:\Florida_genome\", "All Files (*.*)", 1 ) If @error Then MsgBox(4096,"","No File(s) chosen") Exit(2) Else $filename_open = StringReplace($filename_open, "|", @CRLF) $file = FileOpen($filename_open, 0) $MultiFASTA = "" ProgressOn("Progress Meter", "", "0 percent") $prog=0 While 1 $prog=$prog+0.01 ProgressSet( $prog, $prog & " percent") $MultiFASTA = $MultiFASTA & FileReadLine($file) If @error = -1 Then ExitLoop $MultiFASTA = $MultiFASTA & chr(13) Wend FileClose($file) ProgressSet(100 , "Done", "Complete") sleep(500) ProgressOff() $FASTA=StringSplit($MultiFASTA, ">") EndIf ; Navigate to the CDD website $oIE=_IECreate("http://www.ncbi.nlm.nih.gov/Structure/cdd/wrpsb.cgi") $output = "" For $a = 2 to UBound($FASTA) ; Set the form and sequence field variables (leaving the rest of the ; options at their defaults) $o_form = _IEFormGetObjByIndex($oIE, 0) $o_seq = _IEFormElementGetObjByName($o_form, "SEQUENCE") $o_expect = _IEFormElementGetObjByName($o_form, "EXPECT") $o_graph = _IEFormElementGetObjByName($o_form, "GRAPH") ; Set the value of the sequence field _IEFormElementOptionselect ($o_expect, "0.000001", "1", "byValue", 0) _IEFormElementOptionselect ($o_graph, "0", "1", "byValue", 0) _IEFormElementSetValue($o_seq, chr(62) & $FASTA[$a]) _IEFormSubmit($o_form) $gene = StringSplit($FASTA[$a], " ") $output = $output & "---- Gene: " & $gene[1] & "----" $output = $output & chr(13) $output = $output & _IEBodyReadText($oIE) $output = $output & chr(13) $output = $output & chr(13) _IENavigate($oIE, "http://www.ncbi.nlm.nih.gov/Structure/cdd/wrpsb.cgi") Next $filename_save = FileOpenDialog("Open File", "P:\Florida_genome\", "All Files (*.*)", 1 ) If @error Then MsgBox(4096,"","No File(s) chosen") Exit(2) Else $file = FileOpen($filename_open, 2) FileWrite($file, $output) FileClose($file) EndIf I've attached a sample data file for testing; it's a much smaller subset of my actual data, but caused the same error as the other file. Thanks for any help!FS_aa_trunc.txt Edited May 22, 2006 by Khelmar Link to comment Share on other sites More sharing options...
DaleHohm Posted May 22, 2006 Author Share Posted May 22, 2006 Sorry, this is trouble caused by my trying to be too helpful after a call to _IEFormSubmit. I am anticipating that the page will reload after a form submittal and I call _IELoadWait for you. To work around this issue for the moment, change your _IEFormSubmit($o_form)oÝ÷ ÚÚºÚ"µÍÒQQÜTÝXZ] ÌÍÛ×ÙÜK BÒQSØYØZ] ÌÍÛÒQJ In the next test release I will remove the automatic _IELoadWait for _IEFormSubmit (and for _IELinkClick by the way) and the $f_wait parameters for those two functions will disappear. Here is the explanation of why this occurs: The trouble is that _IEFormSubmit is passed a form object rather than a browser object... from this I can get the document and window objects, but I cannot (for security reasons) walk back up and get the browser object. I therefor cannot verify that the new document object has been instantiated in the browser before I try to check its readyState -- it turns out to be a timing issue and sometimes works, sometimes fails. Dale I'm having a problem with a script I've written. I'm trying to automate access to this website. Basically, I've got a large text file with about 900 different items in it. The script reads the file and splits it into separate items. Then, it sends items one at a time to the website, and stores the output in a variable. Once done, it writes the variable out to a file. When I run the script, things seem to work fine until some point, where it crashes with the error: This has happened in various places, from the 2nd to the 60th item in the data set. Nothing I've done, including keeping the IE window in the foreground, seems to make any difference. Is there some bug in my code I'm not seeing? expandcollapse popup#include <IE.au3> $filename_open = FileOpenDialog("Open File", "P:\Florida_genome\", "All Files (*.*)", 1 ) If @error Then MsgBox(4096,"","No File(s) chosen") Exit(2) Else $filename_open = StringReplace($filename_open, "|", @CRLF) $file = FileOpen($filename_open, 0) $MultiFASTA = "" ProgressOn("Progress Meter", "", "0 percent") $prog=0 While 1 $prog=$prog+0.01 ProgressSet( $prog, $prog & " percent") $MultiFASTA = $MultiFASTA & FileReadLine($file) If @error = -1 Then ExitLoop $MultiFASTA = $MultiFASTA & chr(13) Wend FileClose($file) ProgressSet(100 , "Done", "Complete") sleep(500) ProgressOff() $FASTA=StringSplit($MultiFASTA, ">") EndIf ; Navigate to the CDD website $oIE=_IECreate("http://www.ncbi.nlm.nih.gov/Structure/cdd/wrpsb.cgi") $output = "" For $a = 2 to UBound($FASTA) ; Set the form and sequence field variables (leaving the rest of the ; options at their defaults) $o_form = _IEFormGetObjByIndex($oIE, 0) $o_seq = _IEFormElementGetObjByName($o_form, "SEQUENCE") $o_expect = _IEFormElementGetObjByName($o_form, "EXPECT") $o_graph = _IEFormElementGetObjByName($o_form, "GRAPH") ; Set the value of the sequence field _IEFormElementOptionselect ($o_expect, "0.000001", "1", "byValue", 0) _IEFormElementOptionselect ($o_graph, "0", "1", "byValue", 0) _IEFormElementSetValue($o_seq, chr(62) & $FASTA[$a]) _IEFormSubmit($o_form) $gene = StringSplit($FASTA[$a], " ") $output = $output & "---- Gene: " & $gene[1] & "----" $output = $output & chr(13) $output = $output & _IEBodyReadText($oIE) $output = $output & chr(13) $output = $output & chr(13) _IENavigate($oIE, "http://www.ncbi.nlm.nih.gov/Structure/cdd/wrpsb.cgi") Next $filename_save = FileOpenDialog("Open File", "P:\Florida_genome\", "All Files (*.*)", 1 ) If @error Then MsgBox(4096,"","No File(s) chosen") Exit(2) Else $file = FileOpen($filename_open, 2) FileWrite($file, $output) FileClose($file) EndIf I've attached a sample data file for testing; it's a much smaller subset of my actual data, but caused the same error as the other file. Thanks for any help! 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...
Khelmar Posted May 22, 2006 Share Posted May 22, 2006 Cool - thanks for the quick response! It's up to 38 so far, so we'll see how it goes. Link to comment Share on other sites More sharing options...
ptrex Posted May 24, 2006 Share Posted May 24, 2006 @DaleHohm I 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 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...
darkfriend Posted May 24, 2006 Share Posted May 24, 2006 Hi, i had the same error with the FormSubmit function...which calls a _IELoadWait, i tryed the work around in removing the Do...until (func: IELoadWait) where it crashes C:\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 ^ ERROR it 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 ... 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