@api.check(<NUM_LIT:2>, "<STR_LIT>")<EOL>def win_menu_select_item_by_handle(handle, *items):
if not (<NUM_LIT:0> < len(items) < <NUM_LIT:8>):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>f_items = [LPCWSTR(item) for item in items]<EOL>for i in xrange(<NUM_LIT:8> - len(f_items)):<EOL><INDENT>f_items.append(LPCWSTR("<STR_LIT>"))<EOL><DEDENT>ret = AUTO_IT.AU3_WinMenuSelectItemByHandle(HWND(handle), *f_items)<EOL>return ret<EOL>
:param handle:
:param items:
:return: