Jump to content

Recommended Posts

Posted

will this work...

Func OnAutoitExit()
    _Send()
    FileClose($file)
EndFunc

i have my code then at the end this i want to run that function, close the file, on autoit exit...

do i have to do more then just that func?

  • Moderators
Posted

I don't know... does it? :P

It should :lmao:.. Just make sure that you put "Exit" in.

Func OnAutoitExit()
    _Send()
    FileClose($file)
    Exit
EndFunc

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

  • Moderators
Posted

I had never used it before MHz, after reading through it, I agree with you.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

I had never used it before MHz, after reading through it, I agree with you.

A very handy function of AutoIt for cleaning up and anything else your script should finish with at the end of runtime. Not every script may suit using it but you may have been starving yourself of a good feature if you have not used it atleast once. :P

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
×
×
  • Create New...