Jump to content
Hanukka

KB 3008923 error help

Recommended Posts

Hanukka

Hi guys, 

I was trying to automate a webpage after getting input from excel. The script worked fine for like 5 iterations but then stopped all of a sudden, I dont have the exact error msg now, but it was pointing to this in the IE UDF:-

Return SetError($_IESTATUS_Success, $oTemp.GetElementsByTagName($sTagName).length,

When i looked up the forum there was a similar question which said that I have to fix KB 3008923 update by uninstalling it, but I am unable to do that. 

here is the link for download:- ( i guess )

https://support.microsoft.com/en-us/help/3024777/error-0x800706f7-occurs-after-you-install-kb-3004394-and-then-run-windows-update-in-windows-7-and-windows-server-2008-r2

Does anybody know the proper steps to solve this??

Plus I wont be able to send the code here because of privacy policy n all by the company.

Desperately looking for a reply.....

Edited by Hanukka

Share this post


Link to post
Share on other sites
Hanukka

Fellas, This was the error exactly :-

"C:\Program Files (x86)\AutoIt3\Include\IE.au3" (1811) : ==> The requested action with this object has failed.:
Return SetError($_IESTATUS_Success, $oTemp.GetElementsByTagName($sTagName).length, $oTemp.GetElementsByTagName($sTagName))
Return SetError($_IESTATUS_Success, $oTemp^ ERROR

plss helpp

Share this post


Link to post
Share on other sites
Hanukka

For another update, I dont and did not have KB 3008923 as yall can see in this picture......

 

IMG_20170623_164827.jpg

 

Guys please help or provide link to the right area if you know the answer_/\_

Share this post


Link to post
Share on other sites
JLogan3o13

So you don't know the exact error, you can't share the code, and you don't even link to the "similar question" you found on the forum. @Hanukka take a moment and really think about whether you would be able to help someone with this amount of information...


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Hanukka

 

There I guess this thread matches mine but i havent found any conclusion

AND...Mr @JLogan3o13...listen

1) I know the EXACT error...i have mentioned in the 2nd post..I dont know the fix

2) Yes i am sorry, but i cant share the code. So please refer to the code in the attached post, else its ok

3) I forgot to put the link..there enjoy

and dude..why dont you focus on christmas a little bit, never have you helped with my error,  but only correct the format or taunt. 

Edited by Hanukka

Share this post


Link to post
Share on other sites
JLogan3o13

It isn't a taunt. Forum members are here to help, but you have a history of expecting people to first guess at what you are doing and then try to troubleshoot for you. A little thought behind your posts will help others help you.

Edit: And the error states that it cannot access the object. So, without seeing any code, do you have error checking in place to validate that $oTemp is an object?

Edited by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Hanukka

alright mate, thanks...

the error as you can see is from the IE.au3 udf, I do not check the $oTemp variable of the UDF at any place..

Ill provide a little update of my code in a while

Share this post


Link to post
Share on other sites
Jos
11 minutes ago, Hanukka said:

and dude..why dont you focus on christmas a little bit, never have you helped with my error,  but only correct the format or taunt. 

mmm....  I am sure this will really help to make your life easier around here. ;)

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Hanukka

Shit...I got a little hyper...sorry @JLogan3o13....

Peeps, i cant provide the code since it is long and more, it is super specific to thhe webapp and excel..

so ill just provide a blueprint, hope yall wont mind

Its like there is a loop which runs until there are non null rows in excel

in that I use various functions like:

_IEFrameGetObjByName

_IETagNameGetCollection

_IEFormElementCheckBoxSelect

PixelSearch....and a lot more

the thing is it worked for like 7 excel rows, ie. took the excel data, navigated to the right webpage, made the edits.

it get effed after that.

I changed the data, it worked till 7 rows, tried another similar script, worked till 8 or so...I am 95% sure that the script is error free.

There was something regarding memory leak or something discussed in the thread i last attached...wasnt resolved

Im using IE11...

Thats all i can provide yall with guys, pls refer the previous posts too...

N sorry again @JLogan3o13...please help me here if you can.

Share this post


Link to post
Share on other sites
mLipok
9 hours ago, Hanukka said:

Does anybody know the proper steps to solve this??

Did you look here:

How to use IE.au3  UDF with  AutoIt v3.3.14.x  

  • Like 1

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2018-03-17

Share this post


Link to post
Share on other sites
Jos
1 hour ago, Hanukka said:

Thats all i can provide yall with guys

In my humble opinion this won't be enough to help you.  Why can't you make a simple reproducer script that opens  8 pages from hardcoded URL's to see if that works or errors out. In case it works, add the bit to open the excel and read the url's from there. Then you can post it back to show us to see if we can help debug it.

In case you are unable to do so you really need to stop expecting people to help as you only get wild stabs in the dark.

Jos  

  • Like 1

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Hanukka

@mLipok...I tried using _IEerrorhandlerregister, but now the code stopped even before it used to...Its getting too much fr me, I tried using excel data on a simple website without frames n it worked...I have no clue how to explain further...Anyways here, this is the code that i was working with...(edited a bit)

#include <IE.au3>
#include <Excel.au3>                                                                                
#include <StringConstants.au3>
#include <Array.au3>
#include <MsgBoxUDF.au3>
#include <File.au3>


_IEErrorHandlerRegister()  ;FUCKS UP...I DONT KNOW HOW TO HANDLE MESELF

;~ #Excel update check

_MsgBox_SetButtonText(4, "Ya", "Na")
$ret = _MsgBox(4 + 262144, '                                  (O_o)', 'Do you want to update your excel file?')
If $ret == 6 Then
   $useret = Run("Assngen.exe ")
   ProcessWaitClose($useret)
EndIf

;~ ;;;;;;;;;;;;;;;;;;;;;;;-------Some function space!!!!

Func assnid($i)
   $temp = "AF" & $i
  $fag = _Excel_RangeRead($NoteBook, Default, $temp)
   If $fag == "" Then
      return -1
   EndIf
   ;ConsoleWrite($flag & @CRLF)
   return $fag
EndFunc

Func name($i)
   $temp = "D" & $i
   $fag = _Excel_RangeRead($NoteBook, Default, $temp)
   If $fag == "" Then
      return -1
   EndIf
   ;ConsoleWrite($flag & @CRLF)
   return $fag
EndFunc


Func rowno($i)
   $temp = "AG" & $i
  $fag = _Excel_RangeRead($NoteBook, Default, $temp)
   If $fag == "" Then
      return -1
   EndIf
   ;ConsoleWrite($flag & @CRLF)
   return $fag
EndFunc

Func reminder()
   $rID = _IEAttach('THE URL', 'url')
   If $rID <> "" Then
      ;WinSetState($rID, "", @SW_MINIMIZE)
      $dismiss = _IEGetObjById($rID, 'dismissAllBtn')
      _IEAction($dismiss, 'click')
      Sleep(2000)
      Return 0
   Else
      Return 0
   EndIf
EndFunc

Func datext($i)
   Local $array[4]
  $temp = "W" & $i
  $fag = _Excel_RangeRead($NoteBook, Default, $temp)
   If $fag == "" Then
      return -1
   EndIf
   $temp1 = StringTrimRight($fag, 4)
   $array = StringSplit($fag, '/')
   $yr = StringTrimLeft($array[3], 2)
   $fag = $temp1 & $yr
   return $fag
EndFunc

Func reason($i)
   $temp = "AH" & $i
  $fag = _Excel_RangeRead($NoteBook, Default, $temp)
   If $fag == "" Then
      return -1
   EndIf
   ;ConsoleWrite($flag & @CRLF)
   return $fag
EndFunc

Func morechk($x)
   Sleep(1500)
   $ret1 =  WinActive('AutoIt Error')
   $ret2 = WinActive('Message from webpage')
   ;ConsoleWrite($ret1)
   ;ConsoleWrite($ret2)
   If $ret1 <> 0 Or $ret2 <> 0 Then
      Sleep(1000)
      Send('{Enter}')
      _IEQuit($x)
      MsgBox(0, 'ERROR', 'Please update excel sheet')
      Exit
   EndIf
EndFunc

Func failogin($x)
  $tags = _IETagNameGetCollection($oIE1, 'span', 0)
   If $tags.innertext = 'Login failed, check username and password.' Then
      MsgBox(0, "ERROR", 'Wrong username / password')
      _IEQuit($x)
      Exit
   EndIf
EndFunc

Func colorfail($x)
    MsgBox(0, 'ERROR', 'RETRY')
   Sleep(3000)
   Send('{Enter}')
   _IEQuit($x)
EndFunc


$file = @ScriptDir & "\lolfile.txt"
FileOpen($file, 2)

;;;;;;;;;;;;Open Active Excel
$var = @ScriptDir & "\EXCEL.xlsx"
$oExcel = _Excel_Open()
$NoteBook = _Excel_BookOpen($oExcel, $var)
WinSetState("EXCEL", "", @SW_MINIMIZE)

;~ ;;;;;;;;;;;;;Opens the main login after GUI

$oIE1 = _IECreate('THE URL')
Sleep(2000)
;$name1 = $CmdLine[1]
;$psw1 = $CmdLine[2]
$name = _IEGetObjById($oIE1, 'loginID')
$psw = _IEGetObjById($oIE1, 'password')
_IEFormElementSetValue($name, 'test');$name1)
_IEFormElementSetValue($psw, 'test');$psw1)
Sleep(500)
$tags = _IETagNameGetCollection($oIE1, 'input')
For $tag In $tags
   $class_value = $tag.GetAttribute("value")
   If $class_value = "Continue" Then
      _IEAction($tag, 'click')
   EndIf
Next
Sleep(2000)
failogin($oIE1)
;;;;;;;;;;;;;;;;;;;;-Addn pg
$timer = 1
$temp = 0
While ($timer <> 60)
   $oIEX = _IEAttach('THE URL', 'url')
   $oIE2 = _IEAttach('THE URL', 'url')
   If $oIEX <> "" Or $oIE2 <> "" Then
      If $oIE2 <> "" Then
         $x = $oIEX
         ExitLoop
      Else
         $x = $oIE2
      EndIf
      $tags = _IETagNameGetCollection($oIEX, 'input')
      For $tag In $tags
       $class_value = $tag.GetAttribute("value")
       If $class_value = "Continue" Then
           _IEAction($tag, 'click')
           $temp = 1
           ExitLoop
       EndIf
      Next
      If $temp == 1 Then
         ExitLoop
      EndIf
   EndIf
   Sleep(1000)
   $timer+=1
WEnd

If $timer == 60 Then
   WinClose('[ACTIVE]')
EndIf

;;;;;;;;;;;;;;;;-main pg
;---open & maximize
$timer = 1
While ($timer <> 60)
   $oIE2 = _IEAttach('THE URL', 'url')
   If $oIEX <> "" Then
      $oIE2 = _IEAttach('THE URL', 'url')
   EndIf
   If $oIE2 <> "" Then
      ExitLoop
   EndIf
   Sleep(1000)
   $timer+=1
WEnd

If $timer == 60 Then
   WinClose('[ACTIVE]')
EndIf

Sleep(1500)
WinSetState("THE TITLE", "", @SW_MAXIMIZE)
Sleep(1500);
;---defined at #
$i = 2
$j = 0
$disflag = 0
$dheight = @DeskTopHeight
$dwidth = @DeskTopWidth
While(assnid($i)<>-1)
   Sleep(500)
   If assnid($i) == "" Then
      ContinueLoop
   EndIf
   $main_div = _IEGetObjById($oIE2, 'SOMETHING')
   $tags = _IETagNameGetCollection($main_div, 'div')
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   For $tag In $tags
      If $tag.id = "SOMETHING" Then ;# Click the home in the dropdown of Jobs
         _IEAction($tag, 'click')
      EndIf
   Next
   Sleep(2000)
   If $j == 0 Then
      $main_frame = _IEFrameGetObjByName($oIE2, 'SOMETHING')
   Else
      $main_frame = _IEFrameGetObjByName($oIE2, 'MAINFRAME');# Changes after first iteration
   EndIf
   $sub_frame = _IEFrameGetObjByName($main_frame, 'roleSearchFrame')
   $form = _IEGetObjById($sub_frame, 'attributeForm')
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   $check = _IEFormElementCheckBoxSelect($form, '6920558') ;# Select contact checkbox
   Sleep(2000)
   $tags = _IETagNameGetCollection($sub_frame, 'input')
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   For $tag In $tags
      $class_value = $tag.GetAttribute("id")
      If $class_value = "11461$" Then
         _IEAction($tag, 'click')
         If rowno($i) = 9999 Then
            ContinueLoop
         EndIf
         _IEFormElementSetValue($tag, assnid($i))
      EndIf
   Next
   Sleep(3000)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   For $tag In $tags
      $class_value = $tag.GetAttribute("id")
      If $class_value = "find" Then
         _IEAction($tag, 'click')
      EndIf
   Next
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   MouseClick("primary", 1092, 174, 1, Default);# First Random Click
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   Send('^f')
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   Send(assnid($i))
   Sleep(3000)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   MouseClick("primary", 1092, 174, 1, Default)
   Sleep(1000)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   $Array = PixelSearch (0, 89, $dwidth, $dheight, 0xFFFF00);#######################
   If @error == 1 Then
     colorfail($oIE2)
  EndIf
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   MouseClick('primary', $Array[0], $Array[1], 1)
   Sleep(5000)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   Send('^f')
   Sleep(1000)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   Send('End Assignment')
   Sleep(2500)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   MouseClick("primary", 1092, 174, 1, Default)
   Sleep(2000)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   $Array = PixelSearch (0, 89, $dwidth, $dheight, 0xFFFF00)
   Sleep(2000)
   If @error == 1 Then
     colorfail($oIE2)
   EndIf
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   MouseClick('primary', $Array[0], $Array[1], 1)   ;# Get the new window to change date
   morechk($oIE2)
   Sleep(4000)
   If $i = 8 Then
      MsgBox(0, "", 'now')
      Sleep(10000)
   EndIf
;
   $oIE3 = _IEAttach('THE URL', 'url')
;~    ConsoleWrite('wreck1' & @CRLF)
   $frame = _IEFrameGetObjByName($oIE3, '_IFRAMEID')
;~    ConsoleWrite('wreck2' & @CRLF)
   $ip = _IEGetObjById($frame, 'SOMETHING')
;~    ConsoleWrite('wreck3' & @CRLF)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   _IEAction($ip, 'click')
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
;~    ConsoleWrite('wreck4' & @CRLF)
   _IEFormElementSetValue($ip, datext($i))
   Sleep(2000)
;~    ConsoleWrite('wreck5' & @CRLF)
   $ip2 = _IEGetObjById($frame, 'SOMETHING')
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
;~    ConsoleWrite('wreck6' & @CRLF)
   _IEFormElementSetValue($ip2, reason($i))
   Sleep(2000)
   $oButtons = _IETagnameGetCollection($frame, "button")
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   For $oButton in $oButtons
      If String($oButton.innertext) = "Confirm" Then
         _IEAction($oButton, "click")
      EndIf
   Next
   Sleep(2000)
   FileWrite($file, name($i) & ", "& assnid($i) & @CRLF)
;~    ConsoleWrite(@error)
   $i+=1
;~    $j = 1
WEnd
MsgBox(0, 'Status', 'Completed')
_MsgBox_SetButtonText(0, "OK...Bye")
_MsgBox(0 + 262144, '        "\(^_^)', 'Bye')
Sleep(2000)
WinClose('Assignment Record')
Sleep(2000)
_IEQuit($oIE2)

  Works for 8 or so records n then gets effed

If yall have any recommendations n all pls do tell...else, its ok, i am currently using another script to run it for 5 iterations each time :P

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • Ahmed101
      By Ahmed101
      I have more than 12 workbooks opened together, if i wanted to attach to the last workbook opened it will take more than 1 minute !
      Is there any solution for that ?
    • Daniza
      By Daniza
      Hello! where should I start, if I want to have a Progress Bar while waiting for my File to be open, can I use WinWaitActive? Thanks,
    • Evolutionnext
      By Evolutionnext
      I am still a noob and not a programmer, would greatly appreciate your help.
       
      Task:
      Open Excel file with file path and name: C:\Users\GENOBEAUTYPC1\Desktop\ACTIVE BEAUTY LABELS\BeautyMe Label 200ml ACTIVE VERSION.xlsx
      This file path and name is saved in the variable: $sAnswer
      Go to Excel Tab called "formular"
      Go to Cell A1
      Insert the text saved in the variable: $sAnswer2
      ATTENTION!!! This has 2 problems.
      Problem number 1: This text contains special characters that need to be interpreted as raw text. (content is: Gemischt für#30 ml#Mindestens haltbar bis#Maria Wallerstorfer#Anwendung: Täglich 1x morgens auf das gereinigte Gesicht auftragen. Augenkontakt vermeiden.#Über 0 C° und unter 25 C° lagern.#Lot:N8A1028/D30/V2.1#Genome Plus GmbH#Georg-Wrede-St. 13, D-83395 Freilassing#GEN SERUM#DAY)
      Problem number 2: This textis longer than 255 characters.
       
      Can anyone help me?
       
      I try to do it really primitively by opening the excel, waiting until it is open, clicking where the tab is, clicking where the cell is and inserting the content of the variable, but I am stuck at the point where I am limited by 255 characters.
       

      ; Opening the right excel FileChangeDir
                  tooltip("File exists and is called:"&$sAnswer ,300,300)
                  ShellExecute($sAnswer ,"" ,"" ,"" , @SW_MAXIMIZE)
                  sleep(7000)
                  
                  tooltip("Now lets insert the right content into the excel",300,300)
                  MouseClick("left",226,1004)
                  MouseClick("left",52,179)
                  sleep(500)
                  Send("A1")
                  sleep(500)
                  send("{enter}")
                              tooltip("inserting label content",300,300)
                  sleep(500)
                  Send($sAnswer2,  1)
                                          tooltip("inserting INCIS",300,300)
                  sleep(5000)
                  Send($sAnswer3, 1)
                  sleep(5000)
       
       
       
    • AzgarD
      By AzgarD
      Hi guys. I know this is a newbie topic, very newbie, but i've read a lot of stuff and still don't get it. I just need to copy something from Excel cell, paste this in other program, copy something in this program and paste in other Excel cell. Something like...
      Copy A2 Use some WindowActivate and MouseMove stuff and CTRL+C (not a problem) Go back to the Excel sheet Paste that content in C2 Then Copy A3 Use some WindowActivate and MouseMove stuff and CTRL+C (not a problem) Go back to the Excel sheet Paste that content in C3 ... And it goes on The problem is, how can i "communicate" with Excel and do this row change? Like A2 to C2 and A3 to C3 ... In a efficient way that can be done like hundreds of times.
      Very newbie question but still not understanding this.
       
      Ty guys.
    • Gowrisankar
      By Gowrisankar
      Dear members of the forum,
      I need to open excel files that may or may not need a password and finally move the files that needs password to manual queue.
      Is there a fastest way to do this?
       
      PS: I have a huge respect for the rules of this forum. I am not asking assistance to override any security measure. I just need to segregate the files that needs passwords.
×