Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !Delete::
- IfWinExist, OBS
- Goto, Launch1
- Else {
- Goto, Launch0
- }
- Launch0:
- Run, E:\Program Files (x86)\obs-studio\bin\64bit\obs64.exe , E:\Program Files (x86)\obs-studio\bin\64bit\
- Loop1:
- IfWinExist, OBS
- return
- Else {
- Sleep, 500
- Gosub, Loop1
- }
- WinActivate, OBS
- WinMove, OBS, , 2216,169
- Launch1:
- IfWinExist, Chat
- Exit
- Launch2:
- Run, C:\Users\Toys0125\Desktop\Restream Chat.appref-ms
- Loop2:
- IfWinExist, Chat
- return
- Else {
- Sleep, 500
- Gosub, Loop2
- }
- WinMove, Chat , ,2215,613
- Sleep, 2000
- WinActivate, Chat
- SendInput, This is AutoHotkey Opening of OBS and Restream chat test. This is for the auto-hide feature to work. See my Pastebin of AHK script http://pastebin.com/7f70AWRG. Get AHK Here:https://autohotkey.com/
- Send, {Enter}
- Exit
- !Ins::
- Intro:
- WinGetActiveTitle, activeVara
- WinGet , processVara , ProcessName , A
- WinActivate, OBS
- Send,!{Numpad4}
- Sleep, 8500
- Send !{Numpad5}
- Sleep, 700
- if processVara = obs64.exe
- {
- Return
- }
- else{
- WinActivate, %activeVara%
- }
- Return
- !Home::
- Away:
- WinGetActiveTitle, activeVarb
- WinGet , processVarb , ProcessName , A
- WinActivate, OBS
- Sleep, 1000
- Send, !{Numpad6}
- Sleep, 700
- if processVarb = obs64.exe
- {
- Return
- }
- else{
- WinActivate, %activeVarb%
- }
- Return
- !End::
- BackAgain:
- WinGetActiveTitle, activeVarc
- WinGet,processVarc, ProcessName , A
- WinActivate, OBS
- Sleep, 1000
- Send, !{Numpad5}
- Sleep, 700
- if processVarc = obs64.exe
- {
- Return
- }
- else{
- WinActivate, %activeVarc%
- }
- Return
Add Comment
Please, Sign In to add comment