Skip to content

Commit

Permalink
Make more apps use WinTitles class instead of global variables
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Feb 5, 2020
1 parent 332bd40 commit 170fddb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
12 changes: 10 additions & 2 deletions WinTitles.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
{
static ModernApp := "ahk_class ApplicationFrameWindow ahk_exe ApplicationFrameHost.exe"

static ModernSkype := [ModernApp, "Skype"]
static ModernPhotos := [ModernApp, "Photos"]
static ModernSkype := [WinTitles.ModernApp, "Skype"]
static ModernPhotos := [WinTitles.ModernApp, "Photos"]
static Vlc := "ahk_exe vlc.exe"
static Goland := "ahk_exe goland64.exe"
static IntellijIdea := "ahk_exe idea64.exe"
static CorsairCUE := "ahk_class CUEBorderlessWindow ahk_exe iCUE.exe"
static BattleNet := "ahk_exe Battle.net.exe"



}
5 changes: 0 additions & 5 deletions appHandling_autoExecute.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@ global ahk_firefox := "ahk_class MozillaWindowClass"
global ahk_chrome := "ahk_class Chrome_WidgetWin_1"
global ahk_sublime := "ahk_exe sublime_text.exe"
global ahk_telegram := "ahk_exe telegram.exe ahk_class Qt5QWindowIcon"
global ahk_vlc := "ahk_exe vlc.exe"
global ahk_tf2 := "ahk_exe hl2.exe"
global ahk_intellij_idea := "ahk_exe idea64.exe"
global ahk_goland := "ahk_exe goland64.exe"
global ahk_teamviewer_sponsoredsession := "Sponsored session ahk_exe TeamViewer.exe"
global ahk_teamviewer := "TeamViewer ahk_exe TeamViewer.exe"
global ahk_CorsairCUE := "ahk_class CUEBorderlessWindow ahk_exe iCUE.exe"
global ahk_Skype := "ahk_exe Skype.exe"
global ahk_Battle_net := "ahk_exe Battle.net.exe"


SetTimer, hideTeamviewerSponsoredsession, 5000
Expand Down
8 changes: 4 additions & 4 deletions app_handling.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Return

;-------------------------------------------------
; Intellij Idea/goland: CapsLock & w to toggle word wrap
#If WinActive(ahk_intellij_idea) || WinActive(ahk_goland)
#If WinActive(WinTitles.IntellijIdea) || WinActive(WinTitles.Goland)
CapsLock & w::
SendInput ^+A
Sleep 500
Expand Down Expand Up @@ -225,13 +225,13 @@ hideTeamviewerSponsoredsession() {
|| WinActive(ahk_telegram)
; || WinActive(ahk_chrome)
; || WinActive(ahk_firefox)
|| WinActive(ahk_vlc)
|| WinActive(WinTitles.Vlc)
|| WinActive(WinTitles.ModernPhotos*)
|| WinActive(WinTitles.ModernSkype*)
|| WinActive(ahk_teamviewer)
|| WinActive(ahk_CorsairCUE)
|| WinActive(WinTitles.CorsairCUE)
|| WinActive(ahk_Skype)
|| WinActive(ahk_Battle_net)
|| WinActive(WinTitles.BattleNet)
F4:: SendInput !{F4}
#If

Expand Down

0 comments on commit 170fddb

Please sign in to comment.