![]() In the 2nd and 3rd examples, parameters with spaces in them are enclosed in double quotes, which as a rule is the safest practice. Run, %ProgramFiles%\AutoHotkey\AutoHotkey.exe "C:\Scripts\Test Script.ahk" param1 "param2 with spaces" param3 ![]() Run, Notepad.exe "C:\My Documents\Address List.txt" To pass parameters, add them immediately after the name of the program or document as in these examples: In the above example, the %comspec% environment variable might resolve to C:\Windows\system32\cmd.exe on a typical system. To have a program use a specific folder as its working directory, consider this Win+C hotkey which creates a command prompt window in the specified directory: To have a program or document start off maximized, minimized, or hidden, consider the following hotkey subroutine, which assigns the Win+Z hotkey to launch two instances of Notepad, the 1st maximized and the 2nd minimized: Home | Download | Documentation | Changelog | Support | Forum Tutorial - Launch a program or document (continued) AutoHotkey Tutorial - Launch a program or document (continued)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |