Code: Select all
Gui, New, +AlwaysOnTop +Border -MaximizeBox -Resize -SysMenu, Game chooser
Gui, Add, Text, , Please select the game you are downloading the mod for
Gui, Add, Button, Default -Wrap gSkyrim, &Skyrim
Gui, Add, Button, -Wrap gFalloutNewVegas, Fallout &New Vegas
Gui, Add, Button, -Wrap gFallout3, Fallout &3
Gui, Add, Button, -Wrap gOblivion, &Oblivion
Gui, Show, AutoSize Center,
Return
Skyrim:
Gui, Destroy
IniRead, MOLocation, %A_ScriptDir%\Mod Organizer install locations.ini, MO locations, Skyrim, Nothing
If MOLocation = Nothing
{
MsgBox, Error: MO install location could not be found. This is caused by either not placing "Mod Organizer install locations.ini" in the same folder as "Start Mod Organizer NMM downloader.exe" or by the INI file being damaged to the point of being unusable. Please fix the problem before trying another mod download.
ExitApp
}
Run, %MOLocation%\nxmhandler.exe %1%
ExitApp
Return
FalloutNewVegas:
Gui, Destroy
IniRead, MOLocation, %A_ScriptDir%\Mod Organizer install locations.ini, MO locations, Fallout New Vegas, Nothing
If MOLocation = Nothing
{
MsgBox, Error: MO install location could not be found. This is caused by either not placing "Mod Organizer install locations.ini" in the same folder as "Start Mod Organizer NMM downloader.exe" or by the INI file being damaged to the point of being unusable. Please fix the problem before trying another mod download.
ExitApp
}
Run, %MOLocation%\nxmhandler.exe %1%
ExitApp
Return
Fallout3:
Gui, Destroy
IniRead, MOLocation, %A_ScriptDir%\Mod Organizer install locations.ini, MO locations, Fallout 3, Nothing
If MOLocation = Nothing
{
MsgBox, Error: MO install location could not be found. This is caused by either not placing "Mod Organizer install locations.ini" in the same folder as "Start Mod Organizer NMM downloader.exe" or by the INI file being damaged to the point of being unusable. Please fix the problem before trying another mod download.
ExitApp
}
Run, %MOLocation%\nxmhandler.exe %1%
ExitApp
Return
Oblivion:
Gui, Destroy
IniRead, MOLocation, %A_ScriptDir%\Mod Organizer install locations.ini, MO locations, Oblivion, Nothing
If MOLocation = Nothing
{
MsgBox, Error: MO install location could not be found. This is caused by either not placing "Mod Organizer install locations.ini" in the same folder as "Start Mod Organizer NMM downloader.exe" or by the INI file being damaged to the point of being unusable. Please fix the problem before trying another mod download.
ExitApp
}
Run, %MOLocation%\nxmhandler.exe %1%
ExitApp
Return