Last active
July 18, 2018 05:48
-
-
Save oriolrius/e1f5f3f554277f8dfc0a2d95d48051ff to your computer and use it in GitHub Desktop.
Revisions
-
oriolrius revised this gist
Jul 18, 2018 . No changes.There are no files selected for viewing
-
oriolrius created this gist
Jul 18, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ #WinActivateForce #SingleInstance force runApp(exe) { IfWinExist, ahk_exe %exe% { IfWinActive { WinMinimize return } } else { Run, %exe% WinWait, ahk_exe %exe%,, 4 } WinRestore WinActivate WinSet, Top SysGet, NumMon, MonitorCount if ( NumMon > 2 ) { WinMove,,, 1920, 0, 1850, 1080 } else { WinMove,,, 0, 0, 1850, 1050 } ; WinSet, Style, -0x200000; HSCROLL WinSet, Style, -0xC00000; WINDOW TITLE return } F1:: runApp("c:\windows\system32\bash.exe") return