Exemple #1
0
    def getRectangle(self):
        '''
        This will return WRECT struct.
	public struct WRECT
	{
	    public int Left;
	    public int Top;
	    public int Right;
	    public int Bottom;
	}
        '''

        hwnd = AniImageBoard.getProcessHanddle(self.name)

        # rec has 0. But rec_result has the result. Why???
        rec = User32.WRECT()
        rec_result = User32.GetWindowRect(hwnd, rec)
        if rec_result[0] is False:
            return
        return rec_result[1]