Refresh Chrome without activating window Topic is solved

Get help with using AutoHotkey and its commands and hotkeys

Refresh Chrome without activating window  Topic is solved

18 Sep 2018, 17:52

This program is for playing any request people want to play in game, majority of it works, but as soon as the script clicks the video, I lose focus on my game and activates Chrome. Any help?

Code: Select all

#SingleInstance Force
SetTitleMatchMode, 2
Sendmode Input

; ----- Part of MENU -----
Msgbox, 4, TF2 Voice Module, Do you want to run this script?
IfMsgbox, NO

; ----- Activate Voice Chat -----
Send, {v down}

; ----- Go into chrome, paste song, search, click first song -----
ControlClick, x1102 y134, (379), ,Left, , NA
ControlSend, Chrome_RenderWidgetHostHWND1, {Ctrl down}{a down}{a up}{v}{Ctrl up}{ENTER}, (379)
Sleep, 3000
ControlClick, x577 y295, (379), ,Left, , NA

; ----- Chrome refreshes, losing focus on game. -----
If WinActive("ahk_class Chrome_WidgetWin_1")
WinSet, Bottom,, (379)
WinActivate, Team Fortress 2
Sleep, 3000

Msgbox, Reload

Return to “Ask For Help”

Who is online

Users browsing this forum: TAC109 and 218 guests