As of v1.1.30.01, the compiler supports a wide range of variables in the parameter for #include.
Is it possible to expand this to the Source parameter for the FileInstall command as well?
E.g. I include some files in my script which I reference to using variables. Within these included files I use FileInstall to include certain files that are in a sub-directory relative to the included file. For me it would make most to reference to the source of these files using %A_LineFile%. This guarantees that when I want to include the same file in a different script, the FileInstall command inside these includes files still finds the correct files.
Now I have to rely on either the relative path relative to the main script location or the absolute path. The relative path differs for different scripts, the absolute path is likely to break at some point when decide to move my autohotkey top parent folder, when I reorganize my files or when I zip my whole ahk directory and want to share it with someone else who uses a different directory to unzip the files.
Support for A_LineFile in de Source parameter of the FIleInstall command is what I want to use most, but the other variables might be supported as well so it's consistent with #include parameters.
- Home Board index AutoHotkey (v2, current version) Wish List
- Search
-
- It is currently 15 Jun 2024, 21:54
- All times are UTC-05:00
FileInstall support for variables in Source parameter
Propose new features and changes
Jump to
- AutoHotkey Foundation
- About This Community
- Forum Issues
- AutoHotkey (v2, current version)
- Ask for Help (v2)
- Gaming
- Scripts and Functions (v2)
- Gaming
- Tutorials (v2)
- Tips and Tricks
- Wish List
- Suggestions on Documentation Improvements
- Bug Reports
- AutoHotkey Development
- AutoHotkey_H
- Ask for Help
- Development
- Editors
- Adventure IDE
- Old Topics
- AHK Studio
- Notepad++
- Pulovers Macro Creator
- SciTE4AutoHotkey
- Visual Studio Code
- Announcements
- General Discussion
- AutoHotkey (v1.1 and older)
- Ask for Help (v1)
- Gaming Help (v1)
- Scripts and Functions (v1)
- Gaming Scripts (v1)
- Tutorials (v1)
- Tips and Tricks (v1)
- General
- Other Utilities & Resources
- Other Programming Languages
- C/C++
- ASM
- C#
- KeySharp
- Off-topic Discussion
- RPA
- Other languages
- Looking for Volunteers in other languages
- Deutsch (German)
- Ich brauche Hilfe
- Spiele
- Skripte und Funktionen
- Tutorials
- Tooltime
- Allgemeines
- 中文 (Chinese)
- 请求帮助
- 脚本函数
- 教程资料
- 相关工具
- 其他
- Español (Spanish)
- Pedir Ayuda
- Automatización de Juegos
- Scripts y Funciones
- Tutoriales
- Otras Utilidades y Recursos
- General
- Русский (Russian)
- Помощь
- Скрипты для Игр
- Скрипты и библиотеки
- Статьи и руководства
- Прочие ресурсы и ПО.
- Свободное общение
- Français (French)
- J'ai besoin d'aide
- Scripts et Fonctions
- Tutoriels
- Autres Utilitaires et Ressources
- Hors Sujet
- Português (Portuguese)
- Ajuda e Suporte Geral
- Scripts e Funções
- Tutoriais
- Outras Ferramentas e Recursos
- Outros Assuntos
- 한국어 (Korean)
Who is online
Users browsing this forum: No registered users and 24 guests