Jump to content
EKY32

Avoid "AutoIt Error" message box in unknown errors

Recommended Posts

Place this in Top of script 😀

 

DllCall('kernel32.dll', 'uint', 'SetErrorMode', 'uint', 0x0001 + 0x0002 + 0x8000) ;no show Error Reporting msgbox
DllCall('kernel32.dll', 'uint', 'SetThreadErrorMode', 'dword', 0x0001 + 0x0002 + 0x8000, 'ptr', 0) ;no show Error Reporting msgbox

 

Share this post


Link to post
Share on other sites
3 hours ago, NewCommer said:

Place this in Top of script 😀

What’s it do, supress the message box altogether but still terminate the program? Or?


Code hard, but don’t hard code...

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...