def _get_aimp_window(self):
"""Find the AIMP window handler who provides the remote API calls endpoint.
:raises RuntimeError: The AIMP window cannot be found.
:rtype: None
"""
self._aimp_window = win32gui.FindWindow(AIMPRemoteAccessClass, None)
if not self._aimp_window:
raise RuntimeError('Unable to find the AIMP window. Are you sure it is running?')
评论列表
文章目录