BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Information
 Multiple instance of XMM
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

magician62
Starting Member

49 Posts

Posted - 17 Jul 2011 :  16:21:14  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

magician62
Starting Member

49 Posts

Posted - 18 Jul 2011 :  13:53:02  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

Alessio Viti
Forum Admin

Italy
9171 Posts

Posted - 22 Jul 2011 :  18:33:40  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I have move the Database name to Registry because there are some problems with databases with UTF8 Names.

I will try.

Ale

http://www.facebook.com/pages/eXtreme-Movie-Manager/47220214342?ref=mf
Go to Top of Page

Michael Clarke
New Member

United Kingdom
84 Posts

Posted - 22 Jul 2011 :  21:51:07  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

bug_white
Starting Member

11 Posts

Posted - 05 Sep 2011 :  21:58:53  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

magician62
Starting Member

49 Posts

Posted - 08 Sep 2011 :  19:31:57  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

magician62
Starting Member

49 Posts

Posted - 08 Sep 2011 :  21:59:51  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.12 sec. Powered By: Snitz Forums 2000 Version 3.4.07