marcusbx33 Posted September 20, 2014 Report Posted September 20, 2014 Hello, OS WIN7 X64 FSX SP2 FSUIPC V4.934 I have a problem in FSUIPC.ini at the [PROGRAM] section. this command bellow is not fonctional for starting VAC program (Voice Activated Command): Run1=CLOSE,"C:\Program Files (X86)\VAC System\VACSystem.exe leveld.xml,True" (does not work) Run1=CLOSE,"C:\Program Files (X86)\VAC System\VACSystem.exe leveld.xml" (this OK) In advance, thanks for the answer. Kind regards, Marc.
funkyp Posted September 20, 2014 Report Posted September 20, 2014 Hi,first let me say that I don't want to hijack the topic, but it seems to me that it relates to the same underlying problem. If you find this not related to the problem or inappropriate, just ingore. It seems that special characters (as the comma or back-slash) incur problems in the Run-command. I have one very similar. This is my programs section: [Programs] Run1="C:\Windows\surun.exe notepad.exe" Run2="C:\Users\Peter\Desktop\FSX\ReHIDMacros.cmd" Run3="C:\Windows\surun.exe c:\windows\notepad.exe" The "notepad-call" is just to have something for testing that should work in any case. And this are the relevant parts of the log-file: ********* FSUIPC4, Version 4.936a by Pete Dowson ********* ... FSUIPC4 Key is provided ... 47 Trying to connect to SimConnect Acc/SP2 Oct07 ... ... 920 Run: "C:\Windows\surun.exe notepad.exe" 967 Run: "C:\Users\Peter\Desktop\FSX\ReHIDMacros.cmd" 967 FSUIPC couldn't run: "C:\Windows\surun.exe c:\windows\notepad.exe" [Error=267] The first two call works, notepad comes up, HIDMacros is restarted. The third is not, although the path to surun.exe is the same as in the first call and the path to notepad.exe is correct. It seems that the appearance of the program parameter containing special charactes as the backslash are indicative for the problem. Hope this helps to identify the root cause. For the time being I can help myself with a workaround. best regards, Peter
Pete Dowson Posted September 20, 2014 Report Posted September 20, 2014 [Programs] Run1="C:\Windows\surun.exe notepad.exe" Run2="C:\Users\Peter\Desktop\FSX\ReHIDMacros.cmd" Run3="C:\Windows\surun.exe c:\windows\notepad.exe" I think in that last example "c:\windows\notepad.exe" is a parameter to the program. the "" enclosing it all makes it part of the program pathname. Try Run3="C:\Windows\surun.exe" c:\windows\notepad.exe I think only the program pathname needs quotes, and actually it only needs those if there are spaces within. The quotes make the spaces part of the name, hence the parameters get to be part of that name if you keep them within quotes. This is all to do with how Windows accepts command lines, it is nothing to do with FSUIPC itself. The same applies to the OP's query: Run1=CLOSE,"C:\Program Files (X86)\VAC System\VACSystem.exe leveld.xml,True" (does not work) should probably be: Run1=CLOSE,"C:\Program Files (X86)\VAC System\VACSystem.exe" leveld.xml,True Pete
funkyp Posted September 20, 2014 Report Posted September 20, 2014 Indeed, this one worked: "C:\Windows\surun.exe" c:\windows\notepad.exe However, this one not (same error): "C:\Windows\surun.exe" "c:\windows\notepad.exe" I don't know which parser is handling that, so might be, that if you ever need to communicate a parameter with empty spaces (e.g. a path) then the problem might reoccur. For my problem I created just another batch-file "InitFSX.cmd" which is called by FSUIPC's [PROGRAMS] section. The file collects all the more complicated startups commands and does not anymore require parameters from the command line. That solved the problem, too. bests, Peter
Pete Dowson Posted September 20, 2014 Report Posted September 20, 2014 However, this one not (same error): "C:\Windows\surun.exe" "c:\windows\notepad.exe" I don't know which parser is handling that, so might be, that if you ever need to communicate a parameter with empty spaces (e.g. a path) then the problem might reoccur. I think that should be: "C:\Windows\surun.exe" c:\windows\notepad.exe or even just C:\Windows\surun.exe c:\windows\notepad.exe unless "surun.exe" handles the "". And whether or not spaces in parameters are handled depends solely on the program processing them. I'm pretty sure everything after the program identity can be handled in whatever way the program wants to. Pete
Portanav Posted August 15, 2018 Report Posted August 15, 2018 Is their a way to add a delay to a program starting in FSUIPC5 [Programs]?
Portanav Posted August 15, 2018 Report Posted August 15, 2018 Is their a way to add a delay to a program starting in FSUIPC5 [Programs]?
spokes2112 Posted August 16, 2018 Report Posted August 16, 2018 If FSUIPC 5 contains the same run functions as FSUIPC 4 then take a look at the \modules\FSUIPC Documents\FSUIPC Documents\FSUIPC# for Advanced Users.pdf look for the "Programs: facilities to load and run additional programs" section. If it all carried over from FSUIPC 4 then something like the following "may" work - (as an example) RunIf1=READY,DELAY,C:\Windows\System32\notepad.exe The above will give a 10 second delay "after" the sim is up and running. Again this is under the assumption that the facilities are still available in FSUIPC 5 No hurting in giving it a try.. Pete will be back soon and can give further advise.
Pete Dowson Posted August 16, 2018 Report Posted August 16, 2018 3 hours ago, spokes2112 said: The above will give a 10 second delay "after" the sim is up and running. Again this is under the assumption that the facilities are still available in FSUIPC 5 Yes, they are. Pete
Portanav Posted August 16, 2018 Report Posted August 16, 2018 I tried the DELAY and it works great. Can I increase the 10 in DELAY=10, upwards? Thanks.
Pete Dowson Posted August 16, 2018 Report Posted August 16, 2018 1 hour ago, Portanav said: Can I increase the 10 in DELAY=10, upwards? No, not as it stands at the moment. No one has ever asked for that, and I'm not sure how easy it would be to implement, because the 10 seconds are from an event used by other parts. Using a Lua plug-in which loads a program using the ext library functions would allow you to do what you want, with more flexibility. The Lua plug-in facilities were added specifically to meet needs not thought of before or not asked for at a more appropriate time. Take a look at that. The Lua documentation is in your FSYUIPC Documents folder. Pete
Portanav Posted September 4, 2018 Report Posted September 4, 2018 On 8/16/2018 at 4:49 AM, spokes2112 said: If FSUIPC 5 contains the same run functions as FSUIPC 4 then take a look at the \modules\FSUIPC Documents\FSUIPC Documents\FSUIPC# for Advanced Users.pdf look for the "Programs: facilities to load and run additional programs" section. If it all carried over from FSUIPC 4 then something like the following "may" work - (as an example) RunIf1=READY,DELAY,C:\Windows\System32\notepad.exe The above will give a 10 second delay "after" the sim is up and running. Again this is under the assumption that the facilities are still available in FSUIPC 5 No hurting in giving it a try.. Pete will be back soon and can give further advise. Thanks. tried it and it works.
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