T O P I C R E V I E W |
magician62 |
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 |
7 L A T E S T R E P L I E S (Newest First) |
magician62 |
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 |
magician62 |
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 |
bug_white |
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). |
Michael Clarke |
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 |
Alessio Viti |
Posted - 22 Jul 2011 : 18:33:40 I have move the Database name to Registry because there are some problems with databases with UTF8 Names.
I will try.
Ale |
magician62 |
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 |
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 |
|
|