how to identify auto it script issues

3 posts in this topic

Hi All,

I have created 50 autoit .exe file for pdf comparison while comparing pdf we facing some issues. while continuously executing script , at time system autoamtically hangs ,or not locating any other buttons. how to resolve this issue?/




Share this post

Link to post
Share on other sites

#2 ·  Posted (edited)

Let us ask the crystal ball and see if we can find the answer....



The crystal ball does not know.

Post some code that we can look at or use some debugging code when a function is called and when the script is doing something. Ex:

#include <Date.au3>

Global const $LOG_FILE = @ScriptDir & "\Logs\Debug.log"
Global $hWnd_notepad

LogFileWrite("Opening application Notepad" & @CRLF)


LogFileWrite("Waiting for notepad" & @CRLF)

    $hWnd_notepad = WinGetHandle("Untitled - Notepad")
Until (WinExists($hWnd_notepad))

LogFileWrite("Activating Notepad" & @CRLF)


LogFileWrite("Waiting for notepad to be active window" & @CRLF)


LogFileWrite("Appending some text" & @CRLF)

Send("This is some text")

LogFileWrite("Closing notepad without saving" & @CRLF)


Func LogFileWrite(Const ByRef $sMessage)
    FileWrite($LOG_FILE, _NowCalc() & " " & $sMessage)


Edited by InunoTaishou

Share this post

Link to post
Share on other sites

use for basic debugging:

Opt("TrayIconDebug", 1) ;0=no info, 1=debug line info

Or else start using a logfiile.


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

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