Jump to content

how to kill auto it exe files


sat6804
 Share

Recommended Posts

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

Link to comment
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

Link to comment
Share on other sites

  • Developers

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

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...