go-vgo / robotgo

RobotGo, Go Native cross-platform RPA and GUI automation @vcaesar
Apache License 2.0
9.45k stars 859 forks source link

GetHWNDByPid failed #624

Open shuzhongling opened 7 months ago

shuzhongling commented 7 months ago
        id := robotgo.GetPid()
    h1 := robotgo.GetMain()
    h2 := robotgo.GetHWNDByPid(id)
    if int(h1) != h2 {
        fmt.Println("the hwnd not equal!")
    }

Description

i think h1 and h2 should be the same, but it is not the same ...