-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change windows api for mouse control #85
Conversation
FGO-py/fgoWindows.py
Outdated
win32api.PostMessage(self.hWnd,win32con.WM_LBUTTONDOWN,0,lParam) | ||
win32api.PostMessage(self.hWnd,win32con.WM_LBUTTONUP,0,lParam) | ||
win32api.SendMessage(self.hWnd,win32con.WM_LBUTTONDOWN,win32con.VK_LBUTTON,lParam) | ||
win32api.SendMessage(self.hWnd,win32con.WM_LBUTTONUP,0,lParam) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意到我先前在这里没有指定VK_LBUTTON,请问是没有指定此参数导致的错误还是PostMessage本身导致的错误?
此外,为保持上下文一致,请使用MK_LBUTTON,这个的值和VK_LBUTTON一样都是0x01
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意到我先前在这里没有指定VK_LBUTTON,请问是没有指定此参数导致的错误还是PostMessage本身导致的错误? 此外,为保持上下文一致,请使用MK_LBUTTON,这个的值和VK_LBUTTON一样都是0x01
这个我可以再确认一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意到我先前在这里没有指定VK_LBUTTON,请问是没有指定此参数导致的错误还是PostMessage本身导致的错误? 此外,为保持上下文一致,请使用MK_LBUTTON,这个的值和VK_LBUTTON一样都是0x01
确认了一下,使用PostMessage配合正确的传参即可正常响应鼠标事件,已经改回PostMessage,并改为使用MK_LBUTTON
请问该pr已经确认在哪些模拟器上可用?哪些模拟器上不可用? |
目前是在夜神模拟器上测试可用,其他模拟器暂未测试。 |
如果不是PostMessage导致的问题,那就直接merge了 |
No description provided.