Jump to content

Search the Community

Showing results for tags 'error exception recover'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. main() Func foo() Local $oWord Local $retorno = False Local $palavras[8] Local $achouHoras = False Local $Image = @MyDocumentsDir & "\a_teste.tif" _ScreenCapture_Capture($Image, 484, 243, 660, 263) Local $miDoc = ObjCreate("MODI.Document") If @error then recover() $miDoc.Create($Image) If @error then recover() $miDoc.Ocr(9, false, false) If @error then recover() ConsoleWrite($miDoc.Images(0)) If @error then recover() return something End func Func recover() main() End Func Func main() Do foo() sleep(2000) Until false End FuncDears, i have a script that must run 24h. I created a function to restart the execution if i have a error go to recover and back to execute again. But when the script have a error its stops the execution. What i have to do, to do not stop the execution like a Java try catch? Thanks Console: (94) : ==> The requested action with this object has failed.: $miDoc.Ocr(9, false, false) $miDoc^ ERROR >Exit code: 1 Time: 80.06
×
×
  • Create New...