jclent Posted February 20, 2012 Posted February 20, 2012 I have a script that works fine on one computer (Win7 64-bit) and creates this error on another (Win7 64-bit).Code:#include <IE.au3>#include <Array.au3>#include <Excel.au3>$cpm_link = "http://clio/sites/Viscent/tbp/Lists/CPM%20Spreadsheet/CALL_DATA.aspx"$cdg_link = "http://pln-dev-01/cdg/index.php"$oIE = _IECreate($cpm_link)MsgBox(1,"win", "Error: " & @error)The IE Window opens but I never get to the MsgBox....... Error occurs before that (on Wend in _IELoadWait)As I said works fine on other computer. If I copy the entire AUTOIT directory from the computer that it works, onto the new computer, the error goes away, but nothing ever happens after the IE window opens up.If I compile on the working computer and move the executable over, same thing. It sits there and does nothing. (Probably waiting for timeout, or so)This runs as a production job, and I CANNOT keep the old computer going. It needs to be resolved..... On working computer IE is version 8.0.8112, on not working computer 8.0.7601 (same effects when I upgraded to IE 9, so went back to 8).New computer runs AUTOIT V3.3.8.1 on working one it runs AUTOIT V3.3.6.1It scares me that a job that runs on one, doesn't work on the other. It is supposed to be a script file that runs period. How can I reliably deploy my scripts throughout the company if I will never know whether or not they are going to work.....Help is much appreciated.Jamesps: With Alt+D (Debug)$oIE = _IECreate($cpm_link)ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $oIE = ' & $oIE & @crlf & '>Error code: ' & @error & @crlf) ;### Debug ConsoleNever reaches the console....
Beege Posted February 20, 2012 Posted February 20, 2012 (edited) It scares me that a job that runs on one, doesn't work on the other. It is supposed to be a script file that runs period. How can I reliably deploy my scripts throughout the company if I will never know whether or not they are going to work.....You can never change things expect the same reliablity. You say you changed versions of IE. If script was written using the current IE you would have seen the problem and never deployed it. So as for the problem does the script actually crash? You should get some kind of red in the console if so. I tried the code you posted and got a msgbox. Edit: Ya never mind that last part. Read your post and forgot the title.. Does this crash?: #include <IE.au3> #include <Array.au3> #include <Excel.au3> $cpm_link = "http://clio/sites/Viscent/tbp/Lists/CPM%20Spreadsheet/CALL_DATA.aspx" $cdg_link = "http://pln-dev-01/cdg/index.php" $oIE = _IECreate($cpm_link, 0, 1, 0) _IELoadWait($oIE, 5000) MsgBox(1,"win", "Error: " & @error) Edited February 20, 2012 by Beege Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator
jclent Posted February 20, 2012 Author Posted February 20, 2012 Thanks Beege, well the problem has been resolved and it is totally unexpected......... Turn UAC off and everything works as before....... (Windows User Account Control) I still don't believe it, but it is true. Thanks for offering help. James
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