Hello,
I'm having a script running under XP which logs on to an SSL Website to add a user. Beacuse there is no valid certificate for this page I always get a certificate error.
In XP it was no problem to click on the link "continue anyway" via script. Now under Windows 7 this script doesn't work anymore. I'm getting the ErrorNumber 800706B5, Interface unknown and after that "Variable is not of type 'Object'. It looks like the created IE object is empty.
After wondering why this script worked fine for me but didn't work on any other computer I found out, that it only works if this scripts runs with administrative rights. I allready tried to run the compiled exe with the Microsoft ApplicationCompatibility Toolkit which didnÄt work either. I really could need a little help here ;-)
Thanks
Plobb
I'm having a script running under XP which logs on to an SSL Website to add a user. Beacuse there is no valid certificate for this page I always get a certificate error.
In XP it was no problem to click on the link "continue anyway" via script. Now under Windows 7 this script doesn't work anymore. I'm getting the ErrorNumber 800706B5, Interface unknown and after that "Variable is not of type 'Object'. It looks like the created IE object is empty.
func userAnlegen($sVn, $sNN, $sTage, $sStat,$sPW) $oIE= _IECreate("https://10.82.22.10/screens/aaa/guestuser_create.html",0,1,0) if WinWait("Zertifikatfehler:","",15)<>0 Then $sMyString = "Laden dieser Website fortsetzen (nicht empfohlen)." $oLinks = _IELinkGetCollection($oIE) For $oLink in $oLinks $sLinkText = _IEPropertyGet($oLink, "innerText") If StringInStr($sLinkText, $sMyString) Then _IEAction($oLink, "click") ExitLoop EndIf next EndIf
After wondering why this script worked fine for me but didn't work on any other computer I found out, that it only works if this scripts runs with administrative rights. I allready tried to run the compiled exe with the Microsoft ApplicationCompatibility Toolkit which didnÄt work either. I really could need a little help here ;-)
Thanks
Plobb