Author |
Topic |
|
magician62
Starting Member
49 Posts |
Posted - 17 Jul 2011 : 16:21:14
|
In an attempt to overcome an issue I thought to try an experiment.
Data on external drive I created two installations of XMM one for my 'movies db' and the other 'series db'
\XMM7m \XMM7s
The idea was to use a shortcut to the appropriate 'eXtreme Movie Manager.exe' which on execution would load the last used mdb by that installation..
What seems to be happening is that whichever 'eXtreme Movie Manager.exe' I run, I still get the last mdb that was opened, and not the last mdb opened by that specific installation.
This leads me to believe there is a config file somewhere else on my system being used, and not the config.ini in the installation folder
Is this a bug, am i doing it wrong, and /or is there a way to overcome this
What I want to achive is launch XMM and open a specific database, and then taking it a stage further build that all into a shortcut or somthing similar |
|
Alessio Viti
Forum Admin
Italy
9171 Posts |
Posted - 18 Jul 2011 : 10:04:42
|
Hello,
I am sorry, but all EXE will read the "last" database used from the Windows Register, this is why doesn't work as you expect.
Note that only the Last Database open is load from register, all other configuration settings are load from the config.ini
Ale |
http://www.facebook.com/pages/eXtreme-Movie-Manager/47220214342?ref=mf
|
|
|
magician62
Starting Member
49 Posts |
Posted - 18 Jul 2011 : 13:53:02
|
Hi Ale, thanks for the update.
Maybe in the future it could be considered to have the option to read from the config.ini or Windows Registry?
This would be perfect in allowing an external drive to have its movies, XMM, and database in one location. making the whole thing completely portable. When the drive is plugged in, it could even be set to autorun XMM, and using its local config.ini, then open the appropriate database on the drive. |
|
|
Alessio Viti
Forum Admin
Italy
9171 Posts |
|
Michael Clarke
New Member
United Kingdom
84 Posts |
Posted - 22 Jul 2011 : 21:51:07
|
You could run a vb script or batch that clears the registry entry everytime you login to the pc, or you could write a vb script for each installation that you have, that enters the correct db file to the registry before launching the xmm.exe. Just a thought |
|
|
bug_white
Starting Member
11 Posts |
Posted - 05 Sep 2011 : 21:58:53
|
I have 2 separate movie databases and it always bothered me that I couldn't select which one to open but had to start the program with the last database to opened running. So I downloaded AutoHotKey (a windows scripting program downloadable at http://www.autohotkey.com/) and wrote this simple script:
RegWrite, REG_SZ, HKEY_CURRENT_USER, Software\eXtremeMovieManager, DatabaseFile, C:\Users\Paul\Documents\eXtreme Movie Manager 7\Databases\movies.mdb Run C:\Users\Paul\Documents\eXtreme Movie Manager 7\eXtreme Movie Manager.exe
where movies.mdb is the name of the database you want to open. This opens movies.mdb regardless of what database was last opened. The first line rewrites the windows registry to set the default database. The second line starts XMM. Both lines are based on the default install location on my machine, change as appropriate for your installation). |
Edited by - bug_white on 05 Sep 2011 22:00:05 |
|
|
magician62
Starting Member
49 Posts |
Posted - 08 Sep 2011 : 19:31:57
|
Some iteresting thoughts here. I have recently downloaded Autohotkey, so that looks like the best option at present. I may have to investigate further as if the files are on an external drive, the letter may change, but I cant see why the current drive letter can't be grabbed and added too |
|
|
magician62
Starting Member
49 Posts |
Posted - 08 Sep 2011 : 21:59:51
|
OK had a play with your AHK code, and came up with the following which when compiled into an AHK script can be placed on an external drive, it seems to work.
RegWrite, REG_SZ, HKEY_CURRENT_USER, Software\eXtremeMovieManager, DatabaseFile, %A_ScriptDir%\eXMM\Databases\videos.mdb Run %A_ScriptDir%\eXMM\eXtreme Movie Manager.exe
Basic process e.g. Drive F:\\ 'F' is used for example purposes only. It could be any letter
Create a folder ++++EMM so you get F:\\++++EMM\ The ++++ has been used to put the folder at the top of the window, so its easier to find :)
Now Create a folder eXMM inside this folder so you get F:\\++++EMM\eXMM\ Where eXMM is the installation folder for eXtreme Movie Manager (I shortened it as the path was getting quite long)
Install eXMM
You should then see F:\\++++EMM\eXMM\eXtreme Movie Manager.exe and F:\\++++EMM\eXMM\Databases\videos.mdb
Place the compiled AHK script and its .ini file in the folder F:\\++++EMM\ I called my compiled script eXmmLauncher.exe
You could probably place an autorun.inf on the drive to launch on connection |
|
|
|
Topic |
|