sat6804

how to kill auto it exe files

3 posts in this topic

Hi ,

I have created AutoIt .exe file for adobe pdf file comparison , while comparing time we facing some issues in adobe  at the time how to quit/kill/close/exit  that particular script?

Please share your thought on this ..

 

Thanks,

Sat6804

Share this post


Link to post
Share on other sites



HotKeySet("{End}", "Close")

Func Close()
    Exit 0
EndFunc
AutoItSetOption("WinTitleMatchMode", -2)
Global const $name_of_window = "Your Adobe Application Name"
Global Const $hWnd_adobe = WinGetHandle($name_of_window)

While (WinExists($hWnd_adobe))
    Sleep(100)
WEnd

ConsoleWrite("Your " & $name_of_window & " has been exited. Closing AutoIt exe" & @LF)

Exit 0

Or right click the tray icon and click exit

Share this post


Link to post
Share on other sites

Please stick to one topic, even when you have 2 questions about your problem script.

You can always kill the script from it's trayIcon (which is also used for the suggestion I made in the other thread.)
Other option is like provided by the previous poster.

Jos

 


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          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