Hello AHKers,
How do you disable the error pop-up like this?
https://i.imgur.com/gxodxSl.png
I tried using
#ErrorStdOut
and
#Warn All
#Warn UseEnv, Off
but it doesnt work
if nots not possible to disable it, atleast like hide or not show the script when the error occurs.
How to disable error pop-up? Topic is solved
Re: How to disable error pop-up?
You could try try. Or perhaps check first with FileExist() if the file you want to run exists.
Much more is hard to say with the info provided.
Much more is hard to say with the info provided.
Re: How to disable error pop-up?
should i put all my script inside the try? i tried it but it does not workgregster wrote: ↑17 Sep 2021, 07:28You could try try. Or perhaps check first with FileExist() if the file you want to run exists.
Perhaps there are also other ways, but impossibe to say with the info provided.
Re: How to disable error pop-up?
I would only take the line that actually causes this error.
Re: How to disable error pop-up? Topic is solved
Well, it does hide the error. I thought that was your intention...?!
Compare
and
Perhaps you should show some code...
Compare
Code: Select all
run somefilethatdoesnotexist.exe
Code: Select all
try run somefilethatdoesnotexist.exe
Re: How to disable error pop-up?
Thank you Sir Gregsters,gregster wrote: ↑17 Sep 2021, 07:49Well, it does hide the error. I thought that was your intention...?!
CompareandCode: Select all
run somefilethatdoesnotexist.exe
Perhaps you should show some code...Code: Select all
try run somefilethatdoesnotexist.exe
a follow-up question, for an alternative too.
Example, is it possible like
IF sample.ddl or ahksameple.exe not exist then close or msg important files missing then close it
Re: How to disable error pop-up?
Sure.
Code: Select all
try run somefilethatdoesnotexist.exe
catch {
msgbox some...exe is missing
ExitApp
}
Who is online
Users browsing this forum: AdsBot [Google], Spawnova and 103 guests