Skip to content

Commit

Permalink
update tf2 window title
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Mar 15, 2022
1 parent 6cfe6c4 commit f8f92d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
5 changes: 1 addition & 4 deletions WinTitles.ahk
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; WinTitle reference: https://autohotkey.com/docs/misc/WinTitle.htm#multi

class WinTitles
{
static ModernApp := "ahk_class ApplicationFrameWindow ahk_exe ApplicationFrameHost.exe"
Expand All @@ -20,7 +19,5 @@ class WinTitles
static MsTeams := "ahk_exe Teams.exe"
static Telegram := "ahk_exe telegram.exe ahk_class Qt5153QWindowIcon"
static SublimeText := "ahk_exe sublime_text.exe"



static tf2 := "ahk_exe hl2.exe"
}
3 changes: 1 addition & 2 deletions appHandling_autoExecute.ahk
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
global ahk_tf2 := "ahk_exe hl2.exe"



SetTimer, hideTeamviewerSponsoredsession, 5000

Expand Down
10 changes: 4 additions & 6 deletions app_handling.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@


#If WinActive("ahk_class SDL_app")

j::Space
k::PgUp

#If


Expand Down Expand Up @@ -261,7 +259,7 @@ End::Return
; ------------------------------------------------


; #If WinActive(ahk_tf2)
; #If WinActive(WinTitles.tf2)
; ;-------------------------------------------------
; ; tf2: press reload and autoclick
; CapsLock & R::
Expand All @@ -272,7 +270,7 @@ End::Return

; ; ; stop autoclicking (for example if scoped -> stop scope and autoclicking)
; ; ~RButton::
; ; if (WinActive(ahk_tf2)
; ; if (WinActive(WinTitles.tf2)
; ; && IsToggleOn("pressR")
; ; && IsToggleOn("clickLMouse")) {
; ; CallMethodWithTimer("pressR", 1)
Expand All @@ -283,13 +281,13 @@ End::Return
; #If

; ; pressR() {
; ; if (WinActive(ahk_tf2)) {
; ; if (WinActive(WinTitles.tf2)) {
; ; SendInput {r}
; ; }
; ; }

; clickLMouse(){
; if (WinActive(ahk_tf2)) {
; if (WinActive(WinTitles.tf2)) {
; SendInput {LButton}
; }
; }
Expand Down

0 comments on commit f8f92d8

Please sign in to comment.