Opened 18 years ago
Closed 18 years ago
#250 closed Feature Request (Rejected)
@CurrentScript
| Reported by: | McGod | Owned by: | J-Paul Mesnage |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
I would like to request a macro for the script you are currently running in, such as Array.au3 or My_Included_File.au3. This would help me a lot when I am Debugging.
@ScriptName only returns the name of the file executed.
@CurrentScript - Returns the name of where the code is being executed from.
Attachments (0)
Change History (6)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
There's already a @ScriptLineNumber. As for anything else, it's a lot of overhead for little gain. There are debugging techniques and tools to provide the same effect without requiring AutoIt to provide macros.
comment:4 by , 18 years ago
| Milestone: | → 3.2.11.13 |
|---|---|
| Owner: | set to |
| Resolution: | Rejected → Fixed |
Fixed in version: 3.2.11.13
comment:5 by , 18 years ago
| Resolution: | Fixed |
|---|---|
| Status: | closed → reopened |
Re-opening to fix JP's mistake. This is still Rejected. JP just accidentally triggered the script which automatically sets the fields he set.
comment:6 by , 18 years ago
| Milestone: | 3.2.11.13 |
|---|---|
| Resolution: | → Rejected |
| Status: | reopened → closed |

After thought:X
Maybe you could add In-Function Macros, Namely @CalledScript and @CalledLine or something to give you what script and where you were called from. ATM I use a couple parameters in the function for it.