Aum364 Posted July 17, 2017 Report Posted July 17, 2017 Hi Pete, Just a small feature request, hope you don't mind my asking for it. When I start different programs in my full 737-cockpit obviously I use FSUIPC to start them. Now that P3Dv4 came I installed it under Win10, but constantly have problems if I do NOT start some of them as administrator. So my humble request would be: would it be possible to add a switch for the Run, Runif commands to start the prg in admin mode? Less important at present but it would also be great to have the Min, Max switches there, just like it is possible in Wideclient. best regards Achoriham
Pete Dowson Posted July 17, 2017 Report Posted July 17, 2017 2 hours ago, Aum364 said: So my humble request would be: would it be possible to add a switch for the Run, Runif commands to start the prg in admin mode? Sorry, but I don't think that's possible. I think they start in whatever mode the current process is in. But you could try changing the privilege level in the EXE properlties. Right click, select Properties, then the Compatibility tab. It's at the bottom of that tab I think. not sure it will work, but it is worth a try. Iounds like you made the mistake of letting the Sim install into the Program Files folders, which are protected? I can't think of any other reason for needing to use Admin mode. 2 hours ago, Aum364 said: Less important at present but it would also be great to have the Min, Max switches there, just like it is possible in Wideclient. That will probably only work if the Window you want Min or Max is the first or only one the program opens and uses default options (as for 'HIDE'). But I can put it on my long list for consideration. Pete
Aum364 Posted July 18, 2017 Author Report Posted July 18, 2017 4 hours ago, Pete Dowson said: But you could try changing the privilege level in the EXE properlties. Right click, select Properties, then the Compatibility tab. It's at the bottom of that tab I think. not sure it will work, but it is worth a try. Sounds like you made the mistake of letting the Sim install into the Program Files folders, which are protected? I can't think of any other reason for needing to use Admin mode. Hi Pete, Grateful for your answer, many thanks. Now I understand why admin is not possible. The compatibility tab is something I tried earlier, but didn't work. I try to avoid "Program Files" as much as possible. In this case it is ProsimUtils is the prg I start and it's on a different drive but as it runs its own webserver, it wouldn't connect unless run as admin. But it's fine if P3D is started as admin. To start a program minimized would be great, thanks for considering it. regards Achoriham
Pete Dowson Posted July 18, 2017 Report Posted July 18, 2017 3 hours ago, Aum364 said: In this case it is ProsimUtils is the prg I start and it's on a different drive but as it runs its own webserver, it wouldn't connect unless run as admin. I use PSU, but on a separate PC. I think it uses FSUIPC as well as its own web connection, and of course a direct Network style connection to the ProSim EXE. I've no idea why it appears to need to be in Admin mode (unless P3D is in Admin mode, for the FSUIPC connection). Have you asked Humberto about this, in the ProSim forum? BTW you could also run PSU using the "ext.run" function is a Lua plug-in. If the plug-in is called ipcInit.lua it will run as soon as FSUIPC is started. Then you have lots of options, including minimising. NOTE: FSUIPC5 had a problem with "ext.shell" and "ext.run" until a very recent fix. You'd need FSUIPC 5.103j at minimum -- look in the thread near here for the link. The title of the thread is obvious. Pete
Pete Dowson Posted July 18, 2017 Report Posted July 18, 2017 5 hours ago, Aum364 said: To start a program minimized would be great, thanks for considering it. Well, I looked at my source and was surprised to see that MIN and MAX options, by those names, are already there. Somehow they missed the document update. I don't know when they were added -- they're not mentioned in the main History document either. There is also another undocumented option: DELAY which waits 10 seconds before running the program. Pete
Aum364 Posted July 18, 2017 Author Report Posted July 18, 2017 Hi Pete, Many thanks for the tips! I haven't personally asked Humberto in the ProSim forum, because there was a similar message a bit earlier and Humberto's answer to the same problem was "You have to run PSU as Administrator" - so I thought there was nothing else to be done, although W10 seemingly dislikes it unfortunately. But problem SOLVED because I did a small ext.run function in a Lua plug-in as you suggested and it works perfectly! I also tried the undocumented Min/Max switch (thanks for the tip) but for some reason that didn't work for me. Perhaps the syntax I used was bad, I simply added the switch to a line, something like: RunIf5=READY,CLOSE,MIN,d:\!Prosim\utils\prosimutils\Prosimutils.exe but that doesn't work. Anyway, many thanks for your help and support! regards Achoriham
Thomas Richter Posted July 18, 2017 Report Posted July 18, 2017 Hi, just in case if this is the actual line you use, your Prosim folder really starts with '!' ? RunIf5=READY,CLOSE,MIN,d:\!Prosim\utils\prosimutils\Prosimutils.exe Thomas
Pete Dowson Posted July 18, 2017 Report Posted July 18, 2017 32 minutes ago, Aum364 said: I also tried the undocumented Min/Max switch (thanks for the tip) but for some reason that didn't work for me. It will suffer the same an the documented HIDE option -- if the Window first opened by the app is NOT the final one (and I think PSU is like this, as here it does take quite a while before it's main Window appears) then it can't change it. Pete
Thomas Richter Posted July 18, 2017 Report Posted July 18, 2017 Quote (and I think PSU is like this, as here it does take quite a while before it's main Window appears) That's because it's a .Net application, compiled at runtime. Thomas
Aum364 Posted July 18, 2017 Author Report Posted July 18, 2017 2 hours ago, Thomas Richter said: just in case if this is the actual line you use, your Prosim folder really starts with '!' ? Hi Thomas, Absolutely yes. For two decades or so I use something like that to "order" how directories appear on the top of the tree. Never ever had a problem with those. Be it ! or _ or - at the beginning it doesn't matter, as these aren't special characters if I'm not mistaken. regards Achoriham
Thomas Richter Posted July 18, 2017 Report Posted July 18, 2017 Hi, Quote Be it ! or _ or - at the beginning it doesn't matter, as these aren't special characters if I'm not mistaken. Question was only that it wasn't a typo against the actual name. Thomas
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