Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; App-to-Profile Configuration for ProfileManager
- GetAppProfiles() {
- AppProfiles := Map()
- AppProfiles.CaseSense := "Off"
- ; Adobe Creative Suite
- AppProfiles["Photoshop.exe"] := "AdobePhotoshop.ahk"
- AppProfiles["Illustrator.exe"] := "AdobeIllustrator.ahk"
- AppProfiles["Adobe Audition.exe"] := "AdobeAudition.ahk"
- AppProfiles["InDesign.exe"] := "AdobeInDesign.ahk"
- AppProfiles["InCopy.exe"] := "AdobeInCopy.ahk"
- AppProfiles["Adobe Premiere Pro.exe"] := "AdobePremierePro.ahk"
- ; Media & Utilities
- AppProfiles["calibre.exe"] := "Calibre.ahk"
- AppProfiles["calibre-parallel.exe"] := "CalibreEditor.ahk"
- AppProfiles["iTunes.exe"] := "iTunes.ahk"
- ; Games - Call of Duty Series
- AppProfiles["CoD.exe"] := "CallOfDuty.ahk"
- ; Games - DOOM Series
- AppProfiles["doom.exe"] := "Doom1.ahk"
- AppProfiles["doom3bfg.exe"] := "Doom3.ahk"
- AppProfiles["DOOMEternalx64vk.exe"] := "DoomEternal.ahk"
- AppProfiles["DOOMTheDarkAges.exe"] := "DoomTheDarkAges.ahk"
- ; Games - Quake Series
- AppProfiles["Quake_x64_steam.exe"] := "Quake1.ahk"
- ; Games - Strategy
- AppProfiles["CivilizationVI_DX12.exe"] := "Civ6.ahk"
- AppProfiles["SC2_x64.exe"] := "Starcraft2.ahk"
- AppProfiles["AoEDE_s.exe"] := "AgeOfEmpires1DE.ahk"
- ; Games - Myth Series
- AppProfiles["Myth TFL.exe"] := "Myth.ahk"
- AppProfiles["Myth II.exe"] := "Myth.ahk"
- ; Games - Crysis Series
- AppProfiles["CrysisRemastered.exe"] := "CrysisRemastered.ahk"
- ; Games - Elder Scrolls Series
- AppProfiles["SkyrimSE.exe"] := "SkyrimSE.ahk"
- AppProfiles["OblivionRemastered-Win64-Shipping.exe"] := "OblivionRemastered.ahk"
- ; Games - Misc. RPGs
- AppProfiles["bg1ee.exe"] := "BaldursGateEE.ahk"
- ; Games - Mass Effect Series
- AppProfiles["MassEffect1.exe"] := "MassEffect1.ahk"
- AppProfiles["MassEffectLauncher.exe"] := "MassEffect1.ahk"
- AppProfiles["MassEffect2.exe"] := "MassEffect2.ahk"
- ; Games - Dead Space Series
- AppProfiles["Dead Space.exe"] := "DeadSpaceRemake.ahk"
- ; Games - BioShock Series
- AppProfiles["BioshockHD.exe"] := "Bioshock1.ahk"
- AppProfiles["Bioshock2HD.exe"] := "Bioshock2.ahk"
- AppProfiles["BioShockInfinite.exe"] := "Bioshock3.ahk"
- ; Games - Half-Life Series
- AppProfiles["bms.exe"] := "BlackMesa.ahk"
- ; Games - Mirror's Edge Series
- AppProfiles["MirrorsEdge.exe"] := "MirrorsEdge.ahk"
- ; Games - Star Wars Dark Forces Series
- AppProfiles["JediKnight.exe"] := "JediKnight.ahk"
- ; Games - Star Wars Jedi Series
- AppProfiles["starwarsjedifallenorder.exe"] := "JediFallenOrder.ahk"
- AppProfiles["JediSurvivor.exe"] := "JediSurvivor.ahk"
- AppProfiles["JediSurvivor-Win64-Shipping.exe"] := "JediSurvivor.ahk"
- ; Emulators
- AppProfiles["Dolphin.exe"] := "Dolphin.ahk"
- return AppProfiles
- }
- ; Specialized scripts that run in addition to the main profile scripts for certain applications or games. These are monitored separately to ensure they are active when their target applications are running, and closed when not.
- GetSpecializedScripts() {
- SpecializedScripts := Map()
- AdobeApps := [
- "Photoshop.exe",
- "Illustrator.exe",
- "Adobe Audition.exe",
- "InDesign.exe",
- "InCopy.exe",
- "Adobe Premiere Pro.exe"
- ]
- SpecializedScripts["AdobeAppMonitor.ahk"] := AdobeApps ; For toggling the taskbar autohide "On" when Adobe apps are running, and toggling it "Off" again when they are quit.
- SpecializedScripts["StarCraft2Monitor.ahk"] := ["SC2_x64.exe"] ; For restoring the game window to the front when a match is found.
- ;SpecializedScripts["CoDMonitor.ahk"] := ["CoD.exe"]
- SpecializedScripts["DoomEternalMonitor.ahk"] := ["DOOMEternalx64vk.exe"] ; For automatically switching the equipment launcher back to Frag Grenades after firing an Ice Bomb.
- SpecializedScripts["JediSurvivorMonitor.ahk"] := ["JediSurvivor.exe", "JediSurvivor-Win64-Shipping.exe"] ; Complex script for forcing the Jedi: Survivor game window to run at 1440p in a borderless window on the secondary 4K monitor at the correct refresh rate.
- return SpecializedScripts
- }
- ; Complex profile loading rules that will load a profile script by matching an additional process (Steam). We force Steam to launch a pop-up window asking which game version we want to launch, and this Steam pop-up can be used to match and load a game script. We need to load the game scripts before these archaic game engines launch to be able to move the game window to the central, secondary monitor.
- ; We wouldn't have to care about games loading to the primary monitor if the system tray could be moved from the primary monitor to the secondary monitor, but it can't so our central monitor became the secondary monitor and the side monitor became the primary monitor, and we want games to load on the central, secondary monitor. Thanks Microsoft, and thanks lazy fucking game devs for not implementing multi-monitor support in your goddamn games. This is why we have to implement batshit-crazy workarounds like this.
- GetComplexProfiles() {
- ComplexProfiles := []
- ; Mirror's Edge Steam Popup
- ComplexProfiles.Push({
- process: "steamwebhelper.exe",
- title: "Mirror's Edge",
- script: "MirrorsEdge.ahk"
- })
- ; Civilization VI Steam Popup:
- ComplexProfiles.Push({
- process: "steamwebhelper.exe",
- title: "Sid Meier's Civilization VI",
- script: "Civ6.ahk"
- })
- ; Black Mesa Steam Popup
- ComplexProfiles.Push({
- process: "steamwebhelper.exe",
- title: "Black Mesa",
- script: "BlackMesa.ahk"
- })
- ; Oblivion Remastered Steam Popup
- ComplexProfiles.Push({
- process: "steamwebhelper.exe",
- title: "The Elder Scrolls IV: Oblivion Remastered",
- script: "OblivionRemastered.ahk"
- })
- return ComplexProfiles
- }
Add Comment
Please, Sign In to add comment