본문 바로가기

autohotkey script

오토핫키 pid 구하기

Winget API Link 


WinGet, id, list,,, Program Manager

selected_ahk_id := ""

Loop, %id%

{

    this_id := id%A_Index%

    WinGetClass, this_class, ahk_id %this_id%

    WinGetTitle, this_title, ahk_id %this_id%

    WinGet, this_pid, PID, ahk_id %this_id%

    if (this_title = "바람의나라")

    {

MsgBox %this_pid%

        MsgBox, 4, , 윈도우 이름 : %this_id% %this_title% 선택할랴?

        IfMsgBox, YES

        {   

        }

        IfMsgBox, NO

        {   

            continue

        }

        IfMsgBox, Cancel

        {

            break

        }

    }

}

return


'autohotkey script' 카테고리의 다른 글

주의해야할 memory leak  (0) 2014.10.21