开发者

C# Check if window is loaded

I need to check if a window is loaded, and that it is in the taskbar. I already tested

            IntPtr blaha2 = FindWindow(null, "Tibia");
            if (blaha2 != null)
            {
                client = Tibia.Objects.Client.GetClien开发者_开发技巧ts()[0];
            }

But the getClients() method doesn't get any Tibia clients. Grateful for answer.


Using FindWindow() would only make sense if the window belongs to another process. Which explains why GetClients() doesn't return anything, it would only be able to return clients from your process. This would be in general unsolvable unless this library has some kind of out-of-process support. That's quite rare.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜