Using winrt module with Python, I was attempting to capture mouse click event. I was unable to find an example in resolving my problem:
https://learn.microsoft.com/en-us/uwp/api/windows.devices.input.mousedevice?view=winrt-22621
Otherwise, do I utilise a different class to obtain the above information?
So, far I have this code below, is there a way for accomplishing my above objective? `
import winrt.windows.devices.input as iwinrt
v = iwinrt.MouseDevice()
print(v.get_for_current_view)
Result:
v = iwinrt.MouseDevice()
TypeError: MouseDevice is not activatable`
Expected Result Pseudocode: `
while(True):
if(v.mouse_clicked):
//Do something
break
`