There is limitation to Target text (MAX 260 characters) this limitation from the Windows, to pass this limitation use Batch command (GameName.bat), also the default display once the game exits not work (some problems)
Interesting, maybe I'll try using short paths. In the meantime, try putting TVGL in a short path such as C:\T\TVGameLauncher.exe. Same goes for the app you're trying to run.
Regarding this: "the default display once the game exits not work (some problems)". Do you mean you encounter problems even when the shortcut doesn't hit the 260 char limit? If so, you will have to be more specific about the exact problems you're facing.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I exit from the game it will not return to defaul screen (in my case DISPLAY6), also before two days it was (DISPLAY1) now I notice it's DISPLAY6 & DISPLAY7 (Note big deal)
Note:
- Thank for Create generic swapping shortcuts icons.
- I have make self installing for TVGameLauncher v1.2.1.1.exe (using WinRAR) try it
Regarding the screen names, I'm getting them from the OS, so they are likely to change when stuff like display driver update happens.
I'm a bit confused regarding the examples you provided - in Code 1, DISPLAY6 is the TV and DISPLAY7 is the monitor, but in Code 2 it's the other way around - so which is it? One of them has to work and the other has to fail, since what TVGL does is basically set the primary display to be the TV before launching the game, and then once the game exits set it back to the monitor.
Now, if you don't see the displays reverted to their original configuration, that probably means the executable TVGL is listening on (to know the game has exited), in your case "Evolve.exe" is not dead. Can you share the console logs you see (it might be easier to execute the command on a shell rather than using the shortcut so the console doesn't immediately close). Also can you verify "Evolve.exe" is started and working while the game is running and then dies when the game closes?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Windows\system32>C:\TVGL\TVGameLauncher.exe -e "C:\Program Files (x86)\Steam\steamapps\common\EvolveGame\bin64_SteamRetail\Evolve.exe" -w "C:\Program Files (x86)\Steam\steamapps\common\EvolveGame\bin64_SteamRetail" -k -m "\.\DISPLAY2" -t "\.\DISPLAY1"
Arguments parsed.
Preparing system...
Keeping computer awake...
Toggling display...
Executing 'nircmd\nircmd.exe' with arguments 'setprimarydisplay "\.\DISPLAY1"' and working directory 'nircmd'
Cannot start 'nircmd\nircmd.exe setprimarydisplay "\.\DISPLAY1"'. Error: System.ComponentModel.Win32Exception: The directory name is invalid
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at TVGameLauncher.Launcher.StartProcessAndWaitForExit(String executable, String arguments, String workingDir)
Executing 'C:\Program Files (x86)\Steam\steamapps\common\EvolveGame\bin64_SteamRetail\Evolve.exe' with arguments '' and working directory 'C:\Program Files (x86)\Steam\steamapps\common\EvolveGame\bin64_SteamRetail'
Waiting for process exit...
Process completed
Reverting system...
Toggling display...
Executing 'nircmd\nircmd.exe' with arguments 'setprimarydisplay "\.\DISPLAY2"' and working directory 'nircmd'
Cannot start 'nircmd\nircmd.exe setprimarydisplay "\.\DISPLAY2"'. Error: System.ComponentModel.Win32Exception: The directory name is invalid
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at TVGameLauncher.Launcher.StartProcessAndWaitForExit(String executable, String arguments, String workingDir)
All done!
C:\Windows\system32>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Interesting, maybe I'll try using short paths. In the meantime, try putting TVGL in a short path such as C:\T\TVGameLauncher.exe. Same goes for the app you're trying to run.
Regarding this: "the default display once the game exits not work (some problems)". Do you mean you encounter problems even when the shortcut doesn't hit the 260 char limit? If so, you will have to be more specific about the exact problems you're facing.
For me I use "C:\TVGL\TVGameLauncher.exe" (indeed I save some char).
Yes I have some problems check the below code dear.
Code 1 (237 char)
C:\TVGL\TVGameLauncher.exe -e "C:\Program Files (x86)\Steam\steamapps\common\EvolveGame\bin64_SteamRetail\Evolve.exe" -w "C:\Program Files (x86)\Steam\steamapps\common\EvolveGame\bin64_SteamRetail" -k -m "\.\DISPLAY6" -t "\.\DISPLAY7"
Code 2 (237 char)
C:\TVGL\TVGameLauncher.exe -e "C:\Program Files (x86)\Steam\steamapps\common\EvolveGame\bin64_SteamRetail\Evolve.exe" -w "C:\Program Files (x86)\Steam\steamapps\common\EvolveGame\bin64_SteamRetail" -k -m "\.\DISPLAY7" -t "\.\DISPLAY6"
When I exit from the game it will not return to defaul screen (in my case DISPLAY6), also before two days it was (DISPLAY1) now I notice it's DISPLAY6 & DISPLAY7 (Note big deal)
Note:
- Thank for Create generic swapping shortcuts icons.
- I have make self installing for TVGameLauncher v1.2.1.1.exe (using WinRAR) try it
~ Best regards ~
Regarding the screen names, I'm getting them from the OS, so they are likely to change when stuff like display driver update happens.
I'm a bit confused regarding the examples you provided - in Code 1, DISPLAY6 is the TV and DISPLAY7 is the monitor, but in Code 2 it's the other way around - so which is it? One of them has to work and the other has to fail, since what TVGL does is basically set the primary display to be the TV before launching the game, and then once the game exits set it back to the monitor.
Now, if you don't see the displays reverted to their original configuration, that probably means the executable TVGL is listening on (to know the game has exited), in your case "Evolve.exe" is not dead. Can you share the console logs you see (it might be easier to execute the command on a shell rather than using the shortcut so the console doesn't immediately close). Also can you verify "Evolve.exe" is started and working while the game is running and then dies when the game closes?
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Windows\system32>C:\TVGL\TVGameLauncher.exe -e "C:\Program Files (x86)\Steam\steamapps\common\EvolveGame\bin64_SteamRetail\Evolve.exe" -w "C:\Program Files (x86)\Steam\steamapps\common\EvolveGame\bin64_SteamRetail" -k -m "\.\DISPLAY2" -t "\.\DISPLAY1"
Arguments parsed.
Preparing system...
Keeping computer awake...
Toggling display...
Executing 'nircmd\nircmd.exe' with arguments 'setprimarydisplay "\.\DISPLAY1"' and working directory 'nircmd'
Cannot start 'nircmd\nircmd.exe setprimarydisplay "\.\DISPLAY1"'. Error: System.ComponentModel.Win32Exception: The directory name is invalid
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at TVGameLauncher.Launcher.StartProcessAndWaitForExit(String executable, String arguments, String workingDir)
Executing 'C:\Program Files (x86)\Steam\steamapps\common\EvolveGame\bin64_SteamRetail\Evolve.exe' with arguments '' and working directory 'C:\Program Files (x86)\Steam\steamapps\common\EvolveGame\bin64_SteamRetail'
Waiting for process exit...
Process completed
Reverting system...
Toggling display...
Executing 'nircmd\nircmd.exe' with arguments 'setprimarydisplay "\.\DISPLAY2"' and working directory 'nircmd'
Cannot start 'nircmd\nircmd.exe setprimarydisplay "\.\DISPLAY2"'. Error: System.ComponentModel.Win32Exception: The directory name is invalid
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at TVGameLauncher.Launcher.StartProcessAndWaitForExit(String executable, String arguments, String workingDir)
All done!
C:\Windows\system32>
Even I try to update the "nircmd.exe" to NirSoft - NirCmd v2.81 (try both x64 & x86)
Please navigate to C:\TVGL before you run the command (cd C:\TVGL)