Advertisement
Guest User

Untitled

a guest
Sep 28th, 2019
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. #Warn  ; Enable warnings to assist with detecting common errors.
  3. #NoTrayIcon
  4. SetTitleMatchMode, 2
  5. #SingleInstance Force
  6. #WinActivateForce
  7. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  8. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  9.  
  10. ; ### Launch stuff related to streaming and put it where it goes
  11.  
  12. ; Launch FaceRig
  13. if !WinExist("ahk_exe Launcher.exe")
  14.     Run, "C:\Program Files (x86)\Steam\steamapps\common\FaceRig\Bin\FaceRig.exe"
  15.     WinWait, Facerig Launcher
  16.     WinActivate, Facerig Launcher
  17.     WinRestore, Facerig Launcher
  18.     WinMove, Facerig Launcher, ,-804,0,800,561
  19.    
  20. ;Launch GPMDP
  21. if !WinExist("ahk_exe  Google Play Music Desktop Player.exe")
  22.     Run, C:\Users\denni\AppData\Local\GPMDP_3\Update.exe --processStart "Google Play Music Desktop Player.exe"
  23.     WinWait, Google Play Music Desktop Player
  24.     WinActivate, Google Play Music Desktop Player
  25.     WinRestore,  Google Play Music Desktop Player
  26.     WinMinimize
  27.  
  28. ;Launch Discord with .lnk since I can't count on the version dir name.
  29. if !WinExist("ahk_exe Discord.exe")
  30.     Run, "C:\Users\denni\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Discord Inc\Discord.lnk"
  31.     WinWait, Discord
  32.     WinActivate, Discord
  33.     WinRestore, Discord
  34.     WinMove, Discord, ,-2558,0,940,1440
  35.  
  36. ; yea yea I know Windows Volume Mixer sucks
  37. if !WinExist("ahk_exe SndVol.exe")
  38.     Run, C:\Windows\System32\SndVol.exe
  39.     WinWait, Volume Mixer
  40.     WinActivate, Volume Mixer
  41.     WinRestore, Volume Mixer
  42.     WinMove, Volume Mixer, ,3832,1096,1290,350
  43.  
  44. ;Launch VoiceAttack --needs to select appropriate profile
  45. if !WinExist("ahk_exe VoiceAttack.exe")
  46.     Run, "C:\Program Files (x86)\Steam\steamapps\common\VoiceAttack\VoiceAttack.exe"
  47.     WinWait, VoiceAttack
  48.     WinActivate, VoiceAttack
  49.     WinRestore, VoiceAttack
  50.     WinMinimize
  51.  
  52. ;Launch Chrome with a specific tab -- needs work
  53. if !WinExist("ahk_exe chrome.exe")
  54.     Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "twitch.tv/directory/game/Star Citizen"
  55.     ;need to add multiple tabs here
  56.     ;don't forget https://www.autohotkey.com/boards/viewtopic.php?t=42890
  57.     ;or the dumb version https://www.autohotkey.com/boards/viewtopic.php?t=37347
  58.     ;still need https://www.tipeeestream.com/login
  59.     WinWait, Star Citizen
  60.     WinActivate, Star Citizen
  61.     WinRestore, Star Citizen
  62.     WinMove, Star Citizen, ,3832,0,1296,1101
  63.  
  64. ; Launch Streamlabs OBS
  65. if !WinExist("ahk_exe Streamlabs OBS.exe")
  66.     Run, "C:\Program Files\Streamlabs OBS\Streamlabs OBS.exe"
  67.     WinWait, Streamlabs OBS
  68.     WinActivate, Streamlabs OBS
  69.     WinRestore, Streamlabs OBS
  70.     WinMove, Streamlabs OBS, ,-1616,0,1616,1440
  71.  
  72. ;Launch Streamlabs Chatbot with shortcut since I don't know how to reference the Services dir upon launch.
  73. if !WinExist("ahk_exe Streamlabs Chatbot.exe")
  74.     Run, "C:\Users\denni\AppData\Roaming\Streamlabs\Streamlabs Chatbot\Streamlabs Chatbot.lnk"
  75.     WinWait, Streamlabs Chatbot
  76.     WinActivate, Streamlabs Chatbot
  77.     WinRestore, Streamlabs Chatbot
  78.     WinMove, Streamlabs Chatbot, ,2560,0,1279,1440
  79.  
  80. ;Now it's time to play!
  81. if !WinExist("ahk_exe RSI Launcher.exe")
  82.     Run, "C:\Users\denni\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Robert Space Industries\RSI Launcher.lnk"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement