Code: Select all
5::
{
SoundBeep 1500
DetectHiddenWindows true
DetectHiddenText true
SetTitleMatchMode "Slow"
a := WinGetControls('ahk_class Planetside2 PlayClient (Stage) x64')
b := WinGetControls('ahk_exe PlanetSide2_x64.exe')
c := WinGetControls('ahk_pid 10604')
d := WinGetControls('ahk_id 918090')
MsgBox(a.Length b.Length c.Length d.Length)
}
Code: Select all
ControlSend "^a", WinGetControls(winTitle := 'ahk_exe notepad.exe')[1], winTitle