Ahk file

Author: s | 2025-04-25

★★★★☆ (4.9 / 2422 reviews)

Download opell dvd to ipod psp 3gp mp4 converter

FYI, an AHK script file's extension name doesn't to be .ahk, .ahk2, or anything which starts with .ahk such as .ahk-v2. The file extension name can be anything. If you want a smart file association where it'll determine which AHK version to use to run an .ahk script, a runner script needs to be created and be associated with .ahk files.

purely piano

AHK file extension - What is AHK file? How to open AHK files?

Wish to test your key maps without starting RocketLauncher you can download autohotkey from autohotkey.com. To create an ahk profile, you will first need to create an ahk file. You can do this by creating a new Text Document and renaming the file extension from .txt to .ahk. Now open your new ahk file with your favorite text editor and start adding your remaps. You can find more info about how to remap via ahk here. A list of support ahk keys can be found here. Information on how to remap keys and buttons can be found here and more information on how to remap joysticks and controllers can be found here. Save the ahk file with the remaps as one of the profile names specified in the profile section below. As an example, let's say you want to remap a to b and c to d using ahk for the rom "Mario" for Mame. You would create a "Mario.ahk" in "Keymapper Profiles\Mame" and in it you would find the following remaps:Code:a::bc::dJoyToKeyJoyToKey is shareware and a license for a fully functioning version will cost $7, but a functioning trial version with few limitations can be downloaded for free. JoyToKey enables you to control many softwares (e.g. web games, browsers, office applications or even Windows itself) by using your favorite windows joystick. Whenever you press joystick buttons and sticks, JoyToKey will emulate keyboard strokes or mouse inputs based on joystick input so that the target application works as if you used a real keyboard or mouse. You can create multiple configuration files to switch across different key/mouse assignments. It also supports the automatic association with target applications so that the config file will switch automatically when the target application changes. You can download the latest version of JoyToKey from their website www-en.jtksoft.net. JoyToKey is different from the other keymappers in the sense that the others require you to have a profile per player, but JoyToKey only requires you to have one cfg profile for all the players. In other words the multiplayer tag won't work on your profiles since the tags are inherent in joytokey's profiles. The way to differentiate between player 1 and player 2 is inside the joytokey menu and at the top you will see the tabs Joystick 1 and Joystick 2. Joystick 1 = Player 1 and Joystick 2 = Player 2. JoyToKey supports up to 16

love monsters

AHK File: How to open AHK file (and what it is)

It.In any case usually GNU/Linux has an inferior need (compared to windows) for GUI automation usually there is an alternative programmatic way to do the things.Disagree with you both. It's true that you don't need AHK in Linux because there are programs that can handle the things AHK can. But me and my friends have written som programs in AHK and now none of us are using Windows. Now we want a AHK version for Linux so that we can continue making programs in it. Mayby our next project will be AHK for Linux. #26 - Posted 17 July 2007 - 11:41 PM Love AHK! Back to top AutoGuest Guests Last active: Joined: -- The only problem of having AHK in linux is that so many functions are specific to windows which would mean a complete rewrite for linux. #27 - Posted 25 July 2007 - 12:55 AM Back to top koch Members 8 posts Last active: Jul 25 2007 01:00 AM Joined: 28 Apr 2007 The only problem of having AHK in linux is that so many functions are specific to windows which would mean a complete rewrite for linux.That's to bad, well I just have to live without it then. #28 - Posted 25 July 2007 - 01:01 AM Love AHK! Back to top AutoGuest Guests Last active: Joined: -- The only problem of having AHK in linux is that so many functions are specific to windows which would mean a complete rewrite for linux.That's to bad, well I just have to live without it then.What about all of the other scripting tools that were listed above? They might not feature the same functions, but at least they get the job done. #29 - Posted 25 July 2007 - 01:16 AM Back to top Elevator_Hazard Members 297 posts Last active: Feb 07 2011 12:10 AM Joined: 28 Oct 2006 Well AHK was made with VC++ and is probably packed with windows-specific stuff like windows tries to do. I've had some limited success on using wine by saving a .ahk file and using wine to run the "convert .ahk to .exe" program and compiling then running that exe file with wine. I realized I used the ChooseColor() function I found on the forum in one specific script I tested... It was weird because wine was able to emulate that .dll within it. I forgot that the same program also used COM to embed an IE control so of course that didn't work. Also on linux I've not seen an ahk-like language and I've also been trying to step up to something bigger like C++ or Python... I've not had much luck with learning either of them.I adore linux so much! I'm a fan of the philosophy behind open-source and the GNU license (the points 0-3 are great). I had a book on linux from someone my mom works with which talked about the beginning of linux. I find it wonderful that I can satisfy most all of my needs

AHK File Extension - What is it? How to open an AHK file?

20:46:02:305 | RL | INFO | +N/A | Main - RocketLauncher v1.2.0.1 (www.rlauncher.com)20:46:02:372 | RL | WARNING | +63 | Main - Logging level is debug or higher and will cause slowdowns to RocketLauncher's performance. When troubleshooting is finished, please lower logging level to restore proper performance.20:46:02:658 | RL | DEBUG | +281 | Registry.Read - Reading from Registry : RootKey=HKEY_LOCAL_MACHINE, SubKey=System\CurrentControlSet\Control\Windows, ValueName=ErrorMode,RegistryVersion=3220:46:02:658 | RL | DEBUG | +0 | Registry.Read - Registry Read finished, returning 020:46:02:659 | RL | INFO | +0 | Main - System Specs: RocketLauncher Dir: D:\Arcade\RocketLauncher RocketLauncher is: 32-bit OS: Microsoft Windows 10 Home SKU: Windows 8 Total Memory: 8107.97 MB Free Memory: 4038.71 MB Used Memory: 4069.266 MB SystemType: 64-bit Physical Processors: 1 Logical Processors: 4 GPU 1 Name: NVIDIA GeForce 940A GPU 1 RAM: -2048.00 MB GPU 1 Driver Version: 10.18.13.5910 GPU 2 Name: Intel(R) HD Graphics 5500 GPU 2 RAM: 1024.00 MB GPU 2 Driver Version: 20.19.15.4835 Sound 1 Device: Realtek High Definition Audio Sound 1 Status: Enabled Sound 2 Device: NVIDIA Virtual Audio Device (Wave Extensible) (WDM) Sound 2 Status: Enabled OS Language: English_United_States System Locale: en-US Formats Locale: en-US Windows UI Language: en-US Text Encoding: Windows-1252 OS Admin Status: No RL Compatibility Flags: Latest .Net Version: v4.0.30319 Monitor #1 (\\.\DISPLAY1): 1920x1080 (1920x1040 work) [32bit] [60hz] [Landscape] (Primary) Current AHK Desktop Width: 1920 Current AHK Desktop Height: 1080 Monitor #1 DPI: 100 ErrorMode: 0 AutoHotkey Path: AHK Version: 1.1.13.00 Unicode: No20:46:02:660 | RL | INFO | +0 | CheckFile - Checking if D:\Arcade\RocketLauncher\RocketLauncher.exe exists20:46:02:664 | RL | DEBUG | +0 | CheckFile - Attributes: FileDescription RocketLauncher FileVersion 1.2.0.1 LegalCopyright �2016 RocketLauncher ProductName djvj's one swell guy! ProductVersion 1.2.0.1 CompanyName Your favorite Front End companion! Visit us @ www.rlauncher.com File Size: 2195456 bytes Created: 11/6/2016 - 4:32:08 AM Modified: 5/7/2020 - 3:03:43 PM20:46:02:666 | RL | INFO | +15 | Main - Raw CLI received: "-s MAME -r mspacman -f D:\Arcade\HyperSpin\HyperSpin_1.5.1\HyperSpin.exe -p HyperSpin -c 1 -o 1"20:46:02:669 | RL | TRACE | +0 | File.__New - Creating new file object of: "D:\Arcade\RocketLauncher\Module Extensions\RocketLauncher.dll"20:46:02:673 | RL | INFO | +0 | File.CheckFile -. FYI, an AHK script file's extension name doesn't to be .ahk, .ahk2, or anything which starts with .ahk such as .ahk-v2. The file extension name can be anything. If you want a smart file association where it'll determine which AHK version to use to run an .ahk script, a runner script needs to be created and be associated with .ahk files. Two ways to open your .ahk files on your non-AHK-installed-in PC from here: Drag your .ahk file onto your .exe file (on the USB). It should run the .ahk file without AHK installed in. Copy the .exe file over (note: your.ahk file and.exe file must be in the same folder/directory). Rename the .exe file into the same name as your .ahk file.

AHK File Extension - What is an ahk file and how do I

Posts: 5 Threads: 1 Thanks Received: 0 in 0 postsThanks Given: 2 Joined: Oct 2020 2020-10-22 09:00 (This post was last modified: 2020-10-27 17:03 by Jean Lalonde.) I'm trying to grasp the use of placeholders (specifically selected file or folder in explorer) in QAP as provided in this how-to: would you pass the parameter on to an AutoHotkey script? For instance, I currently have an AHK script that combines two PDF files. How would I pass {SEL_NAME} in QAP to the AHK script?QAP is an incredible tool...Thanks! Posts: 3,070 Threads: 519 Thanks Received: 390 in 382 postsThanks Given: 198 Joined: Jan 2019 Hi,This trick would work with any scripting language that can process command line parameters. In your case, see this AHK help page: example, with a script like this:Code:MsgBox, % "Nb. of arguments = " . A_Args.Length() . "`nArgument 1 is: " . A_Args[1]In QAP, create an Application favorite for the location of your .ahk script. In the Advanced parameters, enter {SEL_NAME} (between double quotes it the arg may contain spaces.Click any file or folder, open the QAP menu and select your favorite.Et voilà ;-)Jean --Developer of Quick Access Popup and Quick Clipboard Editor Posts: 5 Threads: 1 Thanks Received: 0 in 0 postsThanks Given: 2 Joined: Oct 2020 (2020-10-22 15:17)Jean Lalonde Wrote: Hi,This trick would work with any scripting language that can process command line parameters. In your case, see this AHK help page: example, with a script like this:Code:MsgBox, % "Nb. of arguments = " . A_Args.Length() . "`nArgument 1 is: " . A_Args[1]In QAP, create an Application favorite for the location of your .ahk script. In the Advanced parameters, enter {SEL_NAME} (between double quotes it the arg may contain spaces.Click any file or folder, open the QAP menu and select your favorite.Et voilà ;-)JeanThank you for the response. I have tried adding {SEL_LOC} to the advanced parameters for the app favorite for my AHK script. I then used the %1% variable in my AHK script which should be replaced with the location and file name of the selected PDF file correct? For whatever, it does not work. The following code works in AHK:Code:PDDoc := ComObjCreate("AcroExch.PDDoc")PDDoc.Open(A_Desktop "\Test\Test.pdf")PDDoc2 := ComObjCreate("AcroExch.PDDoc")PDDoc2.Open(A_Desktop "\Test\Test2.pdf")PDDoc2.InsertPages(-1, PDDoc, 0, PDDoc.GetNumPages, 1) ; index-0, add at beginning from PDDoc all pages with bookmarksPDDoc2.Save(1, A_Desktop "\Test\Test_Merge.pdf")PDDoc.Close()PDDoc2.Close()When I replace line 4 in the above code with the following, it does not work:I'm assuming I'm doing this incorrectly.

AHK File - What is an .ahk file and how do I open it?

Take a quick look at our recent post explaining What Are Character Encodings and How They Differ. Getting The Script: Saving a File Some scripts go on for more than just a few lines; these are often offered as files rather than pasted in-page. We recently posted one of these larger scripts under How to Get Spelling Autocorrect Across All Applications on Your System, so that's what we'll use for the example. Right-click the link to the AHK file and select to save it locally: Again, make sure you save it as an AHK file. Running The Script You should now have an AHK file somewhere on your system, and AutoHotkey all set up. Simply double-click the AHK file to run it. When the script is running, you should see a small icon in your system tray. Hovering over this icon with your mouse will pop up a tooltip showing the name of the script. AutoHotkey and AutoHotkey_L use slightly different icons. If Your Script Doesn't Work Most scripts work right off the bat. However, if your script won't run and pops up an error message, go back to the AutoHotkey download page and get "AutoHotkey Basic" (the second option). Uninstall AutoHotkey_L, Install AutoHotkey Basic and try running the script again. You can also go back to "Saving a Snippet" and try saving the script with a different character encoding. Exiting the Script When you're done working with a script, right-click its system tray icon and select Exit.

File extension AHK - Simple tips how to open the AHK file.

BlockInput, MousemoveOff ; Enable mouse movement } Return,%Selected% ; Return the name of the selected item }IsFolder(FileOrFolder) { if InStr(FileExist(FileOrFolder), "D") return,%true% else return,%false% } #3 - Posted 28 February 2012 - 03:46 PM Back to top nimda Members 4368 posts Last active: Aug 09 2015 02:36 AM Joined: 26 Dec 2010 ExplorerGetFileName() returns a full filepath if I'm not mistaken, so you shouldn't use the ExplorerGetCurrentFolder() "" part. #4 - Posted 28 February 2012 - 07:55 PM Back to top viperskunk Guests Last active: Joined: -- I tried deleting the ExplorerGetCurrentFolder() "" part, but still no success. i also tried changing the WIN_VISTA to WIN_7, still no luck. #5 - Posted 28 February 2012 - 10:45 PM Back to top nimda Members 4368 posts Last active: Aug 09 2015 02:36 AM Joined: 26 Dec 2010 This exact code works for me.#NoEnvSetWorkingDir %A_ScriptDir%GroupAdd, Explore, ahk_class CabinetWClassGroupAdd, Explore, ahk_class ExploreWClass#ifWinActive,ahk_group Explore^!n:: ClipSaved := ClipboardAll Clipboard := "" Send ^c ClipWait, 0.5 file := Clipboard Clipboard := ClipSaved Run PortableApps\Notepad++Portable\Notepad++Portable.exe "%file%"return #6 - Posted 29 February 2012 - 05:22 PM Back to top viperskunk Guests Last active: Joined: -- This exact code works for me.#NoEnvSetWorkingDir %A_ScriptDir%GroupAdd, Explore, ahk_class CabinetWClassGroupAdd, Explore, ahk_class ExploreWClass#ifWinActive,ahk_group Explore^!n:: ClipSaved := ClipboardAll Clipboard := "" Send ^c ClipWait, 0.5 file := Clipboard Clipboard := ClipSaved Run PortableApps\Notepad++Portable\Notepad++Portable.exe "%file%"returnI tried using this too, but still no luck. I don't know what I may be doing wrong. :? #7 - Posted 29 February 2012 - 07:39 PM Back to top nimda Members 4368 posts Last active: Aug 09 2015 02:36 AM Joined: 26 Dec 2010 Perhaps you could post a video using screenr.com, from pasting the AHK code to pressing !^n. It would be helpful to include voice commentary, such as "... and now I press control-alt-n, and... nothing" for any actions which do not generate a visual signal. #8 - Posted 29 February 2012 - 10:36 PM Back to top viperskunk Guests Last active: Joined: -- This is what my entire ahk script looks like; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a; semicolon, such as this one, are comments. They are not executed.; This script has a special filename and path because it is automatically; launched when you run the program directly. Also, any text file whose; name ends in .ahk is associated with the program, which means that it; can be launched simply by double-clicking it. You can have as many .ahk; files as you want, located in any folder. You can also run more than; one .ahk file simultaneously and each will get its own tray icon.; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it; launches a web site in the default browser. The second is Control+Alt+N; and it launches a new Notepad window (or activates an existing one). To; try out these hotkeys, run AutoHotkey again, which will load this file.#z::Run C:\Users\Viper\Downloads\Portable\npp.5.9.8.bin\ansi\notepad++^!n::IfWinExist Untitled - Notepad WinActivateelse Run Notepadreturn; Note: From now on whenever you run AutoHotkey directly, this. FYI, an AHK script file's extension name doesn't to be .ahk, .ahk2, or anything which starts with .ahk such as .ahk-v2. The file extension name can be anything. If you want a smart file association where it'll determine which AHK version to use to run an .ahk script, a runner script needs to be created and be associated with .ahk files.

Comments

User8315

Wish to test your key maps without starting RocketLauncher you can download autohotkey from autohotkey.com. To create an ahk profile, you will first need to create an ahk file. You can do this by creating a new Text Document and renaming the file extension from .txt to .ahk. Now open your new ahk file with your favorite text editor and start adding your remaps. You can find more info about how to remap via ahk here. A list of support ahk keys can be found here. Information on how to remap keys and buttons can be found here and more information on how to remap joysticks and controllers can be found here. Save the ahk file with the remaps as one of the profile names specified in the profile section below. As an example, let's say you want to remap a to b and c to d using ahk for the rom "Mario" for Mame. You would create a "Mario.ahk" in "Keymapper Profiles\Mame" and in it you would find the following remaps:Code:a::bc::dJoyToKeyJoyToKey is shareware and a license for a fully functioning version will cost $7, but a functioning trial version with few limitations can be downloaded for free. JoyToKey enables you to control many softwares (e.g. web games, browsers, office applications or even Windows itself) by using your favorite windows joystick. Whenever you press joystick buttons and sticks, JoyToKey will emulate keyboard strokes or mouse inputs based on joystick input so that the target application works as if you used a real keyboard or mouse. You can create multiple configuration files to switch across different key/mouse assignments. It also supports the automatic association with target applications so that the config file will switch automatically when the target application changes. You can download the latest version of JoyToKey from their website www-en.jtksoft.net. JoyToKey is different from the other keymappers in the sense that the others require you to have a profile per player, but JoyToKey only requires you to have one cfg profile for all the players. In other words the multiplayer tag won't work on your profiles since the tags are inherent in joytokey's profiles. The way to differentiate between player 1 and player 2 is inside the joytokey menu and at the top you will see the tabs Joystick 1 and Joystick 2. Joystick 1 = Player 1 and Joystick 2 = Player 2. JoyToKey supports up to 16

2025-04-02
User4809

It.In any case usually GNU/Linux has an inferior need (compared to windows) for GUI automation usually there is an alternative programmatic way to do the things.Disagree with you both. It's true that you don't need AHK in Linux because there are programs that can handle the things AHK can. But me and my friends have written som programs in AHK and now none of us are using Windows. Now we want a AHK version for Linux so that we can continue making programs in it. Mayby our next project will be AHK for Linux. #26 - Posted 17 July 2007 - 11:41 PM Love AHK! Back to top AutoGuest Guests Last active: Joined: -- The only problem of having AHK in linux is that so many functions are specific to windows which would mean a complete rewrite for linux. #27 - Posted 25 July 2007 - 12:55 AM Back to top koch Members 8 posts Last active: Jul 25 2007 01:00 AM Joined: 28 Apr 2007 The only problem of having AHK in linux is that so many functions are specific to windows which would mean a complete rewrite for linux.That's to bad, well I just have to live without it then. #28 - Posted 25 July 2007 - 01:01 AM Love AHK! Back to top AutoGuest Guests Last active: Joined: -- The only problem of having AHK in linux is that so many functions are specific to windows which would mean a complete rewrite for linux.That's to bad, well I just have to live without it then.What about all of the other scripting tools that were listed above? They might not feature the same functions, but at least they get the job done. #29 - Posted 25 July 2007 - 01:16 AM Back to top Elevator_Hazard Members 297 posts Last active: Feb 07 2011 12:10 AM Joined: 28 Oct 2006 Well AHK was made with VC++ and is probably packed with windows-specific stuff like windows tries to do. I've had some limited success on using wine by saving a .ahk file and using wine to run the "convert .ahk to .exe" program and compiling then running that exe file with wine. I realized I used the ChooseColor() function I found on the forum in one specific script I tested... It was weird because wine was able to emulate that .dll within it. I forgot that the same program also used COM to embed an IE control so of course that didn't work. Also on linux I've not seen an ahk-like language and I've also been trying to step up to something bigger like C++ or Python... I've not had much luck with learning either of them.I adore linux so much! I'm a fan of the philosophy behind open-source and the GNU license (the points 0-3 are great). I had a book on linux from someone my mom works with which talked about the beginning of linux. I find it wonderful that I can satisfy most all of my needs

2025-03-28
User6947

Posts: 5 Threads: 1 Thanks Received: 0 in 0 postsThanks Given: 2 Joined: Oct 2020 2020-10-22 09:00 (This post was last modified: 2020-10-27 17:03 by Jean Lalonde.) I'm trying to grasp the use of placeholders (specifically selected file or folder in explorer) in QAP as provided in this how-to: would you pass the parameter on to an AutoHotkey script? For instance, I currently have an AHK script that combines two PDF files. How would I pass {SEL_NAME} in QAP to the AHK script?QAP is an incredible tool...Thanks! Posts: 3,070 Threads: 519 Thanks Received: 390 in 382 postsThanks Given: 198 Joined: Jan 2019 Hi,This trick would work with any scripting language that can process command line parameters. In your case, see this AHK help page: example, with a script like this:Code:MsgBox, % "Nb. of arguments = " . A_Args.Length() . "`nArgument 1 is: " . A_Args[1]In QAP, create an Application favorite for the location of your .ahk script. In the Advanced parameters, enter {SEL_NAME} (between double quotes it the arg may contain spaces.Click any file or folder, open the QAP menu and select your favorite.Et voilà ;-)Jean --Developer of Quick Access Popup and Quick Clipboard Editor Posts: 5 Threads: 1 Thanks Received: 0 in 0 postsThanks Given: 2 Joined: Oct 2020 (2020-10-22 15:17)Jean Lalonde Wrote: Hi,This trick would work with any scripting language that can process command line parameters. In your case, see this AHK help page: example, with a script like this:Code:MsgBox, % "Nb. of arguments = " . A_Args.Length() . "`nArgument 1 is: " . A_Args[1]In QAP, create an Application favorite for the location of your .ahk script. In the Advanced parameters, enter {SEL_NAME} (between double quotes it the arg may contain spaces.Click any file or folder, open the QAP menu and select your favorite.Et voilà ;-)JeanThank you for the response. I have tried adding {SEL_LOC} to the advanced parameters for the app favorite for my AHK script. I then used the %1% variable in my AHK script which should be replaced with the location and file name of the selected PDF file correct? For whatever, it does not work. The following code works in AHK:Code:PDDoc := ComObjCreate("AcroExch.PDDoc")PDDoc.Open(A_Desktop "\Test\Test.pdf")PDDoc2 := ComObjCreate("AcroExch.PDDoc")PDDoc2.Open(A_Desktop "\Test\Test2.pdf")PDDoc2.InsertPages(-1, PDDoc, 0, PDDoc.GetNumPages, 1) ; index-0, add at beginning from PDDoc all pages with bookmarksPDDoc2.Save(1, A_Desktop "\Test\Test_Merge.pdf")PDDoc.Close()PDDoc2.Close()When I replace line 4 in the above code with the following, it does not work:I'm assuming I'm doing this incorrectly.

2025-03-30
User8192

Take a quick look at our recent post explaining What Are Character Encodings and How They Differ. Getting The Script: Saving a File Some scripts go on for more than just a few lines; these are often offered as files rather than pasted in-page. We recently posted one of these larger scripts under How to Get Spelling Autocorrect Across All Applications on Your System, so that's what we'll use for the example. Right-click the link to the AHK file and select to save it locally: Again, make sure you save it as an AHK file. Running The Script You should now have an AHK file somewhere on your system, and AutoHotkey all set up. Simply double-click the AHK file to run it. When the script is running, you should see a small icon in your system tray. Hovering over this icon with your mouse will pop up a tooltip showing the name of the script. AutoHotkey and AutoHotkey_L use slightly different icons. If Your Script Doesn't Work Most scripts work right off the bat. However, if your script won't run and pops up an error message, go back to the AutoHotkey download page and get "AutoHotkey Basic" (the second option). Uninstall AutoHotkey_L, Install AutoHotkey Basic and try running the script again. You can also go back to "Saving a Snippet" and try saving the script with a different character encoding. Exiting the Script When you're done working with a script, right-click its system tray icon and select Exit.

2025-04-06
User5773

Thanks! Posts: 3,070 Threads: 519 Thanks Received: 390 in 382 postsThanks Given: 198 Joined: Jan 2019 Hi,I stopped using the old %1% variables. I recommend the A_Args object that is much easier to deal with, especially when you code with expressions (as you do).I can't to go too deep on AHK scripting here. This is a bit out of scope on this forum. You could find more help on the AHk forum In what QAP is concerned, you probably do what is required. Test your AHK script from the command line with the file location as parameter. When it will work this way, it will be easy to move it to QAP.Jean --Developer of Quick Access Popup and Quick Clipboard Editor Posts: 5 Threads: 1 Thanks Received: 0 in 0 postsThanks Given: 2 Joined: Oct 2020 (2020-10-22 16:04)Jean Lalonde Wrote: Hi,I stopped using the old %1% variables. I recommend the A_Args object that is much easier to deal with, especially when you code with expressions (as you do).I can't to go too deep on AHK scripting here. This is a bit out of scope on this forum. You could find more help on the AHk forum In what QAP is concerned, you probably do what is required. Test your AHK script from the command line with the file location as parameter. When it will work this way, it will be easy to move it to QAP.JeanWill do. Thanks. Posts: 5 Threads: 1 Thanks Received: 0 in 0 postsThanks Given: 2 Joined: Oct 2020 Hi Jean-Following up on this as I've read up on the link you shared and I'm still missing something. I'm attempting to use the following script replacing "C:\myfile.pdf" with A_Args[1] (uses pdftk via commandline to password protect a PDF file):Code: RunWait %comspec% /c pdftk "C:\myfile.pdf" output "%A_Desktop%\%A_MM%-%A_dd%-%A_YYYY%.pdf" user_pw "%A_YYYY%%A_MM%%A_dd%" allow printing "dont_ask", , hideI'm using the {SEL_LOC} per this link in Advanced Settings → Parameters. When I include a MsgBox with the script, the value returned is A_Args[1] instead of the passed parameter from QAP.My apologies if this is beyond QAP but figuring this out would help me automate so many things. Thanks! Posts: 3,070 Threads: 519 Thanks Received: 390 in 382 postsThanks Given: 198 Joined: Jan 2019 Yes, this is out of scope for this forum but let's make an exception :-)The A_Args[1] object requires to build the command using the "expression" AHK syntax instead of

2025-03-26

Add Comment