Non-Active Window ControlSend Topic is solved

Ask gaming related questions
Shnoop

Non-Active Window ControlSend  Topic is solved

05 Mar 2018, 19:31

Hello All,

Probably getting sick and tired of these. The below script runs perfectly fine as long as the chrome window I am wishing to run this is is active.

How do I get this to function without the target window or tab being active? I use F9 to retrieve the name of the browser window.

Code: Select all

F9::
if !init
    {
        WinGetActiveTitle, winid
        init := F
    }
loop
{
   ControlSend,,{ty}, %winid%
   sleep 500
   ControlSend,,{glhf}, %winid%
   sleep 3450
   ControlSend,,{gg}, %winid%
   sleep 2150
}

Esc::ExitApp

Return to “Gaming”

Who is online

Users browsing this forum: Google [Bot] and 20 guests