home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Mounting Game images automatically
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="chefkoch" data-source="post: 150166" data-attributes="member: 10438"><p>Hi johngc</p><p></p><p>Most important information for you are the command-line switches, i think. You can find them on <a href="http://www.daemon-tools.cc/dtcc/daemonhelp.php?helppage=16#commandlineswitches" target="_blank">DAEMON Tools Online Help</a>.</p><p></p><p>You can use them with following tools/solutions.</p><p></p><p><strong>Auto-IT</strong></p><p>Do you know <a href="http://www.autoitscript.com/autoit3/" target="_blank">AutoIt</a>? It's a simple, but powerful scripting language. I often use it for such tasks.</p><p></p><p>Here is an example script, which you can use as a base.</p><p>[code]</p><p>; Mounting disc image for game</p><p>RunWait('"' & @ProgramFilesDir & '\DAEMON Tools\daemon.exe"-mount 0,"C:\PATH_TO_IMAGE\...\nameofimage.cue"')</p><p></p><p>; Running game</p><p>RunWait('"' & @ScriptDir & '\game.exe"')</p><p></p><p>; Unmounting disc image</p><p>RunWait('"' & @ProgramFilesDir & '\DAEMON Tools\daemon.exe"-unmount 0')</p><p>[/code]</p><p></p><p>Then you are able to create an "GameLuncher.exe" for example. You only need to set this exe in MP. So if you need to change anything to run a game don't have to change anything in MPconfig, just the script.</p><p></p><p><strong>Batch-Files</strong></p><p>You can use simple batch files, which can also do the job.</p><p></p><p>[CODE]</p><p>rem Mounting disc image for game</p><p>"%ProgramFiles%\DAEMON Tools\daemon.exe"-mount 0,"C:\PATH_TO_IMAGE\...\nameofimage.cue"</p><p></p><p>rem Running game</p><p>"PathToGameDir\game.exe"</p><p></p><p>rem Unmounting disc image</p><p>"%ProgramFiles%\DAEMON Tools\daemon.exe"-unmount 0</p><p>[/CODE]</p><p></p><p><strong>MP-Solution</strong></p><p>You are able to set a pre- and post-lunch command in MPconfig > MyPrograms - Setup > Add a </p><ul> <li data-xf-list-type="ul">FileLuncher item to the list > on the righ of "Wait for Exit", there is a button with an arrow. if you click it you will get yet another window, where you can enter the commands.<br /> + config command is in MP, no need for 3rd party tools<br /> + you can use details, information for each game<br /> - The pre-/post-commands are just for the whole fileluncher, it is not possible to set different commands for each game.</li> <li data-xf-list-type="ul">ApplicationeLuncher item to the list > on the righ of "Wait for Exit", there is the same button with an arrow for configuring pre-/post commands.<br /> + config command is in MP, no need for 3rd party tools<br /> + The pre-/post-commands are for this one and appluncher, you need to add one per game and set different commands for each game.<br /> - if i am right, you can not use details, information for each game</li> </ul><p></p><p>I prefer the autoit solution. It's up to you what you wanna choose.</p><p></p><p>regards</p><p>chefkoch</p></blockquote><p></p>
[QUOTE="chefkoch, post: 150166, member: 10438"] Hi johngc Most important information for you are the command-line switches, i think. You can find them on [URL="http://www.daemon-tools.cc/dtcc/daemonhelp.php?helppage=16#commandlineswitches"]DAEMON Tools Online Help[/URL]. You can use them with following tools/solutions. [B]Auto-IT[/B] Do you know [URL="http://www.autoitscript.com/autoit3/"]AutoIt[/URL]? It's a simple, but powerful scripting language. I often use it for such tasks. Here is an example script, which you can use as a base. [code] ; Mounting disc image for game RunWait('"' & @ProgramFilesDir & '\DAEMON Tools\daemon.exe"-mount 0,"C:\PATH_TO_IMAGE\...\nameofimage.cue"') ; Running game RunWait('"' & @ScriptDir & '\game.exe"') ; Unmounting disc image RunWait('"' & @ProgramFilesDir & '\DAEMON Tools\daemon.exe"-unmount 0') [/code] Then you are able to create an "GameLuncher.exe" for example. You only need to set this exe in MP. So if you need to change anything to run a game don't have to change anything in MPconfig, just the script. [B]Batch-Files[/B] You can use simple batch files, which can also do the job. [CODE] rem Mounting disc image for game "%ProgramFiles%\DAEMON Tools\daemon.exe"-mount 0,"C:\PATH_TO_IMAGE\...\nameofimage.cue" rem Running game "PathToGameDir\game.exe" rem Unmounting disc image "%ProgramFiles%\DAEMON Tools\daemon.exe"-unmount 0 [/CODE] [B]MP-Solution[/B] You are able to set a pre- and post-lunch command in MPconfig > MyPrograms - Setup > Add a [LIST] [*]FileLuncher item to the list > on the righ of "Wait for Exit", there is a button with an arrow. if you click it you will get yet another window, where you can enter the commands. + config command is in MP, no need for 3rd party tools + you can use details, information for each game - The pre-/post-commands are just for the whole fileluncher, it is not possible to set different commands for each game. [*]ApplicationeLuncher item to the list > on the righ of "Wait for Exit", there is the same button with an arrow for configuring pre-/post commands. + config command is in MP, no need for 3rd party tools + The pre-/post-commands are for this one and appluncher, you need to add one per game and set different commands for each game. - if i am right, you can not use details, information for each game [/LIST] I prefer the autoit solution. It's up to you what you wanna choose. regards chefkoch [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Mounting Game images automatically
Contact us
RSS
Top
Bottom