I am baffled. I have a script that works fine on 1 PC but doesn't work on my other PC. According to my IS department, they PCs are identical in setup.
PC1:
As I said, when I run this on PC1, it works just fine and does what it is suppose to do; click the "Release a New Mat'l/Doc" button. However, when I run this on PC2, I receive this error:[/indent]
Does anyone have any ideas of things I can try? I really need to be able to run this on multiple machines.
Thanks,
Kristine
PC1:
AutoIt ver 3.3.8.1
IE 8
PC2:AutoIt ver 3.3.8.1
IE 8
; ECM Master If Not WinActive("[TITLE:ECM_Master; CLASS:IEFrame]","http://lynpim.mycompany.com/pim/form/ECM_Master.html") Then _ WinActivate("[TITLE:ECM_Master; CLASS:IEFrame]","http://lynpim.mycompany.com/pim/form/ECM_Master.html") WinSetState ("[TITLE:ECM_Master; CLASS:IEFrame]","http://lynpim.mycompany.com/pim/form/ECM_Master.html", @SW_MAXIMIZE) $oIEMaster= _IECreate("http://lynpim.mycompany.com/pim/form/ECM_Master.html", 1) $oForm = _IEFormGetCollection ($oIEMaster, 0) $oQuery = _IEFormElementGetObjByName ($oForm, "htmlform") $elements = _IEFormElementGetCollection($oForm) For $element in $elements If StringInStr($element.value, "Release a New Mat'l/Doc") > 0 Then $New_Button = $element EndIf Next _IEAction($New_Button, "click")
As I said, when I run this on PC1, it works just fine and does what it is suppose to do; click the "Release a New Mat'l/Doc" button. However, when I run this on PC2, I receive this error:[/indent]
U:\AutoIt files\AU3 files\PIM ECMs\Test\!NewPartAnnotate.au3 (81) : ==> Variable must be of type "Object".:
For $element in $elements
For $element in $elements^ ERROR
Does anyone have any ideas of things I can try? I really need to be able to run this on multiple machines.
Thanks,
Kristine