mtjoeng Posted October 27, 2021 Report Posted October 27, 2021 being able to run a link would be apreaciated Run xx="a program link".lnk
John Dowson Posted October 27, 2021 Report Posted October 27, 2021 On 10/27/2021 at 7:42 PM, mtjoeng said: being able to run a link would be apreaciated Run xx="a program link".lnk Expand Why not just Run xx="a program link" Doesn't that work? I must admit I haven't tried it - the string is just passed to Windows to execute/run in a separate process. I will take a look when I get time (possibly next week) and can maybe convert the link to the destination, if needed. I will report back once I've taken a look. John
mtjoeng Posted October 28, 2021 Author Report Posted October 28, 2021 On 10/27/2021 at 8:09 PM, John Dowson said: Why not just Run xx="a program link" Doesn't that work? Expand [Programs] Run1=CLOSE,k:\FSUIPC7\linda.exe Run2=CLOSE,i:\TEKST\EFBx4Toolbar\00_Start_EFB_Server.bat Run3="c:\ProgramData\Microsoft\Windows\Start Menu\Games\VoiceAttack.lnk" Run4=CLOSE,"k:\Little Navmap\littlenavmap.exe" Run3 does not do anything [Programs] Run1=CLOSE,k:\FSUIPC7\linda.exe Run2=CLOSE,i:\TEKST\EFBx4Toolbar\00_Start_EFB_Server.bat Run3="k:\Program Files\VoiceAttack\VoiceAttack.exe" Run4=CLOSE,"k:\Little Navmap\littlenavmap.exe" Run3 Voiceattack does run. Weird what.
John Dowson Posted October 28, 2021 Report Posted October 28, 2021 On 10/28/2021 at 12:18 AM, mtjoeng said: Run3="c:\ProgramData\Microsoft\Windows\Start Menu\Games\VoiceAttack.lnk" Expand I think the issue is that you are using a .lnk, which is a shortcut file. Try creating a proper symbolic link instead, which is handled by the file system. See https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/ I find the following utility very useful for creating symbolic links and folder junctions (via Windows Explorer): https://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.html I could look into interpreting shortcut (.lnk) files, but this will be low priority so I am currently not sure when i will have time to look into this (but I will add to my list). But for now, try symbolic links instead. John
mtjoeng Posted October 30, 2021 Author Report Posted October 30, 2021 On 10/28/2021 at 9:30 AM, John Dowson said: I think the issue is that you are using a .lnk, which is a shortcut file. Try creating a proper symbolic link instead, which is handled by the file system. See https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/ I find the following utility very useful for creating symbolic links and folder junctions (via Windows Explorer): https://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.html I could look into interpreting shortcut (.lnk) files, but this will be low priority so I am currently not sure when i will have time to look into this (but I will add to my list). But for now, try symbolic links instead. John Expand I use standard MKLink for my directory junction Can't see how this would help here? Run2=KILL,"k:\Program Files\VoiceAttack\VoiceAttack.exe" -nofocus -profile "MSFS 2020 VR" does not work, nothing happens neither Run2=KILL,"k:\Program Files\VoiceAttack\VoiceAttack.exe" a BAT file starts but does not get killed with a xx.lnk on could enter a default directory for starting the linked program, perhaps that works
John Dowson Posted October 31, 2021 Report Posted October 31, 2021 On 10/30/2021 at 7:09 PM, mtjoeng said: I use standard MKLink for my directory junction Can't see how this would help here? Expand If you are already using links, as opposed to shortcuts, then no, it won't help. I would have expected Windows to handle the link, but sounds like its not doing that. I'll take a look sometime next week. On 10/30/2021 at 7:09 PM, mtjoeng said: Run2=KILL,"k:\Program Files\VoiceAttack\VoiceAttack.exe" -nofocus -profile "MSFS 2020 VR" does not work, nothing happens Expand Maybe try Run2=KILL,"k:\Program Files\VoiceAttack\VoiceAttack.exe -nofocus -profile /"MSFS 2020 VR/"" On 10/30/2021 at 7:09 PM, mtjoeng said: neither Run2=KILL,"k:\Program Files\VoiceAttack\VoiceAttack.exe" Expand Ok, then the command with arguments also isn't going to work....What does the FSUIPC7.log file show for this? On 10/30/2021 at 7:09 PM, mtjoeng said: a BAT file starts but does not get killed Expand If the BAT file is starting a separate (detached) thread, then FSUIPC will have no knowledge of that thread and won't able to kill it. John
mtjoeng Posted October 31, 2021 Author Report Posted October 31, 2021 Tried 'MSFS Addons Linker' is an MSFS mklink utility with an interface and a menu 'add programs to start with MSFS', here added Voiceattack does load and gets killed? It appears possible. On 10/31/2021 at 12:22 PM, John Dowson said: What does the FSUIPC7.log file show for this? Expand nothing, no voiceattack whatsoever, just 45000 LUA.1: beginning "k:\FSUIPC7\ipcReady.lua" LINDA prog not in RUN
John Dowson Posted October 31, 2021 Report Posted October 31, 2021 On 10/31/2021 at 1:24 PM, mtjoeng said: Tried 'MSFS Addons Linker' is an MSFS mklink utility with an interface and a menu 'add programs to start with MSFS', Expand Yes, but isn't that to manage the Community folder / MSFS add-ons? On 10/31/2021 at 1:24 PM, mtjoeng said: here added Voiceattack does load and gets killed? Expand Loaded (and killed) by what? Not sure what you are asking here... On 10/31/2021 at 1:24 PM, mtjoeng said: nothing, no voiceattack whatsoever, just Expand Then sounds like something else is going on. I'll take a look at these issues sometime next week and report back afterwards. John
mtjoeng Posted October 31, 2021 Author Report Posted October 31, 2021 On 10/31/2021 at 2:23 PM, John Dowson said: Yes, but isn't that to manage the Community folder / MSFS add-ons? Loaded (and killed) by what? Not sure what you are asking here... Then sounds like something else is going on. I'll take a look at these issues sometime next week and report back afterwards. John Expand just mentioning it is possible, MSFS Addons Linker is - also - a start shell with a button 'run MSFS' and after MSFS quit, one returns to MSFS Addons Linker, and it kills the batch added programs
John Dowson Posted November 2, 2021 Report Posted November 2, 2021 (edited) @mtjoeng Took a look and seems there was an issue determining the execution folder when passing command-line parameters. Could you try the attached version please. Should work with symbolic links and bat files, although I haven't tried the latter: FSUIPC7.exeFetching info... John Edited November 2, 2021 by John Dowson exe updated
mtjoeng Posted November 2, 2021 Author Report Posted November 2, 2021 On 11/2/2021 at 2:13 PM, John Dowson said: Should work with symbolic links and bat files, although I haven't tried the latter: Expand runs bat, exe, but not lnk and not VoiceAttack.exe, which seems peculiar to VoiceAttack.exe Run1=kill,i:\TEKST\EFBx4Toolbar\00_Start_EFB_Server.bat Run2=kill,"k:\Little Navmap\littlenavmap.exe" Run3=kill,"k:\Program Files\VoiceAttack\VoiceAttack.exe"
John Dowson Posted November 3, 2021 Report Posted November 3, 2021 (edited) On 11/2/2021 at 7:57 PM, mtjoeng said: runs bat, exe, but not lnk and not VoiceAttack.exe, which seems peculiar to VoiceAttack.exe Expand Links work just fine here. What are the properties of the link? This is what one of mine looks like (created with the link shell extension): VoiceAttack also starts ok via the [Programs] section for me. However, creating a link to the VoiceAttack.exe doesn't seem to work for some reason. It runs ok according to the FSUIPC7.log file but no window is displayed and no process running when I check in Task Manager. Maybe you can show me your FSUIPC7.log file - there should be errors reporting why the run failed. On 11/2/2021 at 7:57 PM, mtjoeng said: Run3=kill,"k:\Program Files\VoiceAttack\VoiceAttack.exe" Expand If the run error indicates a permissions issue, try installing VoiceAttack outside of your Program Files folder, which has some windows restrictions which can cause issues. John Edited November 5, 2021 by John Dowson Additional image added
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now