Script dir

Advanced Macro Recorder/Editor.

Moderator: Pulover

Marco N
Posts: 16
Joined: 30 Oct 2021, 16:17

Script dir

Post by Marco N » 30 Nov 2021, 11:15

I'm searching for the way to get script full path folder but A_ScriptFullPath provides "C:\Program Files\MacroCreator\MacroCreator.exe" and not the script path. Why?

User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Script dir

Post by Pulover » 01 Dec 2021, 05:52

Because that's an AHK variable. See if CurrentFileName is what you're looking for.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)

Marco N
Posts: 16
Joined: 30 Oct 2021, 16:17

Re: Script dir

Post by Marco N » 01 Dec 2021, 06:54

Yes, I see that CurrentFileName can be use together with SplitPath to extract the OutDir that it is what I'm looking for.

Thank you
Marco

Post Reply

Return to “Pulovers Macro Creator”