A_Error2Edit [An AHK MsgBox Error Addon]

Discuss other useful utilities, general computing tips & tricks, Internet resources, etc.
User avatar
Delta Pythagorean
Posts: 626
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

A_Error2Edit [An AHK MsgBox Error Addon]

09 Jul 2017, 03:25

We've all seen an AHK MsgBox error.
And we've all been a little frustrated on how it can only be so wide before the text starts wrapping around and it looks ugly that way,
and then there's the fact that you can't copy the error in any way besides making a new AHK file and that's a hassle in itself,
And it's just a hair puller.

Well, I'm here to solve that problem!
Introducing:
Pause for dramatic effect...
The A_Error2Edit Program!
All you have to do is run the program and now, every time you get a message from AHK saying that there was an error of some kind, it will gather information (Aka copying the text from the message box...) and uses it in the program to show a window with the message that's able to be copied and usable where ever!
There's four copy and paste methods:
  • No Changes
    AHK Forums Code
    AHK Comment
    Discord Highlight
All of them have special properties with different options.
  • No Changes
    - Does nothing to the error message. Plain as can be.
    AHK Forums Code
    - Puts the ahk forums "code" text around the message.
    AHK Comment
    - Just puts the message into the AHK comment block. /* */
    Discord Highlight
    - Doesn't change much. Just puts 3 backticks, or 3 ` before and after the text to allow it to be pasted into Discord with a monospaced font.
Here's the program!
https://dl.dropboxusercontent.com/s/1a6 ... t.exe?dl=0 DropBox Download.

[AHK]......: v2.0.6 | 64-bit
[OS].......: Windows 11 | 22H2 (OS Build: 22621.1555)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat


You should consider migrating to v2. Practice with small features first such as learning how to do Guis!
Remember to use [code] ... [/code] for your multi-line scripts for the forums.
just me
Posts: 9406
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: A_Error2Edit [An AHK MsgBox Error Addon]

09 Jul 2017, 03:50

Source code?
User avatar
Delta Pythagorean
Posts: 626
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: A_Error2Edit [An AHK MsgBox Error Addon]

09 Jul 2017, 04:08

just me wrote:Source code?
I'm not releasing my source code. Sorry.

[AHK]......: v2.0.6 | 64-bit
[OS].......: Windows 11 | 22H2 (OS Build: 22621.1555)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat


You should consider migrating to v2. Practice with small features first such as learning how to do Guis!
Remember to use [code] ... [/code] for your multi-line scripts for the forums.
just me
Posts: 9406
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: A_Error2Edit [An AHK MsgBox Error Addon]

09 Jul 2017, 05:50

Then I won't use your script. Sorry.
User avatar
boiler
Posts: 16705
Joined: 21 Dec 2014, 02:44

Re: A_Error2Edit [An AHK MsgBox Error Addon]

09 Jul 2017, 06:22

Delta Pythagorean wrote:and then there's the fact that you can't copy the error in any way besides making a new AHK file and that's a hassle in itself
Pressing control-c while the message box is active copies it to the clipboard.
User avatar
rommmcek
Posts: 1470
Joined: 15 Aug 2014, 15:18

Re: A_Error2Edit [An AHK MsgBox Error Addon]

09 Jul 2017, 06:26

I would expect from such a script an option, to open ahk file that produced error message, in default editor (if it's already not opened) and jump the cursor to the line of error!
User avatar
Delta Pythagorean
Posts: 626
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: A_Error2Edit [An AHK MsgBox Error Addon]

09 Jul 2017, 14:50

rommmcek wrote:I would expect from such a script an option, to open ahk file that produced error message, in default editor (if it's already not opened) and jump the cursor to the line of error!
I've tried doing that before, and it was impossible for me to do so, the message box only gives the name of the script (A_ScriptName) and not the full path (A_ScriptFullPath)
So, in short, it would only use the name of the script and not the full script name and path to it.

[AHK]......: v2.0.6 | 64-bit
[OS].......: Windows 11 | 22H2 (OS Build: 22621.1555)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat


You should consider migrating to v2. Practice with small features first such as learning how to do Guis!
Remember to use [code] ... [/code] for your multi-line scripts for the forums.
User avatar
rommmcek
Posts: 1470
Joined: 15 Aug 2014, 15:18

Re: A_Error2Edit [An AHK MsgBox Error Addon]

11 Jul 2017, 11:31

One way of work around would be:
- to manually choose the file
I could imagine beforehand having:
- a set of Favorite paths for script to check out a match for ahk file...
guest3456
Posts: 3453
Joined: 09 Oct 2013, 10:31

Re: A_Error2Edit [An AHK MsgBox Error Addon]

11 Jul 2017, 11:41

Delta Pythagorean wrote: I'm not releasing my source code. Sorry.
in the past, i think threads were deleted that didn't share the source code. this forum is for Scripts and Functions. if you dont want to release your source code, delete this thread and move it to Utilities forum

Guest

Re: A_Error2Edit [An AHK MsgBox Error Addon]

11 Jul 2017, 12:58

Looks like a compiled AutoHotkey script (mpress) so for those interested I'm sure its available.

I think you may be able to find the scripts full path, you have the script filename you say, so just parse a list of all processes - it should show the full paths to the running scripts, so you can at least suggest to the user a number of possible locations or if there is only one match open it - perhaps it needs to be modified as the post is quite old (don't know if it works in 64-bit for example). https://autohotkey.com/board/topic/9463 ... g-process/
gregster
Posts: 8886
Joined: 30 Sep 2013, 06:48

Re: A_Error2Edit [An AHK MsgBox Error Addon]

11 Jul 2017, 14:57

guest3456 wrote:
Delta Pythagorean wrote: I'm not releasing my source code. Sorry.
in the past, i think threads were deleted that didn't share the source code. this forum is for Scripts and Functions. if you dont want to release your source code, delete this thread and move it to Utilities forum
Indeed, wrong forum it is...!

People expect AHK 'Scripts and Functions' in this forum, as a kind of library of available (and modifiable) functions/modules/scripts. Executables with no source code available should be moved.
(Sure, it could be decompiled, but this seems to be neither the intention of the author, nor the scope of this subforum).
User avatar
Delta Pythagorean
Posts: 626
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: A_Error2Edit [An AHK MsgBox Error Addon]

11 Jul 2017, 20:44

gregster wrote:
guest3456 wrote:
Delta Pythagorean wrote: I'm not releasing my source code. Sorry.
in the past, i think threads were deleted that didn't share the source code. this forum is for Scripts and Functions. if you dont want to release your source code, delete this thread and move it to Utilities forum
Indeed, wrong forum it is...!

People expect AHK 'Scripts and Functions' in this forum, as a kind of library of available (and modifiable) functions/modules/scripts. Executables with no source code available should be moved.
(Sure, it could be decompiled, but this seems to be neither the intention of the author, nor the scope of this subforum).
I apoligize, I shall move this thread asap!

[AHK]......: v2.0.6 | 64-bit
[OS].......: Windows 11 | 22H2 (OS Build: 22621.1555)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat


You should consider migrating to v2. Practice with small features first such as learning how to do Guis!
Remember to use [code] ... [/code] for your multi-line scripts for the forums.
brutus_skywalker
Posts: 175
Joined: 24 Dec 2016, 13:16
Location: Antarctica

Re: A_Error2Edit [An AHK MsgBox Error Addon]

17 Jul 2017, 10:03

Delta Pythagorean wrote:
gregster wrote:
guest3456 wrote:
Delta Pythagorean wrote: I'm not releasing my source code. Sorry.
in the past, i think threads were deleted that didn't share the source code. this forum is for Scripts and Functions. if you dont want to release your source code, delete this thread and move it to Utilities forum
Indeed, wrong forum it is...!

People expect AHK 'Scripts and Functions' in this forum, as a kind of library of available (and modifiable) functions/modules/scripts. Executables with no source code available should be moved.
(Sure, it could be decompiled, but this seems to be neither the intention of the author, nor the scope of this subforum).
I apoligize, I shall move this thread asap!
Do so already!
Outsourcing Clicks & Presses Since 2004.
User avatar
Delta Pythagorean
Posts: 626
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: A_Error2Edit [An AHK MsgBox Error Addon]

17 Jul 2017, 16:56

Sorry, but I'm not allowed! I've asked a few Mods and Admins, none have said a word.

[AHK]......: v2.0.6 | 64-bit
[OS].......: Windows 11 | 22H2 (OS Build: 22621.1555)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat


You should consider migrating to v2. Practice with small features first such as learning how to do Guis!
Remember to use [code] ... [/code] for your multi-line scripts for the forums.
brutus_skywalker
Posts: 175
Joined: 24 Dec 2016, 13:16
Location: Antarctica

Re: A_Error2Edit [An AHK MsgBox Error Addon]

20 Aug 2017, 01:14

Here's the source,codebox doesn't display it properly.
Attachments
A_Error2Edit.ahk
THIS IS SPARTA!... i,i,i, MEAN, THIS IS AHK!
(14.1 KiB) Downloaded 139 times
Outsourcing Clicks & Presses Since 2004.

Return to “Other Utilities & Resources”

Who is online

Users browsing this forum: No registered users and 16 guests