autohotkey script

오토핫키 pid 구하기

솜주먹팡팡 2014. 10. 14. 01:07

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