My first post into this forum, so hope I am within the guidelines of do's and dont's on the community.
I have a script - say xyz.ahk. This script does certain actions when the user presses ctrl+shift+p. It's all working fine. I would be distributing this script in the exe form (xyz.exe). Since I want to distribute the script to others, I have also coded the script to do the following ...
Code: Select all
Detect if it is being run for the first time (I detect it based on whether xyz.ini file exists or not)
if it is the FirstTime
{
1) Show a welcome screen that tells the user about what the script does and to press ctrl+shift+p when required.
2) Makes a shortcut of the xyz.exe into the user's startup folder.
3) Get user's preferences and save in xyz.ini file.
}
What I would like to achieve is when the user double clicks on xyz.exe, it should start the script (as if the user has pressed ctrl+shift+p) and show the welcome screen. Is there any way to achieve that?
Thanks.