DuskDegree9667

ProfileManagerConfig.ahk

Mar 25th, 2026 (edited)
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; App-to-Profile Configuration for ProfileManager
  2.  
  3. GetAppProfiles() {
  4.     AppProfiles := Map()
  5.     AppProfiles.CaseSense := "Off"
  6.  
  7.     ; Adobe Creative Suite
  8.     AppProfiles["Photoshop.exe"] := "AdobePhotoshop.ahk"
  9.     AppProfiles["Illustrator.exe"] := "AdobeIllustrator.ahk"
  10.     AppProfiles["Adobe Audition.exe"] := "AdobeAudition.ahk"
  11.     AppProfiles["InDesign.exe"] := "AdobeInDesign.ahk"
  12.     AppProfiles["InCopy.exe"] := "AdobeInCopy.ahk"
  13.     AppProfiles["Adobe Premiere Pro.exe"] := "AdobePremierePro.ahk"
  14.  
  15.     ; Media & Utilities
  16.     AppProfiles["calibre.exe"] := "Calibre.ahk"
  17.     AppProfiles["calibre-parallel.exe"] := "CalibreEditor.ahk"
  18.     AppProfiles["iTunes.exe"] := "iTunes.ahk"
  19.  
  20.     ; Games - Call of Duty Series
  21.     AppProfiles["CoD.exe"] := "CallOfDuty.ahk"
  22.  
  23.     ; Games - DOOM Series
  24.     AppProfiles["doom.exe"] := "Doom1.ahk"
  25.     AppProfiles["doom3bfg.exe"] := "Doom3.ahk"
  26.     AppProfiles["DOOMEternalx64vk.exe"] := "DoomEternal.ahk"
  27.     AppProfiles["DOOMTheDarkAges.exe"] := "DoomTheDarkAges.ahk"
  28.  
  29.     ; Games - Quake Series
  30.     AppProfiles["Quake_x64_steam.exe"] := "Quake1.ahk"
  31.  
  32.     ; Games - Strategy
  33.     AppProfiles["CivilizationVI_DX12.exe"] := "Civ6.ahk"
  34.     AppProfiles["SC2_x64.exe"] := "Starcraft2.ahk"
  35.     AppProfiles["AoEDE_s.exe"] := "AgeOfEmpires1DE.ahk"
  36.  
  37.     ; Games - Myth Series
  38.     AppProfiles["Myth TFL.exe"] := "Myth.ahk"
  39.     AppProfiles["Myth II.exe"] := "Myth.ahk"
  40.  
  41.     ; Games - Crysis Series
  42.     AppProfiles["CrysisRemastered.exe"] := "CrysisRemastered.ahk"
  43.  
  44.     ; Games - Elder Scrolls Series
  45.     AppProfiles["SkyrimSE.exe"] := "SkyrimSE.ahk"
  46.     AppProfiles["OblivionRemastered-Win64-Shipping.exe"] := "OblivionRemastered.ahk"
  47.  
  48.     ; Games - Misc. RPGs
  49.     AppProfiles["bg1ee.exe"] := "BaldursGateEE.ahk"
  50.  
  51.     ; Games - Mass Effect Series
  52.     AppProfiles["MassEffect1.exe"] := "MassEffect1.ahk"
  53.     AppProfiles["MassEffectLauncher.exe"] := "MassEffect1.ahk"
  54.     AppProfiles["MassEffect2.exe"] := "MassEffect2.ahk"
  55.  
  56.     ; Games - Dead Space Series
  57.     AppProfiles["Dead Space.exe"] := "DeadSpaceRemake.ahk"
  58.  
  59.     ; Games - BioShock Series
  60.     AppProfiles["BioshockHD.exe"] := "Bioshock1.ahk"
  61.     AppProfiles["Bioshock2HD.exe"] := "Bioshock2.ahk"
  62.     AppProfiles["BioShockInfinite.exe"] := "Bioshock3.ahk"
  63.  
  64.     ; Games - Half-Life Series
  65.     AppProfiles["bms.exe"] := "BlackMesa.ahk"
  66.  
  67.     ; Games - Mirror's Edge Series
  68.     AppProfiles["MirrorsEdge.exe"] := "MirrorsEdge.ahk"
  69.  
  70.     ; Games - Star Wars Dark Forces Series
  71.     AppProfiles["JediKnight.exe"] := "JediKnight.ahk"
  72.  
  73.     ; Games - Star Wars Jedi Series
  74.     AppProfiles["starwarsjedifallenorder.exe"] := "JediFallenOrder.ahk"
  75.     AppProfiles["JediSurvivor.exe"] := "JediSurvivor.ahk"
  76.     AppProfiles["JediSurvivor-Win64-Shipping.exe"] := "JediSurvivor.ahk"
  77.  
  78.     ; Emulators
  79.     AppProfiles["Dolphin.exe"] := "Dolphin.ahk"
  80.  
  81.     return AppProfiles
  82. }
  83.  
  84. ; 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.
  85.  
  86. GetSpecializedScripts() {
  87.     SpecializedScripts := Map()
  88.  
  89.     AdobeApps := [
  90.         "Photoshop.exe",
  91.         "Illustrator.exe",
  92.         "Adobe Audition.exe",
  93.         "InDesign.exe",
  94.         "InCopy.exe",
  95.         "Adobe Premiere Pro.exe"
  96.     ]
  97.     SpecializedScripts["AdobeAppMonitor.ahk"] := AdobeApps ; For toggling the taskbar autohide "On" when Adobe apps are running, and toggling it "Off" again when they are quit.
  98.  
  99.     SpecializedScripts["StarCraft2Monitor.ahk"] := ["SC2_x64.exe"] ; For restoring the game window to the front when a match is found.
  100.  
  101.     ;SpecializedScripts["CoDMonitor.ahk"] := ["CoD.exe"]
  102.  
  103.     SpecializedScripts["DoomEternalMonitor.ahk"] := ["DOOMEternalx64vk.exe"] ; For automatically switching the equipment launcher back to Frag Grenades after firing an Ice Bomb.
  104.  
  105.     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.
  106.  
  107.     return SpecializedScripts
  108. }
  109.  
  110. ; 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.
  111.  
  112. ; 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.
  113.  
  114. GetComplexProfiles() {
  115.     ComplexProfiles := []
  116.  
  117.     ; Mirror's Edge Steam Popup
  118.     ComplexProfiles.Push({
  119.         process: "steamwebhelper.exe",
  120.         title: "Mirror's Edge",
  121.         script: "MirrorsEdge.ahk"
  122.     })
  123.  
  124.     ; Civilization VI Steam Popup:
  125.     ComplexProfiles.Push({
  126.         process: "steamwebhelper.exe",
  127.         title: "Sid Meier's Civilization VI",
  128.         script: "Civ6.ahk"
  129.     })
  130.  
  131.     ; Black Mesa Steam Popup
  132.     ComplexProfiles.Push({
  133.         process: "steamwebhelper.exe",
  134.         title: "Black Mesa",
  135.         script: "BlackMesa.ahk"
  136.     })
  137.  
  138.     ; Oblivion Remastered Steam Popup
  139.     ComplexProfiles.Push({
  140.         process: "steamwebhelper.exe",
  141.         title: "The Elder Scrolls IV: Oblivion Remastered",
  142.         script: "OblivionRemastered.ahk"
  143.     })
  144.  
  145.     return ComplexProfiles
  146. }
  147.  
Add Comment
Please, Sign In to add comment