Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
C:\Windows\System32\Displayswitch.exe" /internal for main
C:\Windows\System32\Displayswitch.exe" /external for 2nd screen
this does the same thing if u were to press win+P
#NoEnv
#Persistent
#SingleInstance force
#NoTrayIcon
SendMode Input
#IfWinNotExist, Steam ahk_class CUIEngineWin32
Joy8::
RunWait, "C:\Windows\System32\DisplaySwitch.exe" /clone
Process, Exist, Steam.exe
if ErrorLevel
Run, "steam://open/bigpicture"
WinWait, Steam ahk_class CUIEngineWin32
;======Old Method - Waits for BigPicture to close======
;WinWaitClose, Steam ahk_class CUIEngineWin32
;======Wait for BigPicture to close - While checking various items======
while winexist("Steam ahk_class CUIEngineWin32") {
sleep 1000
;==========Check for Origin Featured Today window==========
ifwinexist, Featured ahk_class QWidget
WinClose, Featured ahk_class QWidget
;==========Check for Origin base window==========
ifwinexist, Origin ahk_class QWidget
WinClose, Origin ahk_class QWidget
;==========Check if windows desktop has focus for more than 2 second==========
ifwinactive, Program Manager ahk_class Progman
{
sleep 2000
ifwinactive, Program Manager ahk_class Progman
{
WinActivate, Steam ahk_class CUIEngineWin32
}
}
;==========Check if windows taskbar has focus for more than 2 second==========
ifwinactive, ahk_class Shell_TrayWnd
{
sleep 2000
ifwinactive, ahk_class Shell_TrayWnd
{
WinActivate, Steam ahk_class CUIEngineWin32
}
}
}
RunWait, "C:\Windows\System32\DisplaySwitch.exe" /external
return