AutoHotkey Community

It is currently May 27th, 2012, 11:51 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: August 25th, 2010, 7:25 pm 
Offline

Joined: September 28th, 2007, 3:56 am
Posts: 279
Location: New York
How would one "catch" errors when using AutoHotKey_L?

I use ADODB in my programs and say I write a SQL command that may cause an error, how would I retrieve the actual error that is coming from ADODB?

For example with VBA we have "If Err Then" and I use that to send the error to a different database that logs any errors encountered by my programs.

Or, my current function in AHK which is using DLL calls, I just read the result of the DLL call to see if there is an error and then I use another to retrieve the error message.

How can I intercept an error that is provided by AHK_L and replace it with a nicer looking one so I can log the error and also so my end users don't wonder what the heck the error message is saying?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 25th, 2010, 9:37 pm 
Not sure if you can yet - see ComObjError


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 26th, 2010, 12:30 pm 
Offline

Joined: September 28th, 2007, 3:56 am
Posts: 279
Location: New York
Ahhh, I see, thanks


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, MSN [Bot], Yahoo [Bot] and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group